/* ═══════════════════════════════════════════════
   MATHIESON MOLLER — PORTFOLIO
   Dark + Bold · Copper Accent · Premium Animations
   ═══════════════════════════════════════════════ */

:root {
  --black: #0A0A0A;
  --black-2: #111111;
  --black-3: #1A1A1A;
  --white: #E8E8E8;
  --white-dim: rgba(232,232,232,0.65);
  --white-muted: rgba(232,232,232,0.35);
  --accent: #C87941;
  --accent-dim: rgba(200,121,65,0.15);
  --accent-border: rgba(200,121,65,0.35);
  --gray-700: #2A2A2A;
  --gray-600: #3A3A3A;
  --mono: "JetBrains Mono", monospace;
  --sans: "Inter", -apple-system, sans-serif;
  --gutter: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 20px;
}

.accent { color: var(--accent); }

.section-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--white-dim);
  max-width: 600px;
  margin-bottom: 56px;
}

/* ═══════════════ PAGE LOADER ═══════════════ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
.page-loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-bar {
  width: 120px;
  height: 3px;
  background: var(--gray-700);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.loader-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 40%;
  background: var(--accent);
  border-radius: 4px;
  animation: loader-slide 0.9s ease-in-out infinite;
}
@keyframes loader-slide {
  0% { left: -40%; }
  100% { left: 100%; }
}

/* ═══════════════ NAV ═══════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232,232,232,0.06);
  transition: transform 0.35s var(--ease), background 0.3s;
}
.nav.scrolled {
  background: rgba(10,10,10,0.95);
  border-bottom-color: rgba(232,232,232,0.1);
}
.nav.nav-hidden {
  transform: translateY(-100%);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-img {
  height: 36px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--white-muted);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a.active::after,
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--accent) !important;
  color: var(--black) !important;
  font-weight: 700 !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 12px !important;
  letter-spacing: 0.02em;
  transition: opacity .2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { opacity: 0.85; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  position: absolute;
  left: 0;
  transition: .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-toggle.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 1px solid var(--gray-700);
    padding: 24px;
    gap: 20px;
    animation: nav-slide 0.3s var(--ease);
  }
  .nav-links.open a { font-size: 16px; padding: 4px 0; }
  .nav-toggle { display: block; }
}
@keyframes nav-slide {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════ BUTTONS ═══════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--accent);
  color: var(--black);
  font-weight: 800;
  font-size: 15px;
  border-radius: 12px;
  letter-spacing: -0.01em;
  transition: opacity .2s, transform .2s var(--ease), box-shadow .3s;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200,121,65,0.25);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid rgba(232,232,232,0.2);
  border-radius: 12px;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover {
  border-color: rgba(232,232,232,0.5);
  background: rgba(232,232,232,0.04);
}

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px var(--gutter) 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,121,65,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,121,65,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  will-change: transform;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(200,121,65,0.1), transparent 55%),
    radial-gradient(ellipse at 20% 70%, rgba(200,121,65,0.06), transparent 50%);
  pointer-events: none;
}
.hero-bg::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--black), transparent);
  pointer-events: none;
}
.hero-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,121,65,0.08), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
}
.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  z-index: 1;
}
.hero-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-image {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3/4;
  max-width: 340px;
  justify-self: end;
  border: 1px solid var(--gray-700);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-mono {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--white-dim);
  max-width: 680px;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hs-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hs-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--white-muted);
  letter-spacing: 0.04em;
}
.hs-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-600);
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero-scroll span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--white-muted);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ═══════════════ HERO ENTRANCE ANIMATIONS ═══════════════ */
.anim-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.anim-fade-down {
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.anim-fade-up.anim-active,
.anim-fade-down.anim-active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
  .hero-image { max-width: 320px; aspect-ratio: 3/4; }
}
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 110px 20px 60px; }
  .hero h1 { font-size: clamp(38px, 10vw, 56px); }
  .hero-image { max-width: 260px; }
  .hero-sub {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 32px;
  }
  .hero-actions { margin-bottom: 48px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; justify-content: center; padding: 14px 24px; }
  .hero-stats { gap: 20px; }
  .hs-num { font-size: 26px; }
  .hs-divider { height: 30px; }
  .hero-scroll { display: none; }
}

/* ═══════════════ SCROLL REVEAL ═══════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════ ABOUT ═══════════════ */
.about { padding: 120px 0; }
.about-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: start;
}
.about-photo {
  position: sticky;
  top: 100px;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--black-3);
  border: 1px solid var(--gray-700);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.photo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
  font-size: 64px;
  font-weight: 900;
  color: var(--gray-600);
  background: var(--black-3);
}
.about-text h2 { margin-bottom: 24px; }
.about-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--white-dim);
  margin-bottom: 18px;
}
.about-details {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-700);
}
.ad {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.ad-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--white-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ad-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

@media (max-width: 900px) {
  .about { padding: 80px 0; }
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { position: static; max-width: 280px; margin: 0 auto; }
  .about-text p { font-size: 15px; line-height: 1.65; }
}
@media (max-width: 500px) {
  .about-photo { max-width: 220px; }
  .ad { flex-direction: column; gap: 2px; }
}

/* ═══════════════ CAREER TIMELINE ═══════════════ */
.career {
  padding: 120px 0;
  background: var(--black-2);
}
.timeline {
  position: relative;
  padding-left: 48px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--gray-700));
}
.tl-item {
  position: relative;
  margin-bottom: 40px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -48px;
  top: 28px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--black-2);
  border: 3px solid var(--gray-600);
  z-index: 1;
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.tl-item.tl-visible::before {
  border-color: var(--accent);
}
.tl-item.featured::before,
.tl-item.active::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 16px rgba(200,121,65,0.4);
}
.tl-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--white-muted);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.tl-card {
  background: var(--black-3);
  border: 1px solid var(--gray-700);
  border-radius: 16px;
  padding: 28px 32px;
  transition: border-color .3s, transform .3s var(--ease);
}
.tl-item:hover .tl-card {
  border-color: var(--accent-border);
  transform: translateX(4px);
}
.tl-item.featured .tl-card {
  border-color: var(--accent-border);
  background: linear-gradient(135deg, var(--black-3), rgba(200,121,65,0.06));
}
.tl-item.active .tl-card {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--black-3), rgba(200,121,65,0.1));
}
.tl-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white-muted);
  margin-bottom: 10px;
}
.tl-tag.accent { color: var(--accent); }
.tl-heading-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tl-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}
.tl-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.tl-avatar.zoom img {
  object-position: center 12%;
  transform: scale(2.5);
  transform-origin: center 15%;
}
.tl-card h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.tl-company {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 2px;
}
.tl-location {
  font-size: 13px;
  color: var(--white-muted);
  margin-bottom: 12px;
}
.tl-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--white-dim);
}
.tl-stats {
  display: flex;
  gap: 32px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-700);
}
.tl-stat { display: flex; flex-direction: column; gap: 2px; }
.tl-stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
}
.tl-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--white-muted);
  letter-spacing: 0.04em;
}
.tl-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  transition: gap .3s var(--ease);
}
.tl-link:hover { gap: 12px; }

@media (max-width: 768px) {
  .career { padding: 80px 0; }
  .timeline { padding-left: 32px; }
  .tl-item::before { left: -32px; width: 12px; height: 12px; }
  .tl-card { padding: 22px 20px; }
  .tl-card h3 { font-size: 19px; }
  .tl-desc { font-size: 14px; }
  .tl-stats { gap: 20px; }
  .tl-stat-num { font-size: 24px; }
}

/* ═══════════════ GRAVEYARD ═══════════════ */
.graveyard {
  padding: 120px 0;
  background: var(--black);
}
.graveyard h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-style: italic;
  font-weight: 700;
}
.grave-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grave-card {
  position: relative;
  background: var(--black-3);
  border: 1px solid var(--gray-700);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
  will-change: transform;
}
.grave-card:hover {
  border-color: rgba(232,232,232,0.15);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.grave-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--black-2);
}
.grave-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.6);
  opacity: 0.85;
  transition: filter .4s, opacity .4s, transform .5s var(--ease);
}
.grave-card:hover .grave-img img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.04);
}
.grave-body {
  padding: 22px 24px 26px;
  text-align: center;
}
.grave-year {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--white-muted);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.grave-status {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #E74C3C;
  margin-bottom: 14px;
}
.grave-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}
.grave-cta {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  padding: 8px 16px;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  transition: background 0.2s, gap 0.3s var(--ease);
}
.grave-cta:hover {
  background: var(--accent-dim);
}
.grave-type {
  font-size: 13px;
  color: var(--white-muted);
}
.grave-quote {
  margin-top: 56px;
  text-align: center;
  font-size: 18px;
  font-style: italic;
  color: var(--white-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .graveyard { padding: 80px 0; }
  .grave-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .grave-body { padding: 16px 16px 20px; }
  .grave-card h3 { font-size: 17px; }
  .grave-quote { font-size: 16px; margin-top: 40px; }
}
@media (max-width: 500px) {
  .grave-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

/* ═══════════════ TRADIEBACK SHOWCASE ═══════════════ */
.tradieback {
  padding: 120px 0;
  background: var(--black-2);
}
.tb-logo {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.tb-logo-img {
  height: 56px;
  width: auto;
}
.tb-logo h2 {
  font-size: clamp(42px, 6vw, 72px);
  margin-bottom: 0;
}
.tb-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 48px;
}
.tb-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}
.tb-stat {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.tb-stat-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  min-width: 80px;
}
.tb-stat-label {
  font-size: 14px;
  color: var(--white-dim);
}
.tb-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--white-dim);
  margin-bottom: 32px;
}
.tb-visual {
  display: flex;
  justify-content: center;
}
.tb-browser {
  background: var(--black-3);
  border: 1px solid var(--gray-700);
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  transition: border-color 0.3s, box-shadow 0.4s;
}
.tb-browser:hover {
  border-color: var(--accent-border);
  box-shadow: 0 16px 48px rgba(200,121,65,0.1);
}
.tb-dots {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-700);
}
.tb-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-600);
}
.tb-url {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--white-muted);
  padding: 8px 16px;
  border-bottom: 1px solid var(--gray-700);
}
.tb-browser img {
  width: 100%;
  display: block;
  margin-top: -8%;
}
.tb-fallback {
  display: none;
  height: 280px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--black);
}
.tb-fallback-logo {
  font-size: 48px;
  font-weight: 900;
  color: var(--accent);
}
.tb-fallback span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--white-muted);
}

@media (max-width: 900px) {
  .tradieback { padding: 80px 0; }
  .tb-showcase { grid-template-columns: 1fr; gap: 36px; }
  .tb-desc { font-size: 14px; }
}

/* ═══════════════ OFF THE CLOCK ═══════════════ */
.offclock { padding: 120px 0; }
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.hobby-card {
  background: var(--black-3);
  border: 1px solid var(--gray-700);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
  will-change: transform;
}
.hobby-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.hobby-photo {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--black-2);
  overflow: hidden;
}
.hobby-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.hobby-card:hover .hobby-photo img {
  transform: scale(1.05);
}
.hobby-photo.no-img img { display: none; }
.hobby-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--gray-600);
}
.hobby-card:not(.no-img) .hobby-fallback { display: none; }
.hobby-body { padding: 24px 26px 28px; }
.hobby-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.hobby-body h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}
.hobby-body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--white-dim);
}

@media (max-width: 1000px) {
  .hobby-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .offclock { padding: 80px 0; }
  .hobby-grid { gap: 14px; }
  .hobby-body { padding: 18px 18px 22px; }
  .hobby-body h3 { font-size: 18px; }
  .hobby-body p { font-size: 13px; }
}
@media (max-width: 500px) {
  .hobby-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

/* ═══════════════ CONTACT ═══════════════ */
.contact {
  padding: 120px 0;
  background: var(--black-2);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.contact-card {
  background: var(--black-3);
  border: 1px solid var(--gray-700);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: border-color .3s, box-shadow .3s;
  will-change: transform;
}
.contact-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 8px 32px rgba(200,121,65,0.08);
}
.cc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.cc-label {
  font-size: 16px;
  font-weight: 700;
}
.cc-value {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .contact { padding: 80px 0; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .contact-card { padding: 22px 16px; }
}
@media (max-width: 500px) {
  .contact-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  padding: 32px var(--gutter);
  border-top: 1px solid var(--gray-700);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left { display: flex; flex-direction: column; gap: 4px; }
.footer-name {
  font-weight: 700;
  font-size: 14px;
}
.footer-copy {
  font-size: 12px;
  color: var(--white-muted);
}
.footer-right {
  display: flex;
  gap: 12px;
}
.footer-right a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(232,232,232,0.04);
  border: 1px solid rgba(232,232,232,0.1);
  display: grid;
  place-items: center;
  color: var(--white-muted);
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.footer-right a:hover {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 500px) {
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

/* ═══════════════ MOBILE TEXT TRIMMING ═══════════════ */
@media (max-width: 768px) {
  .section-sub { font-size: 15px; margin-bottom: 40px; }
  h2 { font-size: clamp(28px, 6vw, 42px); margin-bottom: 16px; }
}

/* ═══════════════ SELECTION / A11Y ═══════════════ */
::selection { background: var(--accent); color: var(--black); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ═══════════════ REDUCED MOTION ═══════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .anim-fade-up, .anim-fade-down { opacity: 1; transform: none; }
}
