/* ============ SELF-HOSTED "NOHEMI" (headings) ============
   Self-hosted so it never depends on Fontshare loading correctly on the
   visitor's device — same rendering on desktop and mobile, always. */
@font-face{
  font-family:'Nohemi';
  src:url('assets/fonts/Nohemi-Regular.woff2') format('woff2');
  font-weight:400;
  font-style:normal;
  font-display:block;
}
@font-face{
  font-family:'Nohemi';
  src:url('assets/fonts/Nohemi-Medium.woff2') format('woff2');
  font-weight:500;
  font-style:normal;
  font-display:block;
}
@font-face{
  font-family:'Nohemi';
  src:url('assets/fonts/Nohemi-SemiBold.woff2') format('woff2');
  font-weight:600;
  font-style:normal;
  font-display:block;
}
@font-face{
  font-family:'Nohemi';
  src:url('assets/fonts/Nohemi-Bold.woff2') format('woff2');
  font-weight:700;
  font-style:normal;
  font-display:block;
}

  /* ============ RESET ============ */
  *,*::before,*::after{box-sizing:border-box;}
  html,body{margin:0;padding:0;}
  ul,ol{margin:0;padding:0;list-style:none;}
  a{color:inherit;text-decoration:none;}
  button{font:inherit;color:inherit;background:none;border:none;cursor:pointer;padding:0;}
  input,textarea{font:inherit;color:inherit;}
  img{max-width:100%;display:block;}
  h1,h2,h3,h4,p{margin:0;}

  /* ============ TOKENS ============ */
  :root{
    --color-primary:#10069D;
    --color-primary-soft:#E9E6F9;
    --color-primary-light:#8B7FF0;
    --color-bg:#F7F3EC;
    --color-bg-raised:#FBF9F4;
    --color-text:#28241E;
    --color-muted:#5B5548;
    --color-line: rgba(40,36,30,0.13);
    --color-line-strong: rgba(40,36,30,0.28);

    --color-footer-bg:#17141F;
    --color-footer-text:#F3EFE6;
    --color-footer-muted:#B4AEA2;
    --color-footer-line: rgba(243,239,230,0.16);

    --font-head:'Nohemi', 'Helvetica Neue', Arial, sans-serif;
    --font-body:'Zodiak', Georgia, serif;

    --ease: cubic-bezier(.22,.61,.27,1);
    --ease-soft: cubic-bezier(.4,0,.2,1);

    --container: 1400px;
    --gutter: clamp(30px, 13vw, 260px);

    --nav-h: 88px;
  }

  html{
    scroll-behavior:smooth;
  }
  @media (prefers-reduced-motion: reduce){
    html{scroll-behavior:auto;}
    header.site-nav{ transition:none; }
  }

  body{
    background:var(--color-bg);
    color:var(--color-text);
    font-family:var(--font-body);
    font-size:16px;
    line-height:1.5;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
  }

  .container{
    max-width:var(--container);
    margin:0 auto;
    padding-left:var(--gutter);
    padding-right:var(--gutter);
  }

  /* ============ THE MARK: "014" — always Nohemi Semibold, never varies ============ */
  .mark-014{
    font-family:'Nohemi', sans-serif !important;
    font-weight:600 !important;
    font-style:normal;
    font-synthesis:none;
    text-rendering:optimizeLegibility;
    -webkit-font-smoothing:antialiased;
    letter-spacing:-0.01em;
  }

  /* ============ ACCESSIBILITY ============ */
  .visually-hidden{
    position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
    overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
  }
  .skip-link{
    position:fixed;top:-100px;left:16px;z-index:1000;
    background:var(--color-text);color:var(--color-bg);
    padding:12px 20px;border-radius:2px;font-family:var(--font-head);font-size:14px;
    transition:top .25s var(--ease);
  }
  .skip-link:focus{top:16px;}

  :focus-visible{
    outline:2px solid var(--color-primary);
    outline-offset:4px;
    border-radius:1px;
  }
  button:focus-visible, a:focus-visible{ outline-offset:3px; }

  /* ============ CUSTOM CURSOR ============ */
  html.has-custom-cursor, html.has-custom-cursor *{ cursor:none !important; }
  .cursor-dot, .cursor-ring{
    position:fixed; top:0; left:0; pointer-events:none; z-index:9999;
    border-radius:50%;
    mix-blend-mode:difference;
    transform:translate(-50%,-50%);
    will-change:transform;
  }
  .cursor-dot{
    width:6px; height:6px; background:#fff;
  }
  .cursor-ring{
    width:30px; height:30px; border:1px solid #fff;
    transition:width .3s var(--ease-soft), height .3s var(--ease-soft), opacity .3s var(--ease-soft);
    will-change:transform, width, height;
  }
  html.has-custom-cursor .cursor-dot{ opacity:0; transition:opacity .2s var(--ease-soft); }
  html.has-custom-cursor .cursor-ring{
    opacity:0;
    transition:opacity .2s var(--ease-soft), width .35s var(--ease-soft), height .35s var(--ease-soft);
  }
  html.has-custom-cursor.cursor-ready .cursor-dot,
  html.has-custom-cursor.cursor-ready .cursor-ring{ opacity:1; }
  html.has-custom-cursor .cursor-ring.is-hovering{ width:20px; height:20px; }
  @media (prefers-reduced-motion: reduce){
    .cursor-ring{ transition:none; }
  }

  /* ============ TYPE SCALE ============ */
  .eyebrow{
    font-family:var(--font-head);
    font-size:12px;
    font-weight:500;
    letter-spacing:0.14em;
    text-transform:uppercase;
    color:var(--color-muted);
  }
  .display-xl{
    font-family:var(--font-head);
    font-weight:500;
    font-size:clamp(2.2rem, 6vw, 5.6rem);
    line-height:0.98;
    letter-spacing:-0.02em;
  }
  .display-lg{
    font-family:var(--font-head);
    font-weight:500;
    font-size:clamp(1.8rem, 4vw, 3.2rem);
    line-height:1.02;
    letter-spacing:-0.015em;
  }
  .display-md{
    font-family:var(--font-head);
    font-weight:500;
    font-size:clamp(1.4rem, 2.4vw, 1.9rem);
    line-height:1.1;
    letter-spacing:-0.01em;
  }
  .body-lg{
    font-family:var(--font-body);
    font-weight:400;
    font-size:clamp(1.05rem, 1.6vw, 1.35rem);
    line-height:1.55;
  }
  .body-md{
    font-family:var(--font-body);
    font-size:1rem;
    line-height:1.6;
  }
  .num{
    font-family:var(--font-head);
    font-weight:500;
    font-variant-numeric: tabular-nums;
  }

  /* ============ SKIP / NAV ============ */
  header.site-nav{
    position:fixed; top:0; left:0; right:0; z-index:500;
    height:var(--nav-h);
    display:flex; align-items:center;
    background:var(--color-bg);
    transform:translateY(0);
    transition: transform .45s var(--ease), box-shadow .3s var(--ease-soft);
  }
  header.site-nav.is-scrolled{ box-shadow:0 1px 0 var(--color-line); }
  header.site-nav.is-hidden{ transform:translateY(-100%); }
  header.site-nav .container{
    display:flex; align-items:center; justify-content:space-between; width:100%;
  }
  .logo{
    font-family:var(--font-head); font-weight:600; font-size:1.4rem;
    display:flex; align-items:baseline; gap:16px;
    letter-spacing:-0.01em;
  }
  .logo .mark-014{ color:var(--color-primary); }
  .logo .studio-word{
    font-family:var(--font-body); font-weight:400; font-size:0.95rem; color:var(--color-muted);
  }

  nav.primary-nav{ display:flex; align-items:center; gap:clamp(20px,3vw,44px); }
  nav.primary-nav a{
    font-family:var(--font-head); font-size:0.92rem; font-weight:500;
    position:relative; padding:6px 0;
  }
  nav.primary-nav a::after{
    content:''; position:absolute; left:0; bottom:0; height:1px; width:0;
    background:var(--color-text); transition:width .3s var(--ease-soft);
  }
  nav.primary-nav a:hover::after, nav.primary-nav a.is-active::after{ width:100%; }
  nav.primary-nav a.is-active{ color:var(--color-primary); }
  nav.primary-nav a.is-active::after{ background:var(--color-primary); }

  .nav-right{ display:flex; align-items:center; gap:28px; }

  .lang-switch{
    display:flex; align-items:center; gap:2px;
    font-family:var(--font-head); font-size:0.82rem; font-weight:500;
  }
  .lang-switch button{
    padding:6px 8px; color:var(--color-muted); border-radius:2px; transition:color .2s var(--ease-soft);
  }
  .lang-switch button:hover{ color:var(--color-text); }
  .lang-switch button.is-active{ color:var(--color-primary); }
  .lang-switch span{ color:var(--color-line-strong); font-size:0.75rem; }

  .menu-toggle{
    display:none; flex-direction:column; gap:5px; width:26px; z-index:600;
  }
  .menu-toggle span{ display:block; height:1.5px; width:100%; background:var(--color-text); transition:transform .3s var(--ease-soft), opacity .3s var(--ease-soft); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(6.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-6.5px) rotate(-45deg); }

  .mobile-nav{
    position:fixed; inset:0; background:var(--color-bg); z-index:400;
    display:flex; flex-direction:column; justify-content:center;
    padding:var(--gutter);
    transform:translateY(-100%); transition:transform .45s var(--ease);
  }
  .mobile-nav.is-open{ transform:translateY(0); }
  .mobile-nav a{ font-family:var(--font-head); font-size:2.2rem; font-weight:500; padding:10px 0; display:block; }
  .mobile-nav .mobile-lang{ margin-top:36px; display:flex; gap:16px; }
  .mobile-nav .mobile-lang button{ font-family:var(--font-head); font-size:1rem; color:var(--color-muted); }
  .mobile-nav .mobile-lang button.is-active{ color:var(--color-primary); }

  @media (max-width: 860px){
    nav.primary-nav{ display:none; }
    .menu-toggle{ display:flex; }
  }

  /* ============ VIEW TRANSITIONS ============ */
  #app{ min-height:100vh; }
  .view{
    padding-top:var(--nav-h);
    opacity:0; transform:translateY(14px);
  }
  .view.is-active{
    animation: view-in .6s var(--ease) forwards;
  }
  @keyframes view-in{
    to{ opacity:1; transform:translateY(0); }
  }
  @media (prefers-reduced-motion: reduce){
    .view{ opacity:1; transform:none; }
    .view.is-active{ animation:none; }
  }

  /* ============ REVEAL ON SCROLL ============ */
  .reveal{
    opacity:0; transform:translateY(28px);
    transition:opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
  }
  .reveal.in-view{ opacity:1; transform:translateY(0); }
  @media (prefers-reduced-motion: reduce){
    .reveal{ opacity:1; transform:none; transition:none; }
  }

  /* ============ HOME: HERO ============ */
  .hero{
    position:relative;
    padding-top:clamp(60px, 14vh, 140px);
    padding-bottom:clamp(60px, 12vh, 120px);
    min-height:calc(92vh - var(--nav-h));
    display:flex; flex-direction:column; justify-content:center;
  }
  .hero > *{ position:relative; z-index:160; }

  /* Holographic wave reveal — covers the full screen, expands from the hero dot */
  .hero-wave-bg{
    position:fixed; inset:0; z-index:150;
    clip-path:circle(0% at var(--dot-x,82%) var(--dot-y,50%));
    transition:clip-path 1.8s var(--ease-soft);
    pointer-events:none;
    background:
      radial-gradient(ellipse 65% 55% at 26% 34%, rgba(90,112,255,.65), transparent 62%),
      radial-gradient(ellipse 75% 60% at 78% 24%, rgba(70,92,245,.6), transparent 65%),
      radial-gradient(ellipse 70% 60% at 52% 88%, rgba(104,130,255,.55), transparent 65%),
      radial-gradient(ellipse 60% 50% at 12% 82%, rgba(64,80,225,.5), transparent 62%),
      linear-gradient(160deg,#040220,#0d0670,#10069D,#040220);
    background-size:220% 220%, 220% 220%, 220% 220%, 220% 220%, 300% 300%;
  }
  .hero.is-exploded .hero-wave-bg{
    clip-path:circle(150% at var(--dot-x,82%) var(--dot-y,50%));
    animation:heroHoloShift 16s ease-in-out infinite;
  }
  @keyframes heroHoloShift{
    0%{ background-position:0% 0%, 100% 0%, 50% 100%, 0% 100%, 0% 50%; }
    25%{ background-position:25% 20%, 75% 25%, 35% 80%, 20% 75%, 15% 60%; }
    50%{ background-position:55% 45%, 45% 55%, 60% 50%, 50% 40%, 40% 45%; }
    75%{ background-position:30% 70%, 60% 15%, 20% 30%, 70% 20%, 60% 65%; }
    100%{ background-position:0% 0%, 100% 0%, 50% 100%, 0% 100%, 0% 50%; }
  }
  @media (prefers-reduced-motion: reduce){
    .hero.is-exploded .hero-wave-bg{ animation:none; }
  }

  /* The interactive dot that triggers the reveal, with a pulsing invite-to-hover ring */
  .hero-explode-dot{
    position:absolute; top:50%; right:clamp(48px,9vw,180px);
    width:26px; height:26px; border-radius:50%;
    background:var(--color-primary); border:none; padding:0; cursor:pointer;
    transform:translateY(-50%);
    transition:background-color .6s var(--ease-soft), transform .35s var(--ease-soft), box-shadow .5s var(--ease-soft);
    box-shadow:0 0 0 0 rgba(16,6,157,0);
  }
  .hero-explode-dot::before, .hero-explode-dot::after{
    content:''; position:absolute; inset:0; border-radius:50%;
    border:1.5px solid var(--color-primary);
    animation:heroDotPulse 2.6s var(--ease-soft) infinite;
    pointer-events:none;
  }
  .hero-explode-dot::after{ animation-delay:1.3s; }
  @keyframes heroDotPulse{
    0%{ transform:scale(1); opacity:.65; }
    100%{ transform:scale(2.6); opacity:0; }
  }
  .hero.is-exploded .hero-explode-dot::before,
  .hero.is-exploded .hero-explode-dot::after{ animation-play-state:paused; opacity:0; }
  .hero-explode-dot:hover, .hero-explode-dot:focus-visible{ transform:translateY(-50%) scale(1.15); }
  .hero.is-exploded .hero-explode-dot{
    background:#fff;
    box-shadow:0 0 50px 14px rgba(255,255,255,.5);
  }
  @media (max-width:860px){ .hero-explode-dot{ display:none; } }
  @media (prefers-reduced-motion: reduce){
    .hero-explode-dot::before, .hero-explode-dot::after{ animation:none; opacity:.4; }
  }

  /* Text repaints to stay legible over the holo background */
  .hero .hero-eyebrow, .hero .eyebrow, .hero-title, .hero .hero-sub, .hero .scroll-cue{ transition:color .5s var(--ease-soft); }
  .hero .hero-eyebrow .dot{ transition:background-color .5s var(--ease-soft); }
  .hero.is-exploded .hero-eyebrow{ color:var(--color-bg); }
  .hero.is-exploded .hero-eyebrow .eyebrow{ color:var(--color-bg); }
  .hero.is-exploded .hero-eyebrow .dot{ background:var(--color-bg); }
  .hero.is-exploded .hero-title{ color:var(--color-bg); }
  .hero.is-exploded .hero-title em{ color:var(--color-bg); transition:color .5s var(--ease-soft); }
  .hero.is-exploded .hero-sub{ color:var(--color-bg); }
  .hero.is-exploded .scroll-cue{ color:var(--color-bg); }
  .hero.is-exploded .scroll-cue::after{ background:var(--color-bg); }

  .hero-eyebrow{ margin-bottom:22px; display:flex; align-items:center; gap:14px; }
  .hero-eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--color-primary); }
  .hero-title{ max-width:22ch; }
  .hero-title em{ font-style:normal; color:var(--color-primary); font-weight:700; transition:color .25s var(--ease-soft); cursor:default; }
  .hero-title em:hover{ color:var(--color-primary-light); }
  .hero-sub{
    margin-top:32px; max-width:56ch; color:var(--color-muted);
    font-size:clamp(0.92rem, 1.1vw, 1.05rem); line-height:1.6;
  }
  .scroll-cue{
    margin-top:64px; display:inline-flex; align-items:center; position:relative;
    font-family:var(--font-head); font-size:0.85rem; font-weight:500;
    padding-bottom:4px; transition:color .25s var(--ease-soft);
  }
  .scroll-cue:hover{ color:var(--color-primary); }

  /* ============ SECTION HEADERS ============ */
  .section{ padding:clamp(80px,11vw,160px) 0; scroll-margin-top:var(--nav-h); }
  .section-tight{ padding:clamp(30px,4vw,56px) 0; }
  .section-head{
    display:flex; flex-direction:column; align-items:center; text-align:center; gap:20px;
    margin-bottom:clamp(40px,6vw,80px);
    border-bottom:1px solid var(--color-line);
    padding-bottom:28px;
  }
  .section-head .section-index{ color:var(--color-muted); }
  .section-head h2{ margin-top:16px; color:var(--color-primary); transition:color .25s var(--ease-soft); cursor:default; }
  .section-head h2:hover{ color:var(--color-primary-light); }
  .projects-page-title{ color:var(--color-primary); transition:color .25s var(--ease-soft); cursor:default; }
  .projects-page-title:hover{ color:var(--color-primary-light); }

  /* ============ OTHER PROJECTS PAGE ============ */
  .other-logos{ display:flex; flex-direction:column; gap:clamp(48px,6vw,72px); margin:clamp(50px,7vw,90px) 0; max-width:920px; margin-left:auto; margin-right:auto; }
  .other-logo-row{ display:flex; align-items:center; justify-content:center; gap:clamp(40px,5vw,72px); flex-wrap:wrap; }
  .other-logo-media{ flex:1 1 300px; max-width:400px; }
  .other-logo-media .g-item{ display:block; width:100%; border:none; background:none; padding:0; cursor:zoom-in; }
  .other-logo-media img{ width:100%; height:auto; display:block; }
  .other-logo-body{ flex:1 1 340px; max-width:420px; }
  .other-logo-body h3{ font-family:var(--font-head); font-weight:500; font-size:clamp(1.2rem,2vw,1.6rem); color:var(--color-primary); }
  .other-logo-body p{ margin-top:12px; color:var(--color-muted); max-width:52ch; line-height:1.6; }
  @media (max-width:700px){
    .other-logo-row{ flex-direction:column; align-items:center; text-align:center; }
    .other-logo-media{ max-width:260px; }
  }

  .other-posters{ margin-top:clamp(30px,4vw,50px); }
  .other-poster h3{ margin-top:18px; font-family:var(--font-head); font-weight:500; font-size:1.02rem; }
  .other-poster p{ margin-top:6px; color:var(--color-muted); font-size:0.9rem; line-height:1.55; }

  /* ============ PROJECT CARDS (featured rail + grid) ============ */
  .projects-list{ display:flex; flex-direction:column; }
  a.project-row{
    display:grid; grid-template-columns: 90px 1.1fr 1.6fr 160px;
    gap:32px; align-items:center;
    padding:36px var(--gutter); margin:0 calc(var(--gutter) * -1);
    border-top:1px solid var(--color-line);
    transition:background .3s var(--ease-soft);
  }
  a.project-row:last-child{ border-bottom:1px solid var(--color-line); }
  .project-row .p-index{ color:var(--color-muted); }
  .project-row .p-title{
    font-family:var(--font-head); font-weight:500; font-size:clamp(1.1rem,2.2vw,1.7rem);
    display:inline-block; justify-self:start; position:relative;
    transition:color .25s var(--ease-soft);
  }
  a.project-row:hover .p-title{ color:var(--color-primary); }
  .project-row .p-meta{ display:flex; gap:18px; color:var(--color-muted); font-size:0.92rem; align-items:center; flex-wrap:wrap; }
  .project-row .p-thumb-wrap{
    width:160px; height:100px; overflow:hidden; position:relative; border-radius:2px;
    opacity:0; transform:scale(0.96);
    transition:opacity .35s var(--ease-soft), transform .35s var(--ease-soft);
  }
  .project-row .p-thumb-wrap img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease-soft); }
  a.project-row:hover .p-thumb-wrap{ opacity:1; transform:scale(1); }
  a.project-row:hover .p-thumb-wrap img{ transform:scale(1.06); }
  a.project-row:hover{ background:var(--color-primary-soft); }
  .other-thumb{
    display:flex !important; align-items:center; justify-content:center;
    font-family:var(--font-head); font-weight:500; font-size:1.6rem; color:var(--color-muted);
    background:var(--color-primary-soft);
  }
  .other-projects-row:hover .other-thumb{ color:var(--color-primary); }

  @media (max-width: 860px){
    a.project-row{ grid-template-columns:1fr; gap:12px; padding:24px var(--gutter); }
    .project-row .p-thumb-wrap{ display:none; }
    .project-row .p-index{ order:1; }
    .project-row .p-title{ order:2; }
    .project-row .p-meta{ order:3; }
  }

  /* Home featured cover cards (2 per row, centered) */
  .featured-cards{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(40px,5vw,64px) clamp(56px,6vw,88px); max-width:1040px; margin:0 auto; }
  .cover-card{
    display:flex; flex-direction:column; gap:18px;
  }
  .cover-card .cover-media{
    aspect-ratio:4/3; overflow:hidden; border-radius:2px; position:relative;
  }
  .cover-card .cover-body h3{ font-size:clamp(1.25rem, 1.9vw, 1.6rem); }
  .cover-card .cover-body p{ font-size:0.94rem; }
  .cover-card .cover-media img{ width:100%; height:100%; object-fit:cover; transition:transform .8s var(--ease-soft); }
  .cover-card:hover .cover-media img{ transform:scale(1.045); }
  .cover-card .cover-body .eyebrow{ margin-bottom:16px; }
  .cover-card .cover-body p{ margin-top:20px; color:var(--color-muted); max-width:42ch; }
  .cover-card .cover-cta{
    margin-top:28px; display:inline-flex; align-items:center; gap:10px; position:relative;
    font-family:var(--font-head); font-weight:500; font-size:0.92rem;
    padding-bottom:4px; transition:color .25s var(--ease-soft);
  }
  .cover-card .cover-cta:hover{ color:var(--color-primary); }
  .cover-card .cover-cta .arrow{ transition:transform .3s var(--ease-soft); }
  .cover-card:hover .cover-cta .arrow{ transform:translateX(6px); }
  .cover-card .cover-body h3 a{ transition:color .25s var(--ease-soft); }
  .cover-card .cover-body h3 a:hover{ color:var(--color-primary); }

  @media (max-width:860px){
    .featured-cards{ grid-template-columns:1fr; }
  }

  /* ============ ABOUT TEASER (home) ============ */
  .about-teaser{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:24px; max-width:640px; margin:0 auto; }
  .about-teaser-title{
    font-family:var(--font-head); font-weight:500; letter-spacing:-0.01em;
    font-size:clamp(1.3rem, 2.6vw, 1.9rem); max-width:32ch;
    color:var(--color-primary);
    transition:color .25s var(--ease-soft); cursor:default;
  }
  .about-teaser-title:hover{ color:var(--color-primary-light); }


  /* ============ PROJECT DETAIL ============ */
  .project-hero{ padding-top:clamp(50px,10vh,110px); }
  .project-hero-head{
    display:grid; grid-template-columns:2fr 1fr; gap:40px; padding-bottom:40px; border-bottom:1px solid var(--color-line);
  }
  @media (max-width:700px){
    .project-hero-head{ grid-template-columns:1fr; gap:20px; }
  }
  .project-title-hover{ transition:color .25s var(--ease-soft); cursor:default; }
  .project-title-hover:hover{ color:var(--color-primary); }
  .project-meta-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px 24px; }
  .project-meta-grid div .k{ color:var(--color-muted); font-size:0.82rem; font-family:var(--font-head); text-transform:uppercase; letter-spacing:.08em; margin-bottom:6px; }
  .project-meta-grid div .v{ font-family:var(--font-head); font-weight:500; font-size:1rem; }
  .project-cover-media{ margin:50px 0; aspect-ratio:16/9; overflow:hidden; border-radius:2px; }
  .project-cover-media img, .project-cover-media video{ width:100%; height:100%; object-fit:cover; display:block; }
  .project-cover-media.contain{ background:var(--color-bg-raised); border:1px solid var(--color-line); }
  .project-cover-media.contain img{ object-fit:contain; padding:40px; box-sizing:border-box; }
  .project-description{ max-width:62ch; margin:44px auto 60px; text-align:center; font-size:0.98rem; line-height:1.65; }
  .project-gallery-wrap{ margin-bottom:70px; }
  .project-gallery{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
  .project-gallery .g-item{ overflow:hidden; border-radius:2px; cursor:zoom-in; aspect-ratio:1/1; }
  .project-gallery .g-item.g-item-video{ cursor:default; }
  .project-gallery .g-item:first-child{ grid-column:1/-1; aspect-ratio:16/9; }
  .project-gallery .g-item img, .project-gallery .g-item video{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s var(--ease-soft); }
  .project-gallery .g-item:hover img{ transform:scale(1.04); }
  @media (max-width:700px){ .project-gallery{ grid-template-columns:1fr; } .project-gallery .g-item{ aspect-ratio:16/9; } }

  /* Grouped gallery rows: similar images share a row, up to 3 columns */
  .project-gallery-group{ display:grid; gap:20px; margin-bottom:20px; }
  .project-gallery-group.cols-1{ grid-template-columns:1fr; }
  .project-gallery-group.cols-2{ grid-template-columns:1fr 1fr; }
  .project-gallery-group.cols-3{ grid-template-columns:1fr 1fr 1fr; }
  .project-gallery-group.cols-4{ grid-template-columns:1fr 1fr 1fr 1fr; }
  .project-gallery-group .g-item{ overflow:hidden; border-radius:2px; cursor:zoom-in; aspect-ratio:auto; }
  .project-gallery-group .g-item img{ width:100%; height:auto; display:block; transition:transform .5s var(--ease-soft); }
  .project-gallery-group .g-item:hover img{ transform:scale(1.02); }
  @media (max-width:860px){
    .project-gallery-group.cols-4{ grid-template-columns:1fr 1fr; }
  }
  @media (max-width:700px){
    .project-gallery-group.cols-2{ grid-template-columns:1fr; }
    .project-gallery-group.cols-3{ grid-template-columns:1fr 1fr; }
  }
  @media (max-width:480px){
    .project-gallery-group.cols-3{ grid-template-columns:1fr; }
    .project-gallery-group.cols-4{ grid-template-columns:1fr; }
  }

  .project-footer-grid{ display:grid; grid-template-columns:1fr 1fr; gap:32px; padding-top:44px; border-top:1px solid var(--color-line); }
  .project-footer-grid .k{ color:var(--color-muted); font-size:0.82rem; font-family:var(--font-head); text-transform:uppercase; letter-spacing:.08em; margin-bottom:12px; }
  @media (max-width:700px){ .project-footer-grid{ grid-template-columns:1fr; gap:28px; } }

  .project-nav-links{ display:flex; justify-content:space-between; padding:50px 0 90px; border-top:1px solid var(--color-line); margin-top:40px;}
  .project-nav-links a{ font-family:var(--font-head); font-weight:500; }
  .project-nav-links .arrow{ display:block; font-size:0.8rem; color:var(--color-muted); margin-bottom:6px; }
  .proj-nav-title{ display:inline-block; position:relative; transition:color .25s var(--ease-soft); }
  .project-nav-links a:hover .proj-nav-title{ color:var(--color-primary); }

  /* Lightbox */
  .lightbox{
    position:fixed; inset:0; background:rgba(21,19,15,0.94); z-index:900;
    display:flex; align-items:center; justify-content:center; padding:40px;
    opacity:0; pointer-events:none; transition:opacity .3s var(--ease-soft);
  }
  .lightbox.is-open{ opacity:1; pointer-events:auto; }
  .lightbox img{ max-width:90vw; max-height:86vh; object-fit:contain; border-radius:2px; }
  .lightbox-close{ position:absolute; top:28px; right:32px; color:#F7F3EC; font-family:var(--font-head); font-size:0.9rem; }

  /* ============ ABOUT PAGE ============ */
  .about-hero{ max-width:70ch; padding-top:clamp(40px,8vh,90px); }

  .about-name{
    font-family:var(--font-head); font-weight:500; letter-spacing:-0.015em; line-height:1.05;
    font-size:clamp(1.5rem, 4.6vw, 2.6rem); white-space:nowrap;
  }
  .about-name-hover{ color:var(--color-primary); transition:color .25s var(--ease-soft); cursor:default; }
  .about-name-hover:hover{ color:var(--color-primary-light); }
  .about-role{ font-family:var(--font-body); font-size:0.95rem; }
  .about-bio-text{ font-family:var(--font-body); font-size:clamp(0.95rem, 1.2vw, 1.1rem); line-height:1.6; }
  @media (max-width:480px){ .about-name{ white-space:normal; } }

  .about-block{ margin-bottom:clamp(50px,8vw,90px); }
  .about-block-title{ margin-bottom:28px; }
  .exp-item, .edu-item{ display:grid; grid-template-columns:140px 1fr; gap:20px; padding:22px 0; border-top:1px solid var(--color-line); }
  .exp-item:last-child, .edu-item:last-child{ border-bottom:1px solid var(--color-line); }
  .exp-item .role{ font-family:var(--font-head); font-weight:500; }
  .exp-item .place{ color:var(--color-muted); margin-top:4px; }
  .tag-cloud{ display:flex; flex-wrap:wrap; gap:10px; }
  .tag{
    font-family:var(--font-head); font-size:0.85rem; font-weight:500;
    padding:9px 16px; border:1px solid var(--color-line-strong); border-radius:100px;
    transition:background .25s var(--ease-soft), color .25s var(--ease-soft), border-color .25s var(--ease-soft);
  }
  .tag:hover{ background:var(--color-primary); color:var(--color-bg); border-color:var(--color-primary); }
  .clients-list{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px 24px; }
  .clients-list li{ font-family:var(--font-head); font-weight:500; color:var(--color-muted); padding:10px 0; border-top:1px solid var(--color-line); }
  @media (max-width:700px){ .clients-list{ grid-template-columns:1fr 1fr; } .exp-item, .edu-item{ grid-template-columns:1fr; gap:6px; } }

  /* ============ CONTACT PAGE ============ */
  .contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(40px,8vw,100px); padding-top:clamp(30px,6vh,70px); }
  @media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; } }
  .contact-list{ margin-top:44px; }
  .contact-list li{ padding:18px 0; border-top:1px solid var(--color-line); display:flex; justify-content:space-between; gap:16px; }
  .contact-list li:last-child{ border-bottom:1px solid var(--color-line); }
  .contact-list .k{ color:var(--color-muted); }
  .contact-list a:hover{ color:var(--color-primary); }

  .field{ margin-bottom:28px; }
  .field label{ display:block; font-family:var(--font-head); font-size:0.85rem; font-weight:500; margin-bottom:10px; }
  .field input, .field textarea{
    width:100%; background:transparent; border:none; border-bottom:1px solid var(--color-line-strong);
    padding:10px 2px; font-size:1.05rem; transition:border-color .25s var(--ease-soft);
  }
  .field input:focus, .field textarea:focus{ border-color:var(--color-primary); outline:none; }
  .field textarea{ resize:vertical; min-height:100px; }
  .submit-btn{
    font-family:var(--font-head); font-weight:500; font-size:0.95rem;
    display:inline-flex; align-items:center; gap:12px; padding:16px 28px;
    background:var(--color-text); color:var(--color-bg); border-radius:100px;
    transition:background .25s var(--ease-soft), transform .25s var(--ease-soft);
  }
  .submit-btn:hover{ background:var(--color-primary); transform:translateY(-2px); }
  .form-success{
    font-family:var(--font-head); font-weight:500; color:var(--color-primary);
    padding:18px 0; opacity:0; transform:translateY(6px); transition:all .4s var(--ease-soft);
  }
  .form-success.show{ opacity:1; transform:translateY(0); }
  .form-error{
    font-family:var(--font-head); font-weight:500; color:#B3261E;
    padding:18px 0; opacity:0; transform:translateY(6px); transition:all .4s var(--ease-soft);
  }
  .form-error.show{ opacity:1; transform:translateY(0); }
  .submit-btn:disabled{ opacity:.6; cursor:default; }

  /* ============ FOOTER ============ */
  footer.site-footer{
    background:var(--color-footer-bg); color:var(--color-footer-text);
    padding:clamp(60px,9vw,110px) 0 clamp(30px,4vw,50px);
    margin-top:clamp(60px,10vw,120px);
  }
  .footer-top{ display:flex; justify-content:space-between; align-items:flex-end; gap:24px; flex-wrap:wrap; margin-bottom:60px; }
  .footer-cta-link{
    color:inherit; position:relative; transition:color .25s var(--ease-soft);
  }
  .footer-cta-link:hover{ color:var(--color-primary-light); }
  .contact-hero-title{ color:var(--color-primary); transition:color .25s var(--ease-soft); cursor:default; }
  .contact-hero-title:hover{ color:var(--color-primary-light); }
  .contact-hero-body{ font-family:var(--font-body); font-size:clamp(0.88rem, 1vw, 0.98rem); line-height:1.6; }
  .footer-links{ display:flex; gap:32px; flex-wrap:wrap; }
  .footer-links a{ font-family:var(--font-head); font-size:0.92rem; font-weight:400; color:var(--color-footer-text); }
  .footer-links a.ig-link{ display:inline-flex; align-items:center; gap:8px; }
  .footer-links a:hover{ color:var(--color-primary-light); }
  .footer-bottom{ display:flex; justify-content:space-between; color:var(--color-footer-muted); font-size:0.85rem; flex-wrap:wrap; gap:10px; margin-top:56px; padding-top:28px; border-top:1px solid var(--color-footer-line); }

  /* ============ 404 ============ */
  .not-found{ min-height:60vh; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; }

  /* ============ MISC ============ */
  .btn-line{
    display:inline-flex; align-items:center; gap:10px; font-family:var(--font-head); font-weight:500; font-size:0.92rem;
    position:relative; padding-bottom:4px; transition:color .25s var(--ease-soft);
  }
  .btn-line:hover{ color:var(--color-primary); }
  .site-footer .btn-line:hover{ color:var(--color-primary-light); }

  /* Shared drawn-line hover underline, matching the navbar link animation */
  .btn-line::after,
  .cover-card .cover-cta::after,
  .scroll-cue::after,
  .footer-cta-link::after,
  .project-row .p-title::after,
  .proj-nav-title::after{
    content:''; position:absolute; left:0; bottom:-2px; height:1px; width:100%;
    background:currentColor; transform:scaleX(0); transform-origin:left;
    transition:transform .3s var(--ease-soft);
  }
  .btn-line:hover::after,
  .cover-card .cover-cta:hover::after,
  .scroll-cue:hover::after,
  .footer-cta-link:hover::after,
  a.project-row:hover .p-title::after,
  .project-nav-links a:hover .proj-nav-title::after{
    transform:scaleX(1);
  }
  @media (prefers-reduced-motion: reduce){
    .btn-line::after, .cover-card .cover-cta::after, .scroll-cue::after,
    .footer-cta-link::after, .project-row .p-title::after, .proj-nav-title::after{ transition:none; }
  }

/* =====================================================================
   MOBILE-ONLY OVERRIDES (max-width: 768px)
   Desktop is untouched — everything below only takes effect at ≤768px.
   ===================================================================== */
@media (max-width:768px){

  /* 1. Horizontal spacing — comfortable ~25px margins for all text blocks,
     project descriptions and photographs, so nothing bleeds to the screen
     edge as the viewport narrows (overrides the desktop clamp() formula,
     which shrinks too aggressively used on its own at phone widths). */
  :root{ --gutter: 25px; }

  /* 2. Custom cursor — never show it on touch devices, regardless of what
     the JS pointer-type feature detection decided. Belt-and-suspenders
     guarantee independent of matchMedia('(pointer:fine)') edge cases on
     hybrid touch/mouse hardware. */
  .cursor-dot, .cursor-ring{ display:none !important; }
  html.has-custom-cursor,
  html.has-custom-cursor *{ cursor:auto !important; }

  /* 3. Mobile menu icon — rebuilt as absolutely-positioned bars so the two
     outer bars rotate around the exact same center point as the middle
     bar's resting position. That's what makes the "X" close perfectly
     with no leftover fragments/notches at the ends. */
  .menu-toggle{
    position:relative;
    height:16px;
    gap:0;
  }
  .menu-toggle span{
    position:absolute;
    left:0;
    width:100%;
    transition:top .3s var(--ease-soft), transform .3s var(--ease-soft), opacity .2s var(--ease-soft);
  }
  .menu-toggle span:nth-child(1){ top:0; }
  .menu-toggle span:nth-child(2){ top:7.25px; }
  .menu-toggle span:nth-child(3){ top:14.5px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1){
    top:7.25px; transform:rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(2){
    opacity:0; transform:scaleX(0);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(3){
    top:7.25px; transform:rotate(-45deg);
  }

  /* 4. "014" wordmark is already guaranteed everywhere by the base .mark-014
     rule above (Nohemi Semibold, !important, font-synthesis:none) — nothing
     mobile-specific needed here. */

  /* 5. Hide "Estudi de disseny" in the header — only the "014" mark, the
     language switch and the menu button remain. */
  .logo .studio-word{ display:none; }
}

@media (max-width:768px){

  .container,
  .section,
  .project-description,
  .project-content,
  .project-info,
  .cover-body,
  .about-hero,
  .contact-grid{
      padding-left:25px !important;
      padding-right:25px !important;
  }

}