/* =========================================================
   TYRIN MAHADOO — PORTFOLIO
   Palette: ink / charcoal / bone, racing-flash red, gilt gold
   Signature motif: the "pinstripe" — a hairline trace that
   runs through dividers, headings and the scroll indicator,
   nodding to automotive livery, tattoo linework and a tag's
   single confident stroke.
   ========================================================= */

:root{
  --ink:#0b0b0d;
  --charcoal:#17161a;
  --charcoal-2:#1f1e23;
  --bone:#ece7de;
  --bone-dim:#a9a49b;
  --flash:#c8272b;
  --flash-dim:#7a1c1f;
  --gold:#b8975a;
  --gold-bright:#d8b672;
  --line: rgba(236,231,222,0.14);
  --line-strong: rgba(236,231,222,0.24);
  --ease: cubic-bezier(.22,1,.36,1);
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
html,body{margin:0;padding:0;}

body{
  background:var(--ink);
  color:var(--bone);
  font-family:'Inter',sans-serif;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

.display{
  font-family:'Bebas Neue',sans-serif;
  letter-spacing:0.01em;
  line-height:0.92;
}
.mono{
  font-family:'IBM Plex Mono',monospace;
  text-transform:uppercase;
  letter-spacing:0.14em;
  font-size:11px;
}
a{color:inherit;text-decoration:none;}
.wrap{max-width:1240px;margin:0 auto;padding:0 32px;}
.tag-icon svg{display:block;}

::selection{background:var(--flash);color:var(--bone);}

a:focus-visible,
button:focus-visible{
  outline:1.5px solid var(--gold-bright);
  outline-offset:4px;
  border-radius:2px;
}

/* ===== SCROLL PROGRESS PINSTRIPE ===== */
.pinstripe{
  position:fixed;
  top:0;left:0;
  width:100%;
  height:3px;
  z-index:200;
  background:transparent;
  pointer-events:none;
}
.pinstripe::before{
  content:"";
  display:block;
  height:100%;
  width:var(--scroll, 0%);
  background:linear-gradient(90deg, var(--flash), var(--gold));
  box-shadow:0 0 12px rgba(200,39,43,0.5);
  transition:width .08s linear;
}

/* ===== NAV ===== */
header{
  position:fixed;top:0;left:0;right:0;z-index:100;
  padding:20px 32px;
  display:flex;align-items:center;justify-content:space-between;
  transition:background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom:1px solid transparent;
}
header.scrolled{
  background:rgba(11,11,13,0.86);
  backdrop-filter:blur(10px);
  border-color:var(--line);
  padding:13px 32px;
}
.logo{display:flex;align-items:center;gap:10px;}
.logo img{display:block;height:64px;width:auto;transition:height .4s var(--ease);mix-blend-mode:difference;}
header.scrolled .logo img{height:48px;}

nav ul{display:flex;gap:36px;list-style:none;}
nav a{
  font-family:'IBM Plex Mono';font-size:12px;text-transform:uppercase;letter-spacing:0.1em;
  color:var(--bone-dim);transition:color .25s;position:relative;padding-bottom:4px;
}
nav a::after{
  content:"";position:absolute;left:0;bottom:0;width:100%;height:1px;
  background:linear-gradient(90deg,var(--flash),var(--gold));
  transform:scaleX(0);transform-origin:left;transition:transform .3s var(--ease);
}
nav a:hover{color:var(--bone);}
nav a:hover::after{transform:scaleX(1);}

.nav-cta{
  font-family:'IBM Plex Mono';font-size:11px;text-transform:uppercase;letter-spacing:0.1em;
  border:1px solid var(--line-strong);padding:9px 18px;border-radius:2px;
  transition:border-color .25s, color .25s, background .25s, transform .25s var(--ease);
}
.nav-cta:hover{border-color:var(--flash);color:var(--bone);background:rgba(200,39,43,0.12);transform:translateY(-1px);}

.nav-toggle{
  display:none;
  width:38px;height:38px;
  border:1px solid var(--line-strong);border-radius:2px;
  background:transparent;
  position:relative;
  cursor:pointer;
}
.nav-toggle span{
  position:absolute;left:9px;right:9px;height:1px;background:var(--bone);
  transition:transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span:nth-child(1){top:14px;}
.nav-toggle span:nth-child(2){top:19px;}
.nav-toggle span:nth-child(3){top:24px;}
.nav-toggle.open span:nth-child(1){transform:translateY(5px) rotate(45deg);}
.nav-toggle.open span:nth-child(2){opacity:0;}
.nav-toggle.open span:nth-child(3){transform:translateY(-5px) rotate(-45deg);}

/* ===== HERO ===== */
.hero{
  min-height:100vh;
  position:relative;
  display:flex;flex-direction:column;justify-content:center;
  padding:150px 0 60px;
  overflow:hidden;
}
.hero-grain{
  position:absolute;inset:0;pointer-events:none;opacity:0.05;
  background-image:radial-gradient(circle at 1px 1px, var(--bone) 1px, transparent 0);
  background-size:3px 3px;
}
.hero-crown-bg{
  position:absolute;top:-6%;right:-8%;width:52vw;max-width:640px;opacity:0.06;
  transform:rotate(8deg) translateY(calc(var(--hero-scroll, 0px) * 0.15));
  pointer-events:none;
  will-change:transform;
}

.eyebrow-row{display:flex;align-items:center;gap:12px;margin-bottom:26px;}
.eyebrow-row .mono{color:var(--flash);}
.eyebrow-row .rule{height:1px;width:60px;background:linear-gradient(90deg,var(--flash),transparent);}

.hero-name{
  font-size:clamp(52px, 9.5vw, 108px);
  color:var(--bone);
  display:flex;
  flex-wrap:wrap;
  overflow:hidden;
}
.hero-name .line-mask{
  display:inline-block;
  overflow:hidden;
  padding-right:0.14em;
}
.hero-name .line-inner{
  display:inline-block;
  transform:translateY(105%);
  animation:riseIn .9s var(--ease) forwards;
}
.hero-name .line-inner.accent{color:var(--flash);}
@keyframes riseIn{to{transform:translateY(0);}}

.hero-sub{
  max-width:560px;
  font-size:clamp(16px, 2vw, 20px);
  line-height:1.55;
  color:var(--bone-dim);
  margin-top:18px;
  font-weight:400;
  opacity:0;
  animation:fadeUp .8s var(--ease) forwards;
  animation-delay:.5s;
}
@keyframes fadeUp{
  from{opacity:0;transform:translateY(10px);}
  to{opacity:1;transform:translateY(0);}
}
.hero-sub strong{color:var(--bone);font-weight:600;}

.hero-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:60px;
}
.hero-copy{flex:1;min-width:0;}

.hero-logo{
  flex:0 0 auto;
  width:200px;
  max-width:36vw;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  filter:blur(18px);
  transform:scale(1.06);
  animation:logoFocus 1.1s var(--ease) forwards;
}
@keyframes logoFocus{
  to{opacity:1;filter:blur(0);transform:scale(1);}
}
.hero-logo-img{
  width:100%;height:auto;display:block;
  transform:translate(var(--mx, 0px), var(--my, 0px));
  transition:transform .5s var(--ease), filter .35s var(--ease);
  will-change:transform;
}
.hero-logo-img:hover{filter:drop-shadow(0 0 22px rgba(200,39,43,0.35));}

.hero-bottom-row{
  display:flex;justify-content:space-between;align-items:flex-end;
  margin-top:72px;gap:40px;flex-wrap:wrap;
  opacity:0;
  animation:fadeUp 1s var(--ease) forwards;
  animation-delay:.7s;
}

.peak-frame{position:relative;width:100%;}
.peak-viewport{overflow:hidden;border-radius:8px;}
.peak-track{
  display:flex;
  transition:transform .5s var(--ease);
  touch-action:pan-y;
  cursor:grab;
}
.peak-track.is-dragging{transition:none;cursor:grabbing;user-select:none;}
.peak-work{
  flex:0 0 100%;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:2rem;
  border:1px solid var(--line);
  border-radius:8px;
  padding:20px;
  background:linear-gradient(150deg, var(--charcoal), var(--charcoal-2));
  transition:border-color .35s var(--ease);
}
.peak-work:hover{border-color:var(--line-strong);}
.peak-image{
  width:46%;flex-shrink:0;
  aspect-ratio:16/10;
  object-fit:cover;object-position:top center;
  border-radius:6px;
  display:block;
  filter:saturate(.92);
  transition:filter .4s var(--ease);
}
.peak-image.contain{object-fit:contain;filter:none;padding:14px;box-sizing:border-box;}
.peak-work:hover .peak-image{filter:saturate(1.08);}
.peak-work:hover .peak-image.contain{filter:none;}
.peak-text{width:54%;color:var(--bone);}
.peak-tag{
  display:inline-flex;align-items:center;gap:8px;
  font-family:'IBM Plex Mono';font-size:11px;letter-spacing:.08em;text-transform:uppercase;
  color:var(--gold);margin-bottom:14px;
}
.peak-text h3{margin-bottom:.55rem;font-family:'Bebas Neue';font-size:1.5rem;letter-spacing:.01em;}
.peak-text p{color:var(--bone-dim);line-height:1.6;font-size:14.5px;}

.peak-arrow{
  position:absolute;top:50%;translate:0 -50%;
  width:38px;height:38px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid var(--line-strong);border-radius:50%;
  background:rgba(11,11,13,0.55);backdrop-filter:blur(6px);
  color:var(--bone);
  cursor:pointer;
  transition:border-color .25s, background .25s, color .25s;
}
.peak-arrow svg{width:16px;height:16px;}
.peak-arrow:hover{border-color:var(--gold);color:var(--gold-bright);background:rgba(11,11,13,0.75);}
.peak-arrow.prev{left:-14px;}
.peak-arrow.next{right:-14px;}

.peak-dots{display:flex;justify-content:center;gap:10px;margin-top:18px;}
.peak-dot{
  width:8px;height:8px;border-radius:50%;
  border:none;padding:0;
  background:var(--line-strong);
  cursor:pointer;
  transition:background .25s, transform .25s var(--ease);
}
.peak-dot.is-active{background:var(--flash);transform:scale(1.3);}

/* ===== SECTION SHELL ===== */
section{padding:150px 0;position:relative;}
.section-head{
  display:flex;align-items:baseline;gap:18px;margin-bottom:84px;
}
.section-head .tag-icon svg{width:26px;height:26px;flex-shrink:0;color:var(--flash);}
.section-head h2{
  font-family:'Bebas Neue';font-size:clamp(42px,6vw,74px);color:var(--bone);
  position:relative;
}
.section-head .mono{color:var(--bone-dim);margin-left:auto;text-align:right;max-width:260px;}

.reveal{opacity:0;transform:translateY(28px);transition:opacity .8s var(--ease), transform .8s var(--ease);}
.reveal.in{opacity:1;transform:translateY(0);}

/* ===== WORK ===== */
.project{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:center;
  padding:70px 0;
  border-top:1px solid var(--line);
  position:relative;
}
.project:first-of-type{border-top:none;}
.project::before{
  content:"";
  position:absolute;top:0;left:0;
  width:0;height:1px;
  background:linear-gradient(90deg,var(--flash),var(--gold));
  transition:width .9s var(--ease);
}
.project.in::before{width:120px;}

.project.flip .project-media{order:2;}
.project.flip .project-copy{order:1;}

.project-media{
  border:1px solid var(--line);
  border-radius:6px;
  overflow:hidden;
  background:linear-gradient(150deg, var(--charcoal), var(--charcoal-2));
  position:relative;
  width:100%;
}
.project-media.landscape{aspect-ratio:16/10;}
/* DMD live preview needs real vertical room for a meaningful desktop-scale iframe —
   overrides the shared 16:10 ratio above with explicit heights per breakpoint instead */
.project-media.dmd-preview{aspect-ratio:auto;height:760px;}
.project-media.portrait{aspect-ratio:3/4;max-width:420px;justify-self:center;}

.project-media img{
  width:100%;height:100%;
  object-fit:cover;object-position:top center;
  display:block;
  transition:transform .6s var(--ease), filter .6s var(--ease);
  filter:saturate(.9);
}
.project-media.landscape img{object-position:top center;}
.project-media.portrait img{object-position:center top;}
/* Use when the image is a complete design (poster, etc.) that shouldn't be cropped at all */
.project-media.contain{padding:20px;}
.project-media.contain img{object-fit:contain;object-position:center;filter:none;}

/* live preview: a screen recording of the real site, not a static screenshot */
.live-preview{display:flex;flex-direction:column;height:100%;width:100%;}
.live-preview-frame{position:relative;flex:1;overflow:hidden;background:var(--ink);}
.live-preview-video{
  position:absolute;top:0;left:0;
  width:100%;height:100%;
  object-fit:cover;object-position:top center;
  display:block;
  transition:transform .6s var(--ease);
}
.project:hover .live-preview-video{transform:scale(1.03);}

/* DMD live preview: a real iframe rendered at desktop width, scaled to fit — see script.js */
.live-preview-iframe{
  position:absolute;top:0;left:0;
  border:0;display:block;
  transform-origin:0 0;
  background:var(--bone);
}

/* ============ case-study image carousel ============ */
.case-carousel{
  margin-top:44px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.carousel-main{
  position:relative;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  aspect-ratio:16/9;
  background:linear-gradient(150deg, var(--charcoal), var(--charcoal-2));
}
.carousel-track{position:relative;width:100%;height:100%;}
.carousel-slide{
  position:absolute;inset:0;margin:0;
  opacity:0;
  transition:opacity .7s var(--ease);
  pointer-events:none;
}
.carousel-slide.is-active{opacity:1;pointer-events:auto;}
.carousel-slide img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block;filter:saturate(.92);}

.carousel-arrow{
  position:absolute;top:50%;translate:0 -50%;
  width:38px;height:38px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid var(--line-strong);border-radius:50%;
  background:rgba(11,11,13,0.55);backdrop-filter:blur(6px);
  color:var(--bone);
  cursor:pointer;
  transition:border-color .25s, background .25s, color .25s;
}
.carousel-arrow svg{width:16px;height:16px;}
.carousel-arrow:hover{border-color:var(--gold);color:var(--gold-bright);background:rgba(11,11,13,0.75);}
.carousel-arrow.prev{left:14px;}
.carousel-arrow.next{right:14px;}

.carousel-dots{
  display:flex;justify-content:center;gap:10px;
}
.carousel-dot{
  width:8px;height:8px;border-radius:50%;
  border:none;padding:0;
  background:var(--line-strong);
  cursor:pointer;
  transition:background .25s, transform .25s var(--ease);
}
.carousel-dot.is-active{background:var(--flash);transform:scale(1.3);}

.carousel-thumbs{display:flex;flex-direction:row;gap:16px;}
.carousel-thumb{
  flex:1;min-width:0;
  border:1px solid var(--line);border-radius:6px;overflow:hidden;
  aspect-ratio:16/10;
  background:linear-gradient(150deg, var(--charcoal), var(--charcoal-2));
  cursor:pointer;padding:0;
  transition:border-color .25s;
}
.carousel-thumb:hover{border-color:var(--gold);}
.carousel-thumb img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block;filter:saturate(.85);transition:filter .3s;}
.carousel-thumb:hover img{filter:saturate(1.05);}

@media (max-width:600px){
  .carousel-thumbs{gap:8px;}
}

@media (max-width: 860px){
  .project-media.landscape{aspect-ratio:4/3;}
}
.project:hover .project-media img{transform:scale(1.045);filter:saturate(1.05);}
.project:hover .project-media.contain img{transform:none;filter:none;}

@media (max-width:1024px){
  .project-media.dmd-preview{height:600px;}
}
@media (max-width:860px){
  .project-media.dmd-preview{height:520px;}
}
@media (max-width:600px){
  .project-media.dmd-preview{height:420px;}
}
@media (max-width:430px){
  .project-media.dmd-preview{height:380px;}
}

.project-tag{display:inline-flex;align-items:center;gap:8px;margin-bottom:18px;}
.project-tag .tag-icon svg{width:14px;height:14px;}

.project-copy h3{
  font-family:'Bebas Neue';
  font-size:clamp(30px,4vw,46px);
  margin-bottom:16px;
  color:var(--bone);
}
.project-copy p{color:var(--bone-dim);font-size:16px;line-height:1.7;max-width:460px;margin-bottom:16px;}

.project-meta{display:flex;gap:28px;margin-bottom:28px;flex-wrap:wrap;}
.project-meta div{display:flex;flex-direction:column;gap:4px;}
.project-meta .mono{color:var(--gold);font-size:10px;}
.project-meta span.val{font-size:13px;color:var(--bone-dim);font-family:'Inter';text-transform:none;letter-spacing:0;}

.project-link{
  display:inline-flex;align-items:center;gap:10px;
  font-family:'IBM Plex Mono';font-size:12px;text-transform:uppercase;letter-spacing:0.1em;
  color:var(--bone);border-bottom:1px solid var(--flash);padding-bottom:6px;
  transition:gap .25s var(--ease), color .25s;
}
.project-link:hover{gap:16px;color:var(--gold-bright);}
.project-link .tag-icon svg{width:14px;height:14px;transition:transform .25s var(--ease);}
.project-link:hover .tag-icon svg{transform:translateX(4px);}

.project-links{display:flex;flex-wrap:wrap;gap:14px 32px;}
.project-links .project-link[target="_blank"]{border-bottom-color:var(--gold);}
.project-links .project-link[target="_blank"]:hover{color:var(--gold-bright);}

.project-copy .hf-subhead{
  font-family:'IBM Plex Mono';font-size:11px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--bone-dim);margin:-10px 0 18px;
}

/* ============ Hart Forged featured device mockup ============ */
.hf-mockup-wrap{background:transparent;padding:0;}
.hf-mockup{
  position:relative;width:100%;height:100%;
  perspective:1600px;
}
.hf-scene{
  position:relative;width:100%;height:100%;
  transform-style:preserve-3d;
  transition:transform .5s var(--ease);
  will-change:transform;
  border-radius:6px;
  overflow:hidden;
  background:
    radial-gradient(120% 65% at 50% 0%, rgba(255,255,255,.055), transparent 60%),
    radial-gradient(65% 55% at 20% 88%, rgba(200,39,43,0.05), transparent 70%),
    linear-gradient(180deg, #242127 0%, #18161b 55%, var(--ink) 100%);
}
.hf-contact-shadow{
  position:absolute;left:8%;right:8%;bottom:8%;height:9%;
  background:radial-gradient(closest-side, rgba(0,0,0,.6), transparent 75%);
  filter:blur(5px);
  z-index:1;
  pointer-events:none;
}
.hf-glow{
  position:absolute;left:10%;right:14%;bottom:9%;height:20%;
  background:radial-gradient(closest-side, rgba(216,182,114,0.12), transparent 75%);
  filter:blur(6px);
  pointer-events:none;
}

/* --- laptop --- */
.hf-laptop{position:absolute;left:6%;bottom:6%;width:68%;z-index:2;}
.hf-laptop-lid{
  position:relative;
  border-radius:9px 9px 4px 4px;
  background:linear-gradient(155deg,#5a5a5e,#333336);
  padding:2.6% 2.6% 0;
  box-shadow:0 26px 46px -16px rgba(0,0,0,.65), 0 1px 0 rgba(255,255,255,.08) inset;
}
.hf-laptop-notch{
  position:absolute;top:0;left:50%;translate:-50% 0;
  width:9%;height:1.6%;min-height:5px;
  background:#333336;border-radius:0 0 6px 6px;
  z-index:2;
}
.hf-laptop-bezel{
  position:relative;aspect-ratio:16/10.4;border-radius:3px;overflow:hidden;
  background:#050506;
  display:flex;flex-direction:column;
}
.hf-browser-bar{
  display:flex;align-items:center;gap:4px;
  padding:2.4% 4% 1.8%;
  background:linear-gradient(150deg,#232226,#151417);
  flex:0 0 auto;
}
.hf-browser-bar .dot{width:4.5px;height:4.5px;border-radius:50%;background:var(--line-strong);flex-shrink:0;}
.hf-browser-bar .dot:first-child{background:var(--flash-dim);}
.hf-browser-bar .url{
  margin-left:4px;font-family:'IBM Plex Mono';font-size:8px;letter-spacing:.02em;
  color:var(--bone-dim);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  background:rgba(255,255,255,.04);
  border-radius:20px;padding:1.5px 7px;
  flex:1;min-width:0;
}
.hf-laptop-deck{
  height:0;padding-top:4.5%;
  margin:0 -3%;position:relative;
  background:linear-gradient(180deg,#4a4a4e,#242427);
  border-radius:0 0 8px 8px;
  box-shadow:0 14px 22px -8px rgba(0,0,0,.6);
}
.hf-laptop-deck::before{
  content:"";position:absolute;top:24%;left:10%;right:10%;height:32%;
  background-image:repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 6%, transparent 6% 12%);
  background-repeat:repeat-x;background-size:16.6% 100%;
  opacity:.6;
}
.hf-laptop-deck::after{
  content:"";position:absolute;bottom:16%;left:36%;right:36%;height:28%;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.07);
  border-radius:4px;
}

.hf-iframe-shell{position:relative;flex:1;overflow:hidden;background:var(--ink);}
.hf-iframe-shell iframe{position:absolute;top:0;left:0;border:0;transform-origin:0 0;display:block;}

/* --- phone --- */
.hf-phone{
  position:absolute;left:69%;bottom:3%;width:16%;z-index:3;
  filter:drop-shadow(0 18px 24px rgba(0,0,0,.5));
}
.hf-phone-frame{
  position:relative;aspect-ratio:9/19.5;
  background:linear-gradient(155deg,#1c1c1e,#050506);
  border-radius:18% / 8%;
  padding:3.2%;
  box-shadow:0 0 0 1px rgba(255,255,255,.08) inset;
}
.hf-phone-frame::before{ /* side button hint */
  content:"";position:absolute;right:-1.5%;top:22%;width:1.5%;height:9%;
  background:#050506;border-radius:2px;
}
.hf-phone-screen{position:relative;width:100%;height:100%;border-radius:14% / 6%;overflow:hidden;background:#000;display:flex;flex-direction:column;}
.hf-phone-notch{
  position:absolute;top:2.2%;left:50%;translate:-50% 0;
  width:32%;height:2.4%;
  background:#050506;border-radius:40px;z-index:2;
}

/* --- glare, position driven by JS via CSS custom properties --- */
.hf-glare{
  position:absolute;inset:0;pointer-events:none;z-index:4;
  background:radial-gradient(circle at var(--hf-glare-x,50%) var(--hf-glare-y,50%), rgba(255,255,255,var(--hf-glare-a,0)) 0%, transparent 45%);
  mix-blend-mode:screen;
  transition:opacity .3s;
}

/* --- TMD signature mark: bare transparent logo, tucked in a corner, understated --- */
.hf-logo-mark{
  position:absolute;right:3%;bottom:3%;
  width:6%;
  opacity:.6;
  filter:drop-shadow(0 4px 8px rgba(0,0,0,.5));
  z-index:2;
  pointer-events:none;
}
.hf-logo-mark img{width:100%;height:auto;display:block;}

@media (max-width:860px){
  .hf-laptop{left:5%;bottom:8%;width:67%;}
  .hf-phone{left:auto;right:5%;width:18%;bottom:5%;}
  .hf-logo-mark{width:9%;right:3%;bottom:2%;}
}

@media (prefers-reduced-motion: reduce){
  .hf-scene{transition:none;}
}

/* ===== ABOUT ===== */
.about-grid{display:grid;grid-template-columns:0.9fr 1.4fr;gap:80px;}

.about-mark{
  border:1px solid var(--line);
  border-radius:6px;
  padding:32px 26px;
  background:var(--charcoal);
  margin-bottom:24px;
  position:relative;
  overflow:hidden;
}
.about-mark::before{
  content:"";position:absolute;top:0;left:0;width:3px;height:100%;
  background:linear-gradient(180deg,var(--flash),var(--gold));
}
.about-mark .cred-line{
  font-family:'Bebas Neue';font-size:30px;color:var(--bone);letter-spacing:.01em;line-height:1.15;
}
.about-mark .cred-sub{color:var(--gold);margin-top:10px;display:block;}

.about-photo{
  border:1px solid var(--line);
  border-radius:6px;
  aspect-ratio:3/4;
  overflow:hidden;
  background:linear-gradient(160deg,var(--charcoal-2),var(--ink));
  position:relative;
}
.about-photo img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(.92);}

.about-copy h3{font-family:'Bebas Neue';font-size:clamp(28px,3.4vw,38px);margin-bottom:22px;color:var(--bone);}
.about-copy p{color:var(--bone-dim);font-size:17px;line-height:1.8;margin-bottom:22px;max-width:620px;}
.about-copy p strong{color:var(--bone);font-weight:600;}

.interests{display:flex;gap:14px;margin:28px 0 48px;flex-wrap:wrap;}
.interest-pill{
  font-family:'IBM Plex Mono';font-size:11px;text-transform:uppercase;letter-spacing:0.08em;
  border:1px solid var(--line);border-radius:20px;padding:9px 16px;color:var(--bone-dim);
  display:flex;align-items:center;gap:8px;
  transition:border-color .25s, color .25s;
}
.interest-pill:hover{border-color:var(--gold);color:var(--bone);}
.interest-pill .dot{width:5px;height:5px;border-radius:50%;background:var(--gold);}

/* ===== TOOLKIT STRIP (replaces placeholder testimonials) ===== */
.toolkit{margin-top:8px;}
.toolkit-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:28px;flex-wrap:wrap;gap:10px;}
.toolkit-head .mono{color:var(--bone-dim);}
.toolkit-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(150px,1fr));
  border:1px solid var(--line);
  border-radius:6px;
  overflow:hidden;
}
.tool-card{
  padding:26px 22px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--charcoal);
  transition:background .3s var(--ease), transform .3s var(--ease);
}
.tool-card:hover{background:var(--charcoal-2);transform:translateY(-2px);}
.tool-card .tool-name{font-family:'Bebas Neue';font-size:20px;color:var(--bone);display:block;margin-bottom:6px;}
.tool-card .tool-role{font-size:11.5px;color:var(--bone-dim);font-family:'IBM Plex Mono';text-transform:uppercase;letter-spacing:.06em;}

/* ===== FOOTER / CONTACT ===== */
footer{padding:130px 0 50px;position:relative;border-top:1px solid var(--line);overflow:hidden;}
.footer-crown{
  position:absolute;right:-4%;top:20px;width:36vw;max-width:420px;opacity:0.05;
  transform:rotate(-10deg);pointer-events:none;
}
.footer-cta h2{font-family:'Bebas Neue';font-size:clamp(46px,8vw,112px);color:var(--bone);margin-bottom:32px;}
.footer-contacts{display:flex;flex-direction:column;gap:10px;margin-bottom:6px;}
.footer-cta a.email,
.footer-cta a.phone{
  font-family:'IBM Plex Mono';font-size:clamp(16px,2vw,20px);color:var(--flash);
  border-bottom:1px solid var(--flash);padding-bottom:4px;
  display:inline-flex;align-items:center;gap:8px;width:fit-content;
  transition:color .25s, border-color .25s;
}
.contact-icon{width:16px;height:16px;flex-shrink:0;}
.footer-cta a.phone{color:var(--gold);border-color:var(--gold);}
.footer-cta a.email:hover{color:var(--gold-bright);border-color:var(--gold-bright);}
.footer-cta a.phone:hover{color:var(--flash);border-color:var(--flash);}

.footer-cv{
  display:inline-flex;align-items:center;gap:10px;
  margin-top:28px;
  font-family:'IBM Plex Mono';font-size:11px;text-transform:uppercase;letter-spacing:0.1em;
  color:var(--bone);border:1px solid var(--line-strong);padding:12px 20px;border-radius:2px;
  transition:border-color .25s, color .25s, background .25s, transform .25s var(--ease), gap .25s var(--ease);
}
.footer-cv:hover{border-color:var(--gold);color:var(--gold-bright);background:rgba(184,151,90,0.1);gap:16px;transform:translateY(-1px);}
.footer-cv .tag-icon svg{width:13px;height:13px;}

.footer-bottom{
  display:flex;justify-content:space-between;align-items:center;margin-top:110px;
  padding-top:28px;border-top:1px solid var(--line);flex-wrap:wrap;gap:16px;
}
.footer-bottom .mono{color:var(--bone-dim);}
.footer-socials{display:flex;gap:24px;}
.footer-socials a{
  font-family:'IBM Plex Mono';font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--bone-dim);
  display:inline-flex;align-items:center;gap:6px;
  transition:color .25s;
}
.footer-socials a:hover{color:var(--gold);}
.social-icon{width:15px;height:15px;flex-shrink:0;}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px){
  .hero-inner{flex-direction:column;align-items:flex-start;gap:32px;}
  .hero-logo{width:120px;}
  .peak-work{flex-direction:column;}
  .peak-image,.peak-text{width:100%;}
}

@media (max-width: 860px){
  .about-grid{grid-template-columns:1fr;}
  .project{grid-template-columns:1fr;}
  .project.flip .project-media{order:1;}
  .project.flip .project-copy{order:2;}
  section{padding:100px 0;}
  .wrap{padding:0 20px;}

  nav{
    position:fixed;top:0;right:0;height:100vh;width:min(78vw,320px);
    background:rgba(11,11,13,0.98);backdrop-filter:blur(14px);
    border-left:1px solid var(--line);
    transform:translateX(100%);
    transition:transform .4s var(--ease);
    display:flex;align-items:center;padding:0 40px;
    z-index:99;
  }
  nav.open{transform:translateX(0);}
  nav ul{flex-direction:column;gap:28px;}
  nav a{font-size:14px;}
  .nav-toggle{display:block;}
  .nav-cta{display:none;}
}

/* =========================================================
   CASE STUDY PAGE (e.g. project1.html)
   Reuses the palette, .wrap, .mono, .display, .project-meta,
   .reveal and footer patterns from above — these are the
   additions specific to individual project pages.
   ========================================================= */

/* Breadcrumb / back-to-home bar under the fixed header */
.case-crumb{
  padding:118px 0 0;
}
.back-link{
  display:inline-flex;align-items:center;gap:10px;
  font-family:'IBM Plex Mono';font-size:12px;text-transform:uppercase;letter-spacing:0.1em;
  color:var(--bone-dim);transition:color .25s, gap .25s var(--ease);
}
.back-link .tag-icon svg{width:14px;height:14px;transform:scaleX(-1);}
.back-link:hover{color:var(--bone);gap:14px;}

/* Case study hero — shorter than the homepage hero */
.case-hero{padding:26px 0 70px;}
.case-hero .eyebrow-row{margin-bottom:22px;}
.case-hero h1{
  font-family:'Bebas Neue';color:var(--bone);
  font-size:clamp(40px,7vw,84px);
  margin-bottom:18px;
  max-width:820px;
}
.case-hero .case-dek{
  color:var(--bone-dim);font-size:clamp(16px,1.8vw,19px);line-height:1.6;
  max-width:640px;margin-bottom:36px;
}
/* NOTE: swap the .project-meta divs in the HTML to update role/timeline/tools */
.case-hero .project-meta{margin-bottom:0;}

.case-hero-media{
  margin-top:44px;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  aspect-ratio:16/9;
  background:linear-gradient(150deg, var(--charcoal), var(--charcoal-2));
}
.case-hero-media img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block;filter:saturate(.92);}
/* Use on posters/vertical hero art instead of the default 16:9 */
.case-hero-media.portrait{aspect-ratio:3/4;max-width:460px;}
/* Use when the hero shot should sit slightly smaller than the full wrap width */
.case-hero-media.compact{max-width:940px;}

/* Generic case-study section shell — mirrors .project's top rule */
.case-section{
  padding:80px 0;
  border-top:1px solid var(--line);
}
.case-section:first-of-type{border-top:none;}
.case-section-label{
  display:flex;align-items:center;gap:10px;margin-bottom:26px;
  color:var(--gold);
}
.case-section-label .tag-icon svg{width:14px;height:14px;}
.case-section h2{
  font-family:'Bebas Neue';font-size:clamp(30px,4vw,44px);color:var(--bone);margin-bottom:28px;
}

/* Label + content row, used for Brief / Role / Decisions / Outcome */
.case-row{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:56px;
}
.case-row-label{color:var(--bone-dim);}
.case-row-label .mono{color:var(--gold);}
.case-row p{color:var(--bone-dim);font-size:16px;line-height:1.75;max-width:620px;margin-bottom:18px;}
.case-row p:last-child{margin-bottom:0;}
.case-row p strong{color:var(--bone);font-weight:600;}

.case-list{list-style:none;margin-top:6px;}
.case-list li{
  position:relative;padding-left:22px;margin-bottom:12px;
  color:var(--bone-dim);font-size:15.5px;line-height:1.6;
}
.case-list li::before{
  content:"";position:absolute;left:0;top:9px;width:8px;height:1px;
  background:linear-gradient(90deg,var(--flash),var(--gold));
}

/* Pull quote used for a design-decision callout or a reflection line */
.case-quote{
  border-left:2px solid var(--flash);
  padding:4px 0 4px 26px;
  margin:28px 0;
  max-width:620px;
}
.case-quote p{
  font-family:'Bebas Neue';font-size:clamp(20px,2.6vw,28px);color:var(--bone);
  line-height:1.25;margin:0;
}

/* Supporting image gallery within a case-study section */
.case-gallery{
  display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:36px;
}
.case-gallery figure{
  border:1px solid var(--line);border-radius:6px;overflow:hidden;
  background:linear-gradient(150deg, var(--charcoal), var(--charcoal-2));
  aspect-ratio:4/3;
}
/* Use on tall/poster-style gallery shots instead of the default 4:3 */
.case-gallery figure.portrait{aspect-ratio:3/4;}
/* Use on standalone marks/stickers that shouldn't be cropped */
.case-gallery figure.contain{padding:28px;}
.case-gallery img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block;filter:saturate(.92);}
.case-gallery figure.contain img{object-fit:contain;object-position:center;filter:none;}

/* Next-project / back-home strip at the end of the case study */
.case-end{
  padding:90px 0 40px;
  border-top:1px solid var(--line);
  text-align:center;
}
.case-end h2{font-family:'Bebas Neue';font-size:clamp(34px,5vw,56px);color:var(--bone);margin-bottom:28px;}
.case-end .footer-cv{margin-top:0;}
.case-end-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;}
.footer-cv.accent{border-color:rgba(200,39,43,0.45);}
.footer-cv.accent:hover{border-color:var(--flash);color:var(--bone);background:rgba(200,39,43,0.12);}

@media (max-width:860px){
  .case-row{grid-template-columns:1fr;gap:14px;}
  .case-gallery{grid-template-columns:1fr;}
  section.case-section{padding:60px 0;}
}

@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important;}
  html{scroll-behavior:auto;}
  .hero-name .line-inner{transform:translateY(0);}
  .hero-logo{opacity:1;filter:blur(0);transform:scale(1);}
}