/* =========================================================
   Miguel Celen — Portfolio
   Tokens
========================================================= */
:root{
  --bg:        #F7F2E6;
  --bg-2:      #EFE6D3;
  --bg-3:      #E7DBC2;
  --ink:       #14130D;
  --ink-soft:  #5B5847;
  --ink-faint: #6B6653;   /* was #8B8672: 3.3:1, now 5.1:1 on --bg (WCAG AA) */
  --paper:     #FFFFFF;
  --orange:    #DD5A22;
  --orange-dk: #A83F17;   /* text on light/tinted surfaces */
  --orange-strong: #C24A1C; /* white text on orange (4.9:1) */
  --orange-bg: rgba(221,90,34,.11);
  --teal:      #1F4A3F;
  --teal-dk:   #123028;
  --teal-bg:   rgba(31,74,63,.10);
  --gold:      #B0812C;
  --gold-dk:   #7F5C1C;
  --gold-bg:   rgba(176,129,44,.13);
  --indigo:      #3E4C8A;
  --indigo-dk:   #2E3A6B;
  --indigo-bg:   rgba(62,76,138,.10);
  --line:      rgba(20,19,15,.13);
  --line-soft: rgba(20,19,15,.07);

  --f-display: "Space Grotesk", sans-serif;
  --f-accent:  "Fraunces", serif;

  --container: 1180px;
  --measure: 68ch;
  --section-y: clamp(80px, 11vw, 130px);
  --nav-h: 76px;
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--orange-dk);
  --radius: 22px;
  --ease: cubic-bezier(.22,.68,.13,.99);

  --shadow-sm: 0 2px 14px rgba(20,19,15,.06);
  --shadow-md: 0 24px 50px -24px rgba(20,19,15,.22);
  --shadow-lg: 0 40px 80px -30px rgba(20,19,15,.28);
  --shadow-orange: 0 22px 46px -20px rgba(221,90,34,.38);
  --shadow-teal: 0 22px 46px -20px rgba(18,48,40,.32);
  --shadow-gold: 0 22px 46px -20px rgba(176,129,44,.36);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:calc(var(--nav-h) + 16px); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--f-display);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{ max-width:100%; height:auto; display:block; }
ul, ol{ margin:0; padding:0; list-style:none; }
button{ font:inherit; color:inherit; }

/* one focus style for everything keyboard users can reach */
:focus-visible{ outline:none; box-shadow:var(--focus); border-radius:6px; }
.btn:focus-visible, .filter-pill:focus-visible, .cred-chip:focus-visible{ border-radius:999px; }

.sr-only{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
a{ color:inherit; text-decoration:none; }

.section-wrap{
  max-width:var(--container);
  margin:0 auto;
  padding:0 28px;
}

.skip-link{
  position:absolute; left:-999px; top:0;
  background:var(--ink); color:var(--bg); padding:12px 18px; z-index:999; border-radius:0 0 10px 0;
}
.skip-link:focus{ left:0; box-shadow:none; }

/* faint paper grain overlay for texture without cliché gradients */
.grain{
  pointer-events:none; position:fixed; inset:0; z-index:1000; opacity:.035; mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress-rail{ position:fixed; top:0; left:0; width:100%; height:3px; z-index:998; background:transparent; }
.progress-fill{ height:100%; width:0%; background:var(--orange); transition:width .1s linear; }

/* =========================================================
   Reveal animation (single orchestrated pattern, reused)
========================================================= */
/* content is only hidden when JS is present to reveal it again */
.js [data-reveal]{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .8s var(--ease), transform .8s var(--ease);
}
.js [data-reveal].is-visible{
  opacity:1;
  transform:translateY(0);
}

/* =========================================================
   NAV
========================================================= */
.site-nav{
  position:fixed; top:0; left:0; right:0; z-index:500;
  padding:18px 28px;
  display:flex; justify-content:center;
  transition:background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.site-nav.is-scrolled{
  background:rgba(247,242,230,.86);
  backdrop-filter:blur(14px);
  box-shadow:0 1px 0 var(--line);
  padding:12px 28px;
}
.nav-wrap{
  width:100%; max-width:var(--container);
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:600; letter-spacing:-.01em; }
.brand-mark{ width:28px; height:auto; }
.brand-name{ font-size:15px; }

.nav-links{ display:flex; gap:34px; font-size:15px; }
.nav-links a{ position:relative; padding:4px 0; }
.nav-links a::after{
  content:""; position:absolute; left:0; right:100%; bottom:0; height:2px; background:var(--orange);
  transition:right .3s var(--ease);
}
.nav-links a:hover::after{ right:0; }
.nav-links a:hover{ color:var(--ink); }

.nav-side{ display:flex; align-items:center; gap:18px; }

.nav-toggle{ display:none; flex-direction:column; justify-content:center; gap:5px; width:44px; height:44px; background:none; border:0; cursor:pointer; padding:10px; margin-right:-10px; }
.nav-toggle span{ height:2px; width:100%; background:var(--ink); border-radius:2px; transition:transform .3s var(--ease), opacity .3s; }
.nav-mobile{
  display:none; flex-direction:column; gap:2px;
  max-height:0; overflow:hidden;
  visibility:hidden;
  transition:max-height .4s var(--ease), visibility 0s linear .4s;
  background:var(--bg); border-top:1px solid var(--line);
}
.nav-mobile.is-open{ visibility:visible; transition:max-height .4s var(--ease), visibility 0s; }
.site-nav.menu-open{ background:var(--bg); box-shadow:0 1px 0 var(--line); }
.nav-mobile a{ padding:14px 28px; border-bottom:1px solid var(--line-soft); font-size:16px; }
.nav-mobile-social{ display:flex; gap:18px; padding:16px 28px; }
.nav-mobile-social a{ display:inline-flex; padding:5px; border-bottom:0; }
.nav-mobile-social img{ width:34px; height:34px; }

/* =========================================================
   HERO
========================================================= */
.hero{
  position:relative;
  min-height:min(100vh, 980px);
  min-height:min(100svh, 980px);
  display:flex; align-items:center;
  padding:150px 28px 100px;
  background:
    radial-gradient(ellipse 60% 45% at 82% 18%, rgba(221,90,34,.18), transparent 60%),
    var(--bg);
}
.hero-inner{ max-width:var(--container); margin:0 auto; width:100%; position:relative; }

.hero-dotword{
  font-family:var(--f-display);
  font-weight:700;
  font-size:clamp(30px, 4.4vw, 54px);
  letter-spacing:.01em;
  margin:0 0 6px;
  color:transparent;
  background-image:radial-gradient(var(--ink) 34%, transparent 36%);
  background-size:.17em .17em;   /* scales with the type, stays legible on mobile */
  -webkit-background-clip:text;
  background-clip:text;
}
.hero-dotword.small{ font-size:clamp(26px,3vw,34px); margin-bottom:10px; }
.hero-headline .hero-dotword{ display:block; line-height:1.15; letter-spacing:.01em; margin-bottom:10px; }

.hero-headline{
  margin:0 0 30px;
  font-weight:700;
  letter-spacing:-.02em;
  line-height:.94;
}
.hero-headline .line{
  display:block;
  font-size:clamp(52px, 10.4vw, 132px);
}
.line-orange{ color:var(--orange); position:relative; }
.line-ink{ color:var(--ink); }
.dot-accent{ color:var(--orange); }

.toggle-letter{
  display:inline-flex; align-items:center; justify-content:center;
  width:1.15em; vertical-align:middle;
  margin:0 .02em;
  transform:translateY(-.03em);
}
.toggle-switch{
  position:relative;
  width:1.05em; height:.5em;
  border-radius:999px;
  background:var(--ink);
  display:inline-block;
}
.toggle-knob{
  position:absolute; top:8%; left:5%;
  width:.4em; height:.4em;
  border-radius:50%;
  background:var(--bg);
  animation:toggleSlide 4.5s ease-in-out infinite;
}
@keyframes toggleSlide{
  0%, 38%{ left:5%; }
  50%, 88%{ left:calc(100% - .45em); }
  100%{ left:5%; }
}

/* photo inserted in place of a letter (the "I" in DESIGNER) */
.letter-photo{
  display:inline-block;
  width:.52em; height:.94em;
  border-radius:999px;
  overflow:hidden;
  vertical-align:-.06em;
  margin:0 .03em;
  background:var(--bg-2);
  box-shadow:inset 0 0 0 2px var(--bg);
}
.letter-photo img{ width:100%; height:100%; object-fit:cover; object-position:center 22%; }

@keyframes spin{ to{ transform:rotate(360deg); } }

.hero-caption-center{
  position:absolute;
  top:50%; right:0;
  width:min(300px, 30vw);
  transform:translateY(-50%);
  font-family:var(--f-accent);
  font-style:italic;
  font-size:19px;
  line-height:1.5;
  color:var(--ink-soft);
  text-align:center;
}
.hero-caption-center em{ color:var(--orange); font-style:italic; font-weight:600; }

.hero-foot{ margin-top:26px; display:flex; flex-wrap:wrap; align-items:center; gap:14px 22px; }
.hero-intro{ font-size:16px; line-height:1.55; color:var(--ink-soft); margin:0; max-width:52ch; }
.hero-intro strong{ color:var(--ink); }
.hero .status-pill{ margin-bottom:26px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:38px; }
.dot{ width:8px; height:8px; border-radius:50%; background:#6E9B54; flex:none; }
.tool-row{ display:flex; align-items:center; gap:22px; }
.tool-row img{ height:28px; width:auto; max-width:48px; object-fit:contain; filter:grayscale(1); opacity:.7; transition:opacity .25s, filter .25s, transform .25s; }
.tool-row img:hover{ filter:grayscale(0); opacity:1; transform:translateY(-2px); }


/* Ambient animated glow + cursor spotlight for the hero, black-bg only */
.hero{ position:relative; overflow:hidden; }
.hero-glow{
  position:absolute; inset:-10% -10% auto auto; width:60vw; height:60vw; max-width:820px; max-height:820px;
  background:radial-gradient(circle, rgba(221,90,34,.18), transparent 68%);
  pointer-events:none; z-index:0;
  animation:driftGlow 16s ease-in-out infinite;
}
.hero-glow.glow-2{
  inset:auto auto -20% -10%; left:0; top:auto; width:50vw; height:50vw; max-width:640px; max-height:640px;
  background:radial-gradient(circle, rgba(79,184,156,.10), transparent 70%);
  animation:driftGlow2 20s ease-in-out infinite;
}
@keyframes driftGlow{ 0%,100%{ transform:translate(0,0);} 50%{ transform:translate(-6%,6%);} }
@keyframes driftGlow2{ 0%,100%{ transform:translate(0,0);} 50%{ transform:translate(5%,-8%);} }
.hero-spotlight{
  position:absolute; inset:0; z-index:0; pointer-events:none; opacity:0;
  background:radial-gradient(480px circle at var(--x,50%) var(--y,50%), rgba(221,90,34,.08), transparent 60%);
  transition:opacity .4s;
}
.hero:hover .hero-spotlight{ opacity:1; }
.hero-inner{ position:relative; z-index:1; }

@media (max-width:820px){
  .hero{ min-height:0; padding-bottom:80px; }
  .hero-caption-center{ position:static; width:100%; max-width:340px; margin-top:26px; transform:none; text-align:left; }
  .hero{ padding-top:130px; }
}

/* =========================================================
   ABOUT
========================================================= */
.about{ padding:var(--section-y) 0; border-top:1px solid var(--line); }
.about--page{ padding-top:80px; border-top:0; }
.about-lede{
  font-size:clamp(26px, 4vw, 46px);
  line-height:1.32;
  font-weight:600;
  letter-spacing:-.01em;
  max-width:1000px;
}
.photo-chip{
  display:inline-block;
  width:1.05em; height:1.05em;
  border-radius:50%;
  overflow:hidden;
  vertical-align:-.22em;
  margin:0 .12em;
  background:var(--bg-2);
}
.photo-chip img{ width:100%; height:100%; object-fit:cover; object-position:top; }
.badge-pill{
  display:inline-flex; align-items:center; justify-content:center;
  border:1.5px solid var(--ink);
  border-radius:999px;
  padding:.08em .5em;
  font-size:.42em;
  font-weight:700;
  vertical-align:.14em;
  margin:0 .05em;
}
.emoji{ font-size:.85em; }

.about-bottom{ margin-top:64px; }
.about-skills-label{
  font-family:var(--f-accent); font-style:italic; font-weight:500; font-size:21px; color:var(--ink-soft); margin:0 0 30px;
}
.skill-group{ margin-bottom:34px; }
.skill-group:last-child{ margin-bottom:0; }
.skill-group-title{ font-size:14px; font-weight:600; color:var(--ink-soft); margin:0 0 14px; }
.pill-field{
  display:flex; flex-wrap:wrap; gap:14px 16px; align-items:center;
}
.pill{
  display:inline-flex; align-items:center;
  padding:14px 24px;
  border:1.5px solid var(--ink);
  border-radius:999px;
  font-size:16px; font-weight:500;
  background:var(--bg);
  transition:transform .3s var(--ease), background .3s, color .3s;
}
/* pills are labels, not buttons: no hover state that suggests they can be clicked */
.pill-fill{ background:var(--ink); color:var(--bg); }
.pill-sm{ padding:10px 18px; font-size:14px; }
.pill-circle{ width:52px; height:52px; padding:0; justify-content:center; border-radius:50%; font-size:20px; }

.pill-rot-1{ transform:rotate(-3deg); }
.pill-rot-2{ transform:rotate(2deg); }
.pill-rot-3{ transform:rotate(-1.5deg); }
.pill-rot-4{ transform:rotate(4deg); }
.pill-rot-5{ transform:rotate(-2deg); }
.pill-rot-6{ transform:rotate(1.5deg); }
.pill-rot-7{ transform:rotate(-2.5deg); }
.pill-rot-8{ transform:rotate(2.5deg); }
.pill-rot-9{ transform:rotate(-4deg); }
.pill-rot-10{ transform:rotate(3deg); }
.pill-rot-11{ transform:rotate(-1deg); }
.pill-rot-12{ transform:rotate(2.5deg); }
.pill-rot-13{ transform:rotate(-3.5deg); }
.pill-rot-14{ transform:rotate(1.5deg); }
.pill-rot-15{ transform:rotate(-2deg); }
.pill-rot-16{ transform:rotate(3deg); }

.pill-learning{
  border-style:dashed; border-color:var(--gold); color:var(--gold-dk);
  background:var(--gold-bg);
}

/* =========================================================
   SKILLS STRIP
========================================================= */
.skillbar{ padding:70px 0; border-top:1px solid var(--line); }
.skillbar-wrap{ display:grid; grid-template-columns:repeat(3,1fr); gap:50px; }
.skillbar-wrap-4{ grid-template-columns:repeat(4,1fr); gap:40px; }
.skillbar-item h3{ font-size:22px; margin:0 0 10px; letter-spacing:-.01em; }
.skillbar-item h3::before{ content:""; display:block; width:26px; height:3px; border-radius:2px; background:var(--orange); margin-bottom:16px; }
.skillbar-item p{ font-size:15px; line-height:1.6; color:var(--ink-soft); margin:0; }
.skillbar-num{
  font-family:var(--f-accent); font-style:italic; color:var(--orange); font-size:15px; font-weight:600;
}
@media (max-width:980px){ .skillbar-wrap-4{ grid-template-columns:repeat(2,1fr); gap:36px 30px; } }
@media (max-width:820px){ .skillbar-wrap{ grid-template-columns:1fr; gap:36px; } }
@media (max-width:560px){ .skillbar-wrap-4{ grid-template-columns:1fr; } }

/* =========================================================
   WORK
========================================================= */
.work{ padding:var(--section-y) 0; }
.work--page{ padding-top:64px; }
.work-head{ max-width:640px; margin-bottom:40px; }
.work-head h2{ font-size:clamp(36px,5vw,58px); letter-spacing:-.02em; margin:0 0 14px; }
.work-head p{ font-size:17px; color:var(--ink-soft); line-height:1.6; margin:0; }

.filter-bar{
  position:relative;
  display:inline-flex; gap:4px;
  padding:5px; border-radius:999px;
  background:var(--bg-2);
  margin-bottom:14px;
}
.filter-status{ font-size:13.5px; color:var(--ink-faint); margin:0 0 40px; }
.filter-pill{
  position:relative; z-index:2;
  border:0; background:transparent; cursor:pointer;
  padding:11px 22px; border-radius:999px;
  font-family:var(--f-display); font-size:14.5px; font-weight:600;
  color:var(--ink-soft);
  transition:color .3s;
}
.filter-pill:hover{ color:var(--ink); }
.filter-pill.is-active{ color:var(--bg); }
.filter-indicator{
  position:absolute; z-index:1; top:5px; left:5px; height:calc(100% - 10px);
  border-radius:999px; background:var(--ink);
  transition:transform .4s var(--ease), width .4s var(--ease);
}

.work-list{ display:flex; flex-direction:column; gap:34px; }

.work-row{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:48px;
  align-items:center;
  padding:40px;
  border-radius:28px;
  background:var(--paper);
  border:1px solid var(--line-soft);
  transition:transform .5s var(--ease), box-shadow .45s var(--ease);
}
.work-row:hover{ box-shadow:var(--shadow-md); }
.work-row.is-reverse{ grid-template-columns:1.15fr .85fr; }
.work-row.is-reverse .work-frame{ order:-1; }

[data-category][data-hidden="true"]{ display:none; }

.work-tag{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; font-weight:700; letter-spacing:.02em;
  padding:7px 14px; border-radius:999px; margin-bottom:18px;
}
.work-tag::before{ content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.tag-product{ background:var(--orange-bg); color:var(--orange-dk); }
.tag-graphic{ background:var(--teal-bg); color:var(--teal); }
.tag-dev{ background:var(--indigo-bg); color:var(--indigo); }

.work-meta h2, .work-meta h3{ font-size:clamp(24px,2.6vw,32px); margin:0 0 14px; letter-spacing:-.01em; line-height:1.15; }
.work-meta h2 a, .work-meta h3 a{ color:inherit; }
.work-meta p{ font-size:15.5px; line-height:1.65; color:var(--ink-soft); margin:0 0 20px; }
.work-links{ display:flex; flex-wrap:wrap; gap:10px 22px; }
.work-links a{ display:inline-flex; align-items:center; gap:6px; font-size:14.5px; font-weight:600; border-bottom:1.5px solid var(--ink); padding:6px 0 2px; transition:color .2s, border-color .2s; }
.work-links a::after, .t-link::after{ content:"\2192"; transition:transform .25s var(--ease); }
.work-links a:hover{ color:var(--orange-dk); border-color:var(--orange-dk); }
.work-links a:hover::after, .t-link:hover::after{ transform:translateX(3px); }

.work-frame{
  border-radius:20px;
  padding:22px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.frame-dark{ background:var(--teal-dk); }
.frame-light{ background:var(--bg-2); }
.frame-dev{ background:var(--indigo-dk); }

.work-shot{
  border:0; padding:0; cursor:zoom-in; border-radius:12px; overflow:hidden;
  background:transparent; display:block; position:relative;
}
.work-shot img{ width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease); }
.work-shot:hover img{ transform:scale(1.05); }
.work-shot.tall{ grid-row:span 2; aspect-ratio:3/4; }
.work-shot.wide{ aspect-ratio:16/10; }
.work-shot.square{ aspect-ratio:1/1; }

@media (max-width:900px){
  .work-row, .work-row.is-reverse{ grid-template-columns:1fr; gap:28px; padding:26px; }
  .work-row.is-reverse .work-frame{ order:0; }
}

/* =========================================================
   CONTACT
========================================================= */
.contact{ padding:130px 0 110px; }
.contact .section-wrap{ display:grid; grid-template-columns:.9fr 1.1fr; gap:60px; }
.contact-head h2{ font-size:clamp(34px,4.6vw,52px); line-height:1.08; letter-spacing:-.02em; margin:10px 0 0; }

.contact-form{ max-width:520px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:13.5px; font-weight:600; margin-bottom:8px; }
.field input, .field textarea{
  width:100%; border:1.5px solid var(--line); background:var(--paper);
  border-radius:12px; padding:13px 16px; font-family:var(--f-display); font-size:15px; color:var(--ink);
  transition:border-color .25s;
}
.field input:focus-visible, .field textarea:focus-visible{ outline:none; border-color:var(--orange-dk); box-shadow:0 0 0 3px var(--orange-bg); border-radius:12px; }
.field textarea{ resize:vertical; min-height:150px; line-height:1.55; }
.field.has-error input, .field.has-error textarea{ border-color:#B3261E; }
.field-error{ margin:6px 0 0; font-size:13px; font-weight:600; color:#B3261E; }
.field-error::before{ content:"! "; }
.form-note{ font-size:13.5px; color:var(--ink-faint); margin:0 0 18px; }
.hp-field{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.field small{ display:block; margin-top:6px; color:var(--ink-soft); font-size:12.5px; }

.btn-send{ margin-top:4px; }
.btn-send[aria-busy="true"]{ opacity:.7; pointer-events:none; }
.form-status{ margin-top:18px; font-size:15px; line-height:1.5; }
.form-status:empty{ display:none; }
.form-status.is-success, .form-status.is-error{ padding:16px 18px; border-radius:14px; }
.form-status.is-success{ background:rgba(95,160,90,.14); color:#2F5E2C; }
.form-status.is-error{ background:rgba(179,38,30,.08); color:#8C1D18; }
.form-status a{ text-decoration:underline; font-weight:600; }

@media (max-width:820px){
  .contact .section-wrap{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer{ background:var(--bg-2); color:var(--ink); padding:56px 0 26px; border-top:1px solid var(--line-soft); }
.footer-wrap{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px; padding-bottom:32px; border-bottom:1px solid var(--line); }
.footer-nav{ display:flex; gap:28px; font-size:14.5px; }
.footer-social{ display:flex; gap:16px; }
.footer-social a{ display:inline-flex; border-radius:50%; }
.footer-social img{ width:36px; height:36px; opacity:.85; transition:opacity .2s, transform .2s; }
.footer-nav a:hover{ color:var(--orange-dk); }
.footer-social img:hover{ opacity:1; transform:translateY(-2px); }
.footer-bottom{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; padding-top:22px; }
.footer-copy{ font-size:13px; color:var(--ink-faint); margin:0; }
.footer-top{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--ink-soft); padding:6px 0; }
.footer-top svg{ width:13px; height:13px; }
.footer-top:hover{ color:var(--orange-dk); }

/* =========================================================
   LIGHTBOX
========================================================= */
.lightbox{
  position:fixed; inset:0; z-index:900;
  background:rgba(16,15,11,.92);
  display:flex; align-items:center; justify-content:center;
  padding:40px;
  opacity:0; pointer-events:none;
  transition:opacity .3s var(--ease);
}
.lightbox.is-open{ opacity:1; pointer-events:auto; }
.lightbox:not(.is-open){ visibility:hidden; transition:opacity .3s var(--ease), visibility 0s linear .3s; }
.lightbox-dialog{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; gap:16px; }
.lightbox-figure{ margin:0; display:flex; flex-direction:column; align-items:center; gap:14px; min-width:0; }
.lightbox img{ max-width:100%; max-height:80vh; width:auto; border-radius:10px; box-shadow:0 30px 80px rgba(0,0,0,.5); }
.lightbox figcaption{ color:#E9E3D3; font-size:14px; text-align:center; }
.lightbox-close, .lightbox-nav{
  display:inline-flex; align-items:center; justify-content:center;
  width:48px; height:48px; border-radius:50%; flex:none;
  background:rgba(255,255,255,.12); border:0; color:#fff; cursor:pointer;
  transition:background .2s;
}
.lightbox-close:hover, .lightbox-nav:hover{ background:rgba(255,255,255,.24); }
.lightbox-close svg, .lightbox-nav svg{ width:18px; height:18px; }
.lightbox-close{ position:absolute; top:20px; right:20px; }
.lightbox-nav[hidden]{ display:none; }
.lightbox :focus-visible{ box-shadow:0 0 0 3px #fff; }
@media (max-width:640px){
  .lightbox{ padding:70px 12px 24px; }
  .lightbox-dialog{ flex-wrap:wrap; align-content:center; }
  .lightbox-figure{ order:-1; width:100%; }
}

/* =========================================================
   RESPONSIVE — NAV
========================================================= */
@media (max-width:900px){
  .nav-links{ display:none; }
  .nav-toggle{ display:flex; }
  .nav-mobile{ display:flex; }
  .site-nav{ flex-direction:column; align-items:stretch; padding:16px 0; }
  .nav-wrap{ padding:0 24px; }
}
.nav-toggle.is-active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2){ opacity:0; }
.nav-toggle.is-active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media (max-width:520px){
  .section-wrap{ padding:0 20px; }
  .hero{ padding-left:20px; padding-right:20px; }
  .work-frame{ grid-template-columns:1fr; }
  .work-shot.tall{ grid-row:auto; aspect-ratio:16/10; }
}

/* =========================================================
   BUTTON SYSTEM
========================================================= */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--f-display); font-weight:600; font-size:15px;
  padding:15px 28px; border-radius:999px; border:1.5px solid transparent;
  cursor:pointer; transition:transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
  text-align:center; white-space:nowrap;
}
.btn svg{ width:15px; height:15px; transition:transform .3s var(--ease); flex:none; }
.btn-primary{ background:var(--ink); color:var(--bg); }
.btn-primary:hover{ background:var(--orange-strong); box-shadow:var(--shadow-orange); transform:translateY(-3px); }
.btn-outline{ background:transparent; color:var(--ink); border-color:var(--ink); }
.btn-outline:hover{ background:var(--ink); color:var(--bg); transform:translateY(-3px); }
.btn-ghost{ display:inline-flex; align-items:center; gap:10px; background:transparent; color:var(--ink); padding:8px 0; border-radius:0; font-family:var(--f-display); font-weight:600; font-size:15px; }
.btn-ghost svg{ width:15px; height:15px; flex:none; transform:translateX(0); transition:transform .3s var(--ease); }
.btn-ghost:hover{ color:var(--orange-dk); }
.btn-ghost:hover svg{ transform:translateX(5px); }
.btn:hover svg{ transform:translateX(3px); }
.btn-block{ width:100%; justify-content:center; }

/* =========================================================
   STATUS / AVAILABILITY BADGE
========================================================= */
.status-pill{
  display:inline-flex; align-items:center; gap:9px;
  padding:8px 16px 8px 12px; border-radius:999px;
  background:var(--paper); border:1px solid var(--line);
  font-size:13px; font-weight:600; color:var(--ink-soft);
}
.status-dot{
  width:8px; height:8px; border-radius:50%; background:#5FA05A; position:relative; flex:none;
}
.status-dot::after{
  content:""; position:absolute; inset:-4px; border-radius:50%; border:1.5px solid #5FA05A;
  animation:pulseRing 2.4s ease-out infinite;
}
@keyframes pulseRing{ 0%{ transform:scale(.6); opacity:.9;} 100%{ transform:scale(1.9); opacity:0;} }

/* =========================================================
   NAV enhancements
========================================================= */
.nav-links a.is-active{ color:var(--orange-dk); }
.nav-links a.is-active::after{ right:0; }
.nav-mobile a.is-active{ color:var(--orange-dk); font-weight:600; }
.nav-cta{ display:inline-flex; }
.btn-sm{ padding:11px 22px; font-size:13.5px; }

/* =========================================================
   BREADCRUMB
========================================================= */
.crumb{ margin:0 0 22px; font-size:13.5px; }
.crumb ol{ display:flex; align-items:center; flex-wrap:wrap; gap:4px 0; }
.crumb li{ display:inline-flex; align-items:center; color:var(--ink-soft); }
.crumb li + li::before{ content:"/"; margin:0 9px; color:var(--ink-faint); }
.crumb a{ color:var(--ink-soft); text-decoration:underline; text-decoration-color:var(--line); text-underline-offset:3px; transition:color .2s; }
.crumb a:hover{ color:var(--orange-dk); text-decoration-color:currentColor; }
.crumb [aria-current]{ color:var(--ink); font-weight:600; }

/* =========================================================
   PAGE HERO (subpages)
========================================================= */
.page-hero{
  padding:150px 0 64px;
  position:relative;
  background:
    radial-gradient(ellipse 55% 60% at 88% 0%, rgba(221,90,34,.15), transparent 62%),
    var(--bg);
  border-bottom:1px solid var(--line);
}
.page-hero-inner > *{ max-width:820px; }
.page-hero--flush{ padding-bottom:0; border-bottom:0; }
.page-hero .status-pill{ margin-bottom:20px; }
.page-hero h1{
  font-size:clamp(38px, 5.6vw, 68px);
  letter-spacing:-.02em; line-height:1.02; margin:6px 0 18px;
}
.page-hero p{ font-size:18px; line-height:1.6; color:var(--ink-soft); max-width:600px; margin:0; }
.page-hero-meta{ display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.meta-chip{
  font-size:13px; font-weight:600; padding:8px 15px; border-radius:999px;
  background:var(--paper); border:1px solid var(--line); color:var(--ink-soft);
}

/* =========================================================
   SECTION UTILITIES
========================================================= */
.section{ padding:80px 0; }
.section--ruled{ padding:90px 0 100px; border-top:1px solid var(--line); }
.section--flush-top{ padding:0 0 120px; }
.section--cred{ padding:80px 0 40px; }
.section--contact{ padding:70px 0 var(--section-y); }
.section-title{ font-size:clamp(26px,3.2vw,36px); letter-spacing:-.01em; line-height:1.15; margin:0 0 40px; max-width:560px; }
.section-action{ margin-top:40px; }
.cta-section{ padding:0 28px var(--section-y); }

/* =========================================================
   TIMELINE (about page)
========================================================= */
.timeline{ position:relative; margin-top:10px; }
.timeline::before{
  content:""; position:absolute; left:9px; top:6px; bottom:6px; width:1.5px;
  background:linear-gradient(var(--line), var(--line) 70%, transparent);
}
.timeline-item{
  position:relative; padding:0 0 40px 40px;
}
.timeline-item:last-child{ padding-bottom:0; }
.timeline-dot{
  position:absolute; left:0; top:3px; width:20px; height:20px; border-radius:50%;
  background:var(--paper); border:2px solid var(--ink); display:flex; align-items:center; justify-content:center;
}
.timeline-dot::after{ content:""; width:7px; height:7px; border-radius:50%; background:var(--ink); }
.timeline-item.is-progress .timeline-dot{ border-color:var(--gold); border-style:dashed; }
.timeline-item.is-progress .timeline-dot::after{ background:var(--gold); }
.timeline-item h3{ font-size:19px; margin:0 0 4px; letter-spacing:-.01em; }
.timeline-item .t-issuer{ font-size:13.5px; color:var(--ink-faint); margin:0 0 8px; }
.timeline-item p.t-desc{ font-size:14.5px; color:var(--ink-soft); line-height:1.6; margin:0 0 10px; max-width:520px; }
.timeline-item a.t-link{ display:inline-flex; gap:6px; font-size:13.5px; font-weight:600; border-bottom:1.5px solid var(--ink); padding:6px 0 1px; }
.timeline-item a.t-link:hover{ color:var(--orange-dk); border-color:var(--orange-dk); }

/* =========================================================
   APPROACH GRID (about page)
========================================================= */
.approach-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.approach-card{
  padding:32px 28px; border-radius:20px; background:var(--paper); border:1px solid var(--line-soft);
  transition:transform .35s var(--ease), box-shadow .35s var(--ease);
}
.approach-grid--4{ grid-template-columns:repeat(2,1fr); }
.approach-card .a-label{ display:block; font-size:13px; font-weight:600; color:var(--orange-dk); margin-bottom:12px; }
.approach-card .a-num{ font-family:var(--f-accent); font-style:italic; color:var(--orange); font-size:14px; font-weight:600; }
.approach-card h3{ font-size:20px; margin:0 0 10px; letter-spacing:-.01em; }
.approach-card p{ font-size:14.5px; line-height:1.6; color:var(--ink-soft); margin:0; }
@media (max-width:900px){ .approach-grid, .approach-grid--4{ grid-template-columns:1fr; } }

/* =========================================================
   CREDENTIALS
========================================================= */
.cred-group{ margin-bottom:64px; }
.cred-group-head{ display:flex; align-items:baseline; gap:16px; margin-bottom:28px; flex-wrap:wrap; }
.cred-group-head h2{ font-size:26px; letter-spacing:-.01em; margin:0; }
.cred-group-head span{ font-family:var(--f-accent); font-style:italic; color:var(--ink-faint); font-size:14.5px; }

.cred-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
@media (max-width:820px){ .cred-grid{ grid-template-columns:1fr; } }

.cred-card{
  display:flex; gap:20px; align-items:flex-start;
  padding:28px; border-radius:20px; background:var(--paper); border:1px solid var(--line-soft);
  text-align:left; width:100%; position:relative;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.cred-card:focus-within{ box-shadow:var(--shadow-md); }
.cred-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-md); border-color:transparent; }
.cred-seal{
  flex:none; width:56px; height:56px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--orange-bg); color:var(--orange-dk);
}
.cred-card.is-gold .cred-seal{ background:var(--gold-bg); color:var(--gold-dk); }
.cred-card.is-teal .cred-seal{ background:var(--teal-bg); color:var(--teal); }
.cred-seal svg{ width:28px; height:28px; }
.cred-body h3{ font-size:18px; margin:0 0 5px; letter-spacing:-.01em; }
.cred-body .c-issuer{ font-size:13.5px; color:var(--ink-faint); margin:0 0 10px; }
.cred-status{
  display:inline-flex; align-items:center; gap:6px;
  font-size:12px; font-weight:700; letter-spacing:.01em;
  padding:4px 10px; border-radius:999px; background:var(--bg-2); color:var(--ink-soft);
}
.cred-status.is-progress{ background:var(--gold-bg); color:var(--gold-dk); }
.cred-status::before{ content:""; width:5px; height:5px; border-radius:50%; background:currentColor; }
.cred-body{ display:flex; flex-direction:column; align-items:flex-start; }
.cred-view{
  margin-top:14px; padding:4px 0; background:none; border:0; cursor:pointer;
  font-size:13.5px; font-weight:600; color:var(--ink); display:inline-flex; align-items:center; gap:6px;
}
/* whole card is clickable, but only the button is in the tab order */
.cred-view::after{ content:""; position:absolute; inset:0; border-radius:20px; }
.cred-view:focus-visible{ box-shadow:none; }
.cred-view:focus-visible::after{ box-shadow:var(--focus); }
.cred-card:hover .cred-view{ color:var(--orange-dk); }
.cred-view svg{ width:12px; height:12px; }

/* Credential modal */
.cred-modal{
  position:fixed; inset:0; z-index:920; display:flex; align-items:center; justify-content:center; padding:24px;
  background:rgba(20,19,15,.55); backdrop-filter:blur(6px);
  opacity:0; pointer-events:none; transition:opacity .3s var(--ease);
}
.cred-modal.is-open{ opacity:1; pointer-events:auto; }
.cred-modal:not(.is-open){ visibility:hidden; transition:opacity .3s var(--ease), visibility 0s linear .3s; }
.cred-modal-card{
  max-width:520px; width:100%; max-height:calc(100vh - 48px); overflow:auto; background:var(--paper); border-radius:24px; padding:44px;
  position:relative; box-shadow:var(--shadow-lg);
  transform:translateY(14px) scale(.98); transition:transform .35s var(--ease);
}
.cred-modal.is-open .cred-modal-card{ transform:translateY(0) scale(1); }
.cred-modal-close{
  position:absolute; top:20px; right:20px; background:none; border:0; cursor:pointer;
  width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:var(--ink-soft); transition:background .2s;
}
.cred-modal-close:hover{ background:var(--bg-2); }
.cred-modal .cred-seal{ width:64px; height:64px; margin-bottom:20px; }
.cred-modal-close svg{ width:16px; height:16px; }
.cred-modal-card h2{ font-size:25px; margin:0 0 6px; letter-spacing:-.01em; padding-right:40px; }
.cred-skills-title{ font-size:13px; font-weight:600; color:var(--ink-soft); margin:0 0 10px; }
.cred-modal-card .c-issuer{ font-size:14px; color:var(--ink-faint); margin:0 0 18px; }
.cred-modal-card p.c-desc{ font-size:15px; line-height:1.65; color:var(--ink-soft); margin:18px 0 22px; }
@media (max-width:520px){ .cred-modal-card{ padding:32px 24px; } }
.cred-skills{ display:flex; flex-wrap:wrap; gap:8px; }
.cred-skills li{ font-size:12.5px; padding:6px 12px; border-radius:999px; background:var(--bg-2); color:var(--ink-soft); }

/* =========================================================
   FEATURED WORK GRID (home teaser)
========================================================= */
.featured-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.featured-card{
  display:block; border-radius:22px; overflow:hidden; background:var(--paper);
  border:1px solid var(--line-soft);
  transition:transform .4s var(--ease), box-shadow .4s var(--ease);
}
.featured-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); }
.featured-thumb{ aspect-ratio:4/3; overflow:hidden; position:relative; }
.featured-thumb{ background:var(--bg-2); }
.featured-thumb img{ width:100%; height:100%; object-fit:cover; object-position:top left; transition:transform .6s var(--ease); }
.featured-card:hover .featured-thumb img{ transform:scale(1.07); }
.featured-tag{
  position:absolute; top:14px; left:14px; font-size:11.5px; font-weight:700; letter-spacing:.02em;
  padding:6px 12px; border-radius:999px; backdrop-filter:blur(6px);
  background:rgba(255,255,255,.92); color:var(--ink);
}
.featured-info{ padding:22px 24px 26px; }
.featured-info h3{ font-size:19px; margin:0 0 8px; letter-spacing:-.01em; }
.featured-info p{ font-size:14px; line-height:1.5; color:var(--ink-soft); margin:0; }
.featured-card:hover h3{ color:var(--orange-dk); }
.featured-card:focus-visible{ border-radius:22px; }
@media (max-width:900px){ .featured-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:620px){ .featured-grid{ grid-template-columns:1fr; } }

/* =========================================================
   PROJECT DETAIL PAGES
========================================================= */
.project-hero{
  padding:150px 0 50px;
  border-bottom:1px solid var(--line);
}
.project-hero-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:30px; flex-wrap:wrap; margin-bottom:26px; }
.project-hero h1{ font-size:clamp(34px,5vw,60px); letter-spacing:-.02em; line-height:1.04; margin:10px 0 18px; max-width:760px; }
.project-hero-desc{ font-size:17px; color:var(--ink-soft); line-height:1.65; max-width:640px; margin:0 0 26px; }
.project-links{ display:flex; flex-wrap:wrap; gap:12px; margin-bottom:34px; }
.project-links--hero{ margin:30px 0 0; }
.project-meta-table{
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px 34px;
  padding-top:26px; border-top:1px solid var(--line);
}
@media (max-width:640px){ .project-meta-table{ grid-template-columns:1fr; gap:16px; } }
.project-meta-table div span{ display:block; font-size:13px; color:var(--ink-faint); margin-bottom:4px; }
.project-meta-table div strong{ font-size:15px; font-weight:600; }

.project-cover{ padding:50px 0 10px; }
.project-cover img{ width:100%; aspect-ratio:21/9; object-fit:cover; border-radius:24px; box-shadow:var(--shadow-lg); }
.project-cover .work-frame{ box-shadow:var(--shadow-lg); }
@media (max-width:700px){ .project-cover img{ aspect-ratio:4/5; } }

.project-body{ padding:70px 0; }
.project-body--tight{ padding-top:20px; }
.project-body--article{ padding-bottom:90px; }
.project-body .section-wrap > *{ max-width:var(--measure); }
.project-body--article h2{ margin-top:50px; }
.project-body--article h2:first-child{ margin-top:0; }
.project-body h2{ font-size:28px; letter-spacing:-.01em; margin:0 0 16px; }
.project-body p{ font-size:16px; line-height:1.75; color:var(--ink-soft); margin:0 0 20px; }

.project-gallery{ padding:0 0 90px; }
.gallery-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.gallery-grid .work-shot{ border-radius:18px; }
.gallery-grid .work-shot{ background:var(--bg-2); }
.gallery-grid .work-shot img{ width:100%; height:100%; object-fit:cover; object-position:top center; }
.work-shot::after{ content:""; position:absolute; right:12px; bottom:12px; width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2314130D' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M9.5 2.5h4v4M13.5 2.5 9 7M6.5 13.5h-4v-4M2.5 13.5 7 9'/%3E%3C/svg%3E") center/15px no-repeat; opacity:0; transition:opacity .25s; }
.work-shot:hover::after, .work-shot:focus-visible::after{ opacity:1; }
@media (hover:none){ .work-shot::after{ opacity:1; } }
.gallery-grid .g-wide{ grid-column:span 2; aspect-ratio:16/8; }
.gallery-grid .g-square{ aspect-ratio:1/1; }
.gallery-grid .g-tall{ aspect-ratio:3/4; }
@media (max-width:700px){ .gallery-grid{ grid-template-columns:1fr; } .gallery-grid .g-wide{ grid-column:span 1; } }

.project-nav{
  display:grid; grid-template-columns:1fr 1fr; border-top:1px solid var(--line);
}
.project-nav a{
  padding:36px 28px; display:flex; flex-direction:column; gap:8px;
  transition:background .3s;
}
.project-nav a:hover{ background:var(--bg-2); }
.project-nav .pn-prev{ border-right:1px solid var(--line); align-items:flex-start; text-align:left; }
.project-nav .pn-next{ align-items:flex-end; text-align:right; }
.project-nav .pn-label{ font-size:13px; color:var(--ink-faint); }
.project-nav .pn-prev .pn-label::before{ content:"\2190  "; }
.project-nav .pn-next .pn-label::after{ content:"  \2192"; }
.project-nav a:hover .pn-title{ color:var(--orange-dk); }
.project-nav .pn-title{ font-size:20px; font-weight:600; letter-spacing:-.01em; }
@media (max-width:640px){
  .project-nav{ grid-template-columns:1fr; }
  .project-nav .pn-prev{ border-right:0; border-bottom:1px solid var(--line); }
  .project-nav .pn-next{ align-items:flex-start; text-align:left; }
}

/* =========================================================
   CONTACT PAGE (two column)
========================================================= */
.contact-page-grid{ display:grid; grid-template-columns:1fr 1.15fr; gap:70px; align-items:start; }
.contact-page-grid .contact-form{ max-width:none; grid-column:2; grid-row:1; }
.contact-page-grid .contact-aside{ grid-column:1; grid-row:1; }
.contact-aside-title{ font-size:22px; letter-spacing:-.01em; margin:0; }
.ci-social{ display:flex; flex-wrap:wrap; gap:6px 16px; margin-top:4px; }
.ci-social a{ font-size:15px; font-weight:500; text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--line); }
.ci-social a:hover{ color:var(--orange-dk); text-decoration-color:currentColor; }
.contact-info-list{ margin-top:32px; display:flex; flex-direction:column; gap:22px; }
.contact-info-item{ display:flex; gap:16px; align-items:flex-start; }
.contact-info-item .ci-icon{
  flex:none; width:42px; height:42px; border-radius:12px; background:var(--bg-2);
  display:flex; align-items:center; justify-content:center; color:var(--ink);
}
.contact-info-item .ci-icon svg{ width:18px; height:18px; }
.contact-info-item h3{ font-size:13.5px; font-weight:600; margin:0 0 3px; color:var(--ink-faint); }
.contact-info-item a, .contact-info-item p{ font-size:16px; margin:0; font-weight:500; }
@media (max-width:900px){
  .contact-page-grid{ grid-template-columns:1fr; gap:48px; }
  /* on small screens the form comes first: it is the reason people are here */
  .contact-page-grid .contact-form, .contact-page-grid .contact-aside{ grid-column:auto; grid-row:auto; }
}

/* =========================================================
   CTA BANNER
========================================================= */
.cta-banner{
  margin:0 auto; max-width:var(--container);
  background:var(--ink); color:var(--bg);
  border-radius:28px; padding:64px 56px;
  display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
  position:relative; overflow:hidden;
}
.cta-banner :focus-visible{ box-shadow:0 0 0 3px var(--ink), 0 0 0 5px #fff; }
.cta-banner::before{
  content:""; position:absolute; top:-30%; right:-8%; width:340px; height:340px; border-radius:50%;
  background:radial-gradient(circle, rgba(221,90,34,.5), transparent 70%);
  filter:blur(10px);
}
.cta-banner h2{ font-size:clamp(26px,3.4vw,38px); margin:0; letter-spacing:-.02em; max-width:480px; position:relative; }
.cta-banner .btn-primary{ background:var(--orange-strong); color:#fff; position:relative; }
.cta-banner .btn-primary:hover{ background:var(--bg); color:var(--ink); }

/* =========================================================
   Section eyebrow shared
========================================================= */
.eyebrow{ font-family:var(--f-accent); font-style:italic; color:var(--orange-dk); font-size:15px; margin:0 0 10px; }

/* =========================================================
   CREDENTIALS TEASER (home)
========================================================= */
.cred-teaser{ padding:90px 0; border-top:1px solid var(--line); margin-bottom:var(--section-y); }
.cred-teaser-head h2{ font-size:clamp(24px,3vw,34px); letter-spacing:-.01em; margin:0 0 30px; max-width:520px; }
.cred-teaser-row{ display:flex; flex-wrap:wrap; gap:12px; }
.cred-chip{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13.5px; font-weight:600; padding:11px 18px; border-radius:999px;
  background:var(--paper); border:1px solid var(--line); color:var(--ink);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.cred-chip:hover{ transform:translateY(-3px); box-shadow:var(--shadow-sm); border-color:var(--orange-dk); }
.cred-chip.is-progress{ background:var(--gold-bg); border-color:transparent; color:var(--gold-dk); }
.cred-chip.is-progress:hover{ border-color:var(--gold); }

/* =========================================================
   WORK LIST — linked frame variant (work.html)
========================================================= */
.work-frame{ position:relative; text-decoration:none; }
.frame-cover{
  width:100%; height:100%; object-fit:cover; border-radius:12px; display:block;
  transition:transform .5s var(--ease);
}
.frame-cover.tall{ grid-row:span 2; aspect-ratio:3/4; }
.frame-cover.wide{ aspect-ratio:16/10; }
.frame-cover.wider{ aspect-ratio:21/9; grid-column:span 2; object-position:top center; }
.frame-cover.square{ aspect-ratio:1/1; }
.work-frame:hover .frame-cover{ transform:scale(1.045); }
.frame-view-badge{
  position:absolute; top:18px; right:18px; z-index:3;
  display:inline-flex; align-items:center; gap:7px;
  padding:9px 16px; border-radius:999px;
  background:rgba(255,255,255,.94); color:#14130D;
  font-size:12.5px; font-weight:700;
  opacity:0; transform:translateY(-6px);
  transition:opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events:none;
}
.frame-view-badge svg{ width:12px; height:12px; }
.work-frame:hover .frame-view-badge{ opacity:1; transform:translateY(0); }
.work-row h2 a{ transition:color .25s; }
.work-row h2 a:hover{ color:var(--orange-dk); }
@media (hover:none){ .frame-view-badge{ opacity:1; transform:none; } }

/* =========================================================
   CUSTOM CURSOR + PLAYFUL MOUSE INTERACTIONS
   (desktop / fine-pointer devices only)
========================================================= */
@media (hover:hover) and (pointer:fine){
  html.has-custom-cursor body{ cursor:none; }
  html.has-custom-cursor :is(a, button, .work-shot, .cred-card){ cursor:none; }
  input, textarea{ cursor:text; }

  .cursor-dot, .cursor-ring{
    position:fixed; top:0; left:0; z-index:2000; pointer-events:none;
    border-radius:50%;
    transform:translate(-50%,-50%);
    will-change:transform;
  }
  .cursor-dot{
    width:7px; height:7px; background:var(--orange);
    transition:transform .15s var(--ease), opacity .2s;
  }
  .cursor-ring{
    width:38px; height:38px; border:1.4px solid var(--ink);
    opacity:.55;
    transition:width .25s var(--ease), height .25s var(--ease), opacity .25s, border-color .25s, background .25s;
  }
  .cursor-ring.is-hover{
    width:64px; height:64px; opacity:1; background:rgba(221,90,34,.08); border-color:var(--orange);
  }
  .cursor-ring.is-down{ width:30px; height:30px; }
  html.cursor-ready .cursor-dot, html.cursor-ready .cursor-ring{ opacity:1; }
  .cursor-dot, .cursor-ring{ opacity:0; }

  /* magnetic pull on primary buttons */
  .magnetic{ transition:transform .25s var(--ease); }
}

/* hero cursor sparkle trail particles */
.spark{
  position:fixed; top:0; left:0; z-index:1999; pointer-events:none;
  width:5px; height:5px; border-radius:50%; background:var(--orange);
  animation:sparkFade .9s ease-out forwards;
}
@keyframes sparkFade{
  0%{ opacity:.9; transform:translate(-50%,-50%) scale(1); }
  100%{ opacity:0; transform:translate(-50%,-50%) scale(.2) translateY(-24px); }
}

/* =========================================================
   DEVICE MOCKUP CLUSTER (flagship development projects)
========================================================= */
.device-cluster{
  position:relative;
  padding:70px 20px 110px;
  display:flex; align-items:flex-end; justify-content:center;
}
.device-cluster-inner{ position:relative; width:100%; max-width:760px; }

.device-frame{ box-shadow:var(--shadow-lg); }

.device-desktop{
  position:relative; width:100%; border-radius:14px; overflow:hidden;
  background:#221f19;
}
.device-desktop .device-bar{
  height:32px; background:#EDEAE2; display:flex; align-items:center; gap:7px; padding:0 16px;
}
.device-desktop .device-bar span{ width:10px; height:10px; border-radius:50%; background:#D7D2C4; }
.device-desktop .device-bar span:nth-child(1){ background:#E8695A; }
.device-desktop .device-bar span:nth-child(2){ background:#E8C15A; }
.device-desktop .device-bar span:nth-child(3){ background:#6FBE7C; }
.device-desktop img{ width:100%; display:block; }

.device-tablet{
  position:absolute; right:-4%; bottom:-14%; width:30%; z-index:2;
  border:9px solid #1C1A15; border-radius:22px; overflow:hidden;
  transform:rotate(-6deg);
  background:#1C1A15;
}
.device-tablet img{ width:100%; display:block; border-radius:13px; }

.device-mobile{
  position:absolute; left:-6%; bottom:-20%; width:19%; z-index:3;
  border:7px solid #1C1A15; border-radius:24px; overflow:hidden;
  transform:rotate(7deg);
  background:#1C1A15;
}
.device-mobile img{ width:100%; display:block; border-radius:17px; }

@media (max-width:760px){
  .device-cluster{ flex-direction:column; align-items:center; gap:26px; padding:40px 20px 40px; }
  .device-cluster-inner{ max-width:420px; }
  .device-tablet, .device-mobile{
    position:static; width:70%; transform:none; margin:0 auto;
  }
  .device-tablet{ width:78%; }
  .device-mobile{ width:48%; }
}

/* flagship badge ribbon */
.flagship-badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 16px; border-radius:999px;
  background:linear-gradient(100deg, var(--orange), var(--gold));
  color:#fff; font-size:12.5px; font-weight:700; letter-spacing:.02em;
  margin-bottom:16px;
}
.flagship-badge svg{ width:13px; height:13px; }

/* featured flagship project row on work.html */
.flagship-row{
  border-radius:32px; padding:56px; margin-bottom:44px;
  background:linear-gradient(155deg, var(--bg-2), var(--bg-3));
  border:1px solid var(--line);
  display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;
}
.flagship-row[data-hidden="true"]{ display:none; }
.flagship-copy .work-tag{ display:flex; width:fit-content; }
.flagship-row h2, .flagship-row h3{ font-size:clamp(28px,3.4vw,38px); line-height:1.1; margin:14px 0 16px; letter-spacing:-.01em; }
.flagship-media{ display:block; }
.device-cluster--inline{ padding:0; }
.flagship-row p{ font-size:16px; line-height:1.65; color:var(--ink-soft); margin:0 0 24px; }
@media (max-width:900px){
  .flagship-row{ grid-template-columns:1fr; padding:32px; gap:20px; }
  .flagship-row .flagship-media{ order:-1; }
}

/* =========================================================
   FILTER — small screens
========================================================= */
@media (max-width:640px){
  .filter-bar{ display:grid; grid-template-columns:1fr 1fr; width:100%; border-radius:20px; }
  .filter-pill{ padding:12px 10px; }
  .filter-pill.is-active{ background:var(--ink); }
  .filter-indicator{ display:none; }
}

/* =========================================================
   Reduced motion: no ambient animation, no decorative cursor
========================================================= */
@media (prefers-reduced-motion: reduce){
  .js [data-reveal]{ opacity:1; transform:none; }
  .hero-glow, .toggle-knob, .status-dot::after{ animation:none; }
}

/* flagship teaser on small screens: one clean desktop mockup instead of a tall device stack */
@media (max-width:760px){
  .flagship-media .device-tablet, .flagship-media .device-mobile{ display:none; }
  .flagship-media .device-cluster{ padding:0; }
}

/* denser dot grid: the word stays legible at every size */
.hero-dotword{
  background-image:radial-gradient(var(--ink) 40%, transparent 42%);
  background-size:.1em .1em;
}
