/* ==========================================================================
   VIDA AI — Digital Modeling Agency
   Design tokens
   Palette:  --bg #F5F5F3 (stone)  --bg-alt #EAEAE6  --panel #FFFFFF
             --ink #1E2D48          --ink-soft #4C5C78   --line #D6E2E5
             --accent #2F3B45 (deep slate)   --accent-soft #6B7C8C
             --signal #B4552F (muted clay — used only for the single
             "verified real" tick / active states, never decorative)
   Type:     Display  — 'Space Grotesk'  (engineered, slightly synthetic)
             Body     — 'Inter'
             Mono/data— 'Space Mono'      (spec-sheet / measurement data)
   Signature: the hover "spec sheet" reveal on model cards + the annotated
   quality-inspection diagram — both treat the model as a precisely
   engineered object, which is the actual tension of the brief.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Science+Gothic:wght@100..900&family=Inter:wght@400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root{
  --bg: #F1F7F8;
  --bg-alt: #E1EBEE;
  --panel: #FFFFFF;
  --ink: #1E2D48;
  --ink-soft: #4C5C78;
  --ink-faint: #8996AC;
  --line: #D6E2E5;
  --accent: #16233A;
  --accent-soft: #47608A;
  --signal: #B4552F;

  --display: 'Science Gothic', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'Space Mono', monospace;

  --max: 1240px;
  --pad: clamp(20px, 5vw, 64px);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ font-family: var(--display); margin:0; font-weight:600; letter-spacing:-0.01em; }
p{ margin:0; }
button, input, textarea, select{ font-family: inherit; font-size: inherit; }

.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

/* ---------- eyebrow / labels ---------- */
.eyebrow{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display:flex;
  align-items:center;
  gap: 8px;
}
.eyebrow::before{
  content:"";
  width: 6px; height: 6px;
  background: var(--signal);
  border-radius: 50%;
  flex-shrink:0;
}

/* ---------- nav ---------- */
.site-nav{
  position: sticky; top:0; z-index: 50;
  background: rgba(241,247,248,0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height: 76px;
}
.logo{
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
}
.logo span{ color: var(--accent-soft); }
.logo-img{
  height: 28px;
  width: auto;
  display: block;
}
.nav-links{ display:flex; gap: 32px; align-items:center; }
.nav-links a{
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active{ color: var(--ink); }
.nav-cta{
  font-family: var(--mono);
  font-size: 12px !important;
  border: 1px solid var(--ink);
  padding: 8px 16px;
  border-radius: 100px;
  color: var(--ink) !important;
}
.nav-cta:hover{ background: var(--ink); color: var(--bg) !important; }
.lang-switch{
  display:flex; align-items:center; gap:6px;
  font-family: var(--mono); font-size: 12px;
  margin-left: 4px;
}
.nav-social{
  display:flex; align-items:center; gap:14px;
  margin-left: 8px;
}
.nav-social a{ color: var(--ink-soft); display:flex; }
.nav-social a:hover{ color: var(--ink); }
.nav-social svg{ width:15px; height:15px; fill:currentColor; }
@media (max-width: 780px){
  .nav-social{ display:none; }
}
.lang-switch a{ color: var(--ink-soft); }
.lang-switch a:hover{ color: var(--ink); }
.lang-switch .active{ color: var(--ink); font-weight: 700; }
.lang-switch .sep{ color: var(--line); }
.nav-toggle{ display:none; }

@media (max-width: 780px){
  .nav-links{
    position: fixed; inset: 76px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    padding: 32px var(--pad);
    gap: 24px;
    align-items: flex-start;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all .2s ease;
  }
  .nav-links.open{ transform: translateY(0); opacity:1; pointer-events:auto; }
  .nav-toggle{
    display:block; background:none; border:none; cursor:pointer;
    width: 28px; height: 20px; position:relative;
  }
  .nav-toggle span{
    position:absolute; left:0; width:100%; height:2px; background:var(--ink);
  }
  .nav-toggle span:nth-child(1){ top:0; }
  .nav-toggle span:nth-child(2){ top:9px; }
  .nav-toggle span:nth-child(3){ top:18px; }
}

/* ---------- footer ---------- */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  margin-top: 120px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-grid h4{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.footer-grid ul li{ margin-bottom: 10px; }
.footer-grid ul a{ color: var(--ink-soft); font-size: 14px; }
.footer-grid ul a:hover{ color: var(--ink); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-faint);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a{ color: var(--ink-faint); }
.footer-bottom a:hover{ color: var(--ink); }
.footer-disclaimer{
  font-family: var(--body);
  font-size: 13px;
  color: var(--ink-faint);
  max-width: 640px;
  line-height: 1.6;
}
@media (max-width: 780px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s ease;
}
.btn-primary{ background: var(--ink); color: var(--bg); }
.btn-primary:hover{ background: var(--accent); }
.btn-ghost{ border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover{ background: var(--ink); color: var(--bg); }
.btn-ghost.on-dark{ border-color: rgba(255,255,255,0.5); color:#fff; }
.btn-ghost.on-dark:hover{ background:#fff; color: var(--ink); }

/* ---------- HERO CAROUSEL (framed) ---------- */
.hero{
  position: relative;
  background: var(--ink);
  padding: 40px 0 56px;
}
.hero-frame{
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.hero-frame-inner{
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}
@media (max-width: 780px){
  .hero-frame-inner{ aspect-ratio: 4 / 5; border-radius: 14px; }
}
.hero-slide{
  position:absolute; inset:0;
  opacity:0;
  transition: opacity 1s ease;
}
.hero-slide.active{ opacity:1; }
.hero-slide .slide-bg{
  position:absolute; inset:0;
  background-size: cover;
  background-position: center;
}
.hero-slide .slide-bg::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.05) 40%, rgba(10,10,10,.1) 100%);
}
.hero-dots{
  position:absolute; left: 24px; bottom: 20px; z-index:3;
  display:flex; gap:10px;
}
.hero-dots button{
  width: 28px; height:3px; background: rgba(255,255,255,.4);
  border:none; cursor:pointer; padding:0; border-radius:2px;
  transition: background .2s ease;
}
.hero-dots button.active{ background:#fff; }
.hero-arrows{
  position:absolute; right: 20px; bottom: 16px; z-index:3;
  display:flex; gap: 10px;
}
.hero-arrows button{
  width:38px; height:38px; border-radius:50%;
  border:1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08);
  color:#fff; cursor:pointer; font-size:16px;
  display:flex; align-items:center; justify-content:center;
  transition: background .15s ease;
}
.hero-arrows button:hover{ background: rgba(255,255,255,.2); }

.hero-content{
  position:relative; z-index:2;
  color:#fff;
  padding: 36px var(--pad) 0;
  max-width: var(--max);
  margin: 0 auto;
  display:flex; justify-content:space-between; align-items:flex-end; gap: 32px;
}
.hero-text .eyebrow{ color: rgba(255,255,255,.7); margin-bottom: 18px; }
.hero-text .eyebrow::before{ background: var(--signal); }
.hero-title{
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.03;
  max-width: 720px;
}
.hero-sub{
  font-size: 16px;
  color: rgba(255,255,255,.78);
  max-width: 420px;
  margin-top: 18px;
}
.hero-meta{
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255,255,255,.65);
  text-align:right;
  flex-shrink:0;
  display:none;
}
@media (min-width: 900px){ .hero-meta{ display:block; } }
@media (max-width: 780px){
  .hero-content{ flex-direction: column; align-items:flex-start; gap: 20px; }
}


/* Use this on the real <img> that eventually replaces a .ph-photo div,
   inside the same sized wrapper, so it fills the frame like the placeholder did:
   <div class="portfolio-photo"><img class="photo-fill" src="..." alt="..."></div> */
.photo-fill{ width:100%; height:100%; object-fit:cover; object-position:center; display:block; }

/* ---------- generic placeholder "photo" ----------
   Swap any .ph-photo div for a real <img> when photography is ready.
   data-tone selects a distinct gradient per subject so cards stay
   visually distinct without real imagery. */
.ph-photo{
  position:relative;
  width:100%; height:100%;
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(160deg, var(--t1) 0%, var(--t2) 100%);
  overflow:hidden;
}
.ph-photo::before{
  content:"";
  position:absolute; inset:0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 5px);
  mix-blend-mode: overlay;
}
.ph-photo[data-tone="1"]{ --t1:#2C3D5C; --t2:#121C2E; }
.ph-photo[data-tone="2"]{ --t1:#3A4E70; --t2:#151F32; }
.ph-photo[data-tone="3"]{ --t1:#243252; --t2:#0E1626; }
.ph-photo[data-tone="4"]{ --t1:#354867; --t2:#131C2C; }
.ph-photo[data-tone="5"]{ --t1:#2E4560; --t2:#101A28; }

/* ---------- section scaffolding ---------- */
.section{ padding: 120px 0; }
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap: 32px; margin-bottom: 56px; flex-wrap:wrap;
}
.section-title{ font-size: clamp(28px, 3.4vw, 42px); max-width: 620px; }
.section-desc{ max-width: 380px; color: var(--ink-soft); font-size: 15px; }

/* ---------- QUALITY SECTION (signature diagram) ---------- */
.quality{ background: var(--bg-alt); }
.quality-panel{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items:center;
}
.inspection{
  position:relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: visible;
}
.inspection .ph-photo{ border-radius: 4px; }
.callout{
  position:absolute;
  display:flex; align-items:center; gap:10px;
}
.callout .dot{
  width:8px; height:8px; border-radius:50%;
  background:#fff; border: 1px solid var(--ink);
  flex-shrink:0;
}
.callout .line{
  height:1px; background: rgba(30,45,72,.35);
}
.callout .label{
  font-family: var(--mono); font-size: 11.5px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 3px;
  white-space: nowrap;
  color: var(--ink);
}
.c1{ top: 8%;  left: -6%; flex-direction: row-reverse; }
.c1 .line{ width: 60px; }
.c2{ top: 34%; right: -10%; }
.c2 .line{ width: 46px; }
.c3{ bottom: 20%; left: -12%; flex-direction: row-reverse; }
.c3 .line{ width: 76px; }
.c4{ bottom: 6%; right: -8%; }
.c4 .line{ width: 56px; }

.checklist{ display:flex; flex-direction:column; gap: 22px; }
.prose{
  display:flex; flex-direction:column; gap: 20px;
  max-width: 720px;
  font-size: 16px; line-height: 1.7;
  color: var(--ink-soft);
}
.prose strong{ color: var(--ink); font-weight: 600; }

/* ---------- VIDA AI METHOD (letter breakdown) ---------- */
.method-letters{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  background: var(--line);
  border: 1px solid var(--line);
}
.method-letter{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; gap: 12px;
  padding: 40px 16px;
  background: var(--panel);
}
.method-letter .letter{
  font-family: var(--display); font-weight: 700;
  font-size: 44px; color: var(--ink);
}
.method-letter .word{
  font-family: var(--mono); font-size: 12.5px;
  letter-spacing:.05em; text-transform:uppercase;
  color: var(--ink-soft); line-height: 1.6;
}
@media (max-width: 780px){ .method-letters{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px){ .method-letters{ grid-template-columns: repeat(2, 1fr); } }

/* ---------- BRAND STATEMENT (large closing quote) ---------- */
.brand-statement{
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.15;
  color: var(--ink);
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.check-item{ display:flex; gap: 16px; align-items:flex-start; }
.check-item .tick{
  width: 22px; height:22px; border-radius:50%;
  border: 1px solid var(--ink);
  display:flex; align-items:center; justify-content:center;
  font-size: 12px; flex-shrink:0; margin-top:2px;
}
.check-item h4{ font-size:16px; margin-bottom:4px; }
.check-item p{ color: var(--ink-soft); font-size:14px; }

@media (max-width: 900px){
  .quality-panel{ grid-template-columns: 1fr; }
  .callout{ position:static; margin-top:10px; }
  .callout .line{ display:none; }
  .inspection{ margin-bottom: 8px; }
}

/* ---------- MODEL GRID ---------- */
.model-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}
@media (max-width: 900px){ .model-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .model-grid{ grid-template-columns: 1fr; } }

.model-card{
  display:flex; flex-direction:column; gap: 14px;
  cursor:pointer;
}
.model-card-photo{
  position:relative;
  background: var(--panel);
  aspect-ratio: 3/4;
  overflow:hidden;
  border-radius: 4px;
}
.model-card-photo .ph-photo, .model-card-photo img{ transition: transform .5s ease; }
.model-card:hover .ph-photo, .model-card:hover img{ transform: scale(1.04); }
.model-card-name{
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  text-align: center;
}
.spec-overlay{
  position:absolute; inset:0; z-index:3;
  background: rgba(22,35,58,.94);
  color:#fff;
  padding: 20px;
  display:flex; flex-direction:column; justify-content:space-between;
  opacity:0; transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events:none;
}
.model-card:hover .spec-overlay,
.model-card:focus-visible .spec-overlay{
  opacity:1; transform: translateY(0);
  pointer-events:auto;
}
.spec-overlay .spec-head{
  font-family: var(--mono); font-size: 11px; letter-spacing:.06em;
  color: rgba(255,255,255,.55); text-transform:uppercase;
  display:flex; justify-content:space-between;
}
.spec-rows{ font-family: var(--mono); font-size: 13px; }
.spec-rows div{
  display:flex; justify-content:space-between;
  padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.12);
}
.spec-rows div span:first-child{ color: rgba(255,255,255,.55); }
.spec-cta{
  font-family: var(--mono); font-size: 12px;
  display:flex; align-items:center; justify-content:space-between;
  border-top: 1px solid rgba(255,255,255,.2); padding-top: 12px;
}

/* ---------- SERVICES ---------- */
.services-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:1px;
  background: var(--line); border:1px solid var(--line);
}
.service-card{
  background: var(--panel); padding: 32px 24px;
  display:flex; flex-direction:column; gap:14px; min-height: 220px;
}
.service-card .num{ font-family: var(--mono); font-size:12px; color: var(--ink-faint); }
.service-card h3{ font-size: 19px; }
.service-card p{ color: var(--ink-soft); font-size: 13.5px; flex-grow:1; }
@media (max-width: 900px){ .services-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .services-grid{ grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band{
  background: var(--ink); color:#fff;
  border-radius: 6px;
  padding: 64px var(--pad);
  display:flex; justify-content:space-between; align-items:center;
  gap: 32px; flex-wrap:wrap;
}
.cta-band h2{ font-size: clamp(24px,3vw,34px); max-width: 480px; }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero{ padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero .eyebrow{ margin-bottom: 18px; }
.page-title{ font-size: clamp(32px, 5vw, 58px); max-width: 780px; }
.page-lede{ margin-top: 18px; max-width: 560px; color: var(--ink-soft); font-size: 16px; }

/* ---------- ABOUT ---------- */
.stat-row{ display:grid; grid-template-columns: repeat(4,1fr); gap: 32px; padding: 56px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.stat-row .stat-num{ font-family: var(--display); font-size: clamp(28px,3vw,40px); }
.stat-row .stat-label{ font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); margin-top:6px; text-transform:uppercase; letter-spacing:.05em; }
@media (max-width: 700px){ .stat-row{ grid-template-columns: 1fr 1fr; row-gap: 28px; } }

.process-list{ display:flex; flex-direction:column; }
.process-item{
  display:grid; grid-template-columns: 90px 1fr 1.2fr; gap: 24px;
  padding: 32px 0; border-top: 1px solid var(--line);
}
.process-item:last-child{ border-bottom: 1px solid var(--line); }
.process-item .step{ font-family: var(--mono); color: var(--ink-faint); font-size:13px; }
.process-item h3{ font-size: 20px; }
.process-item p{ color: var(--ink-soft); font-size: 14.5px; }
@media (max-width: 780px){ .process-item{ grid-template-columns: 1fr; gap:8px; } }

.team-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.team-card{ }
.team-photo{ aspect-ratio: 4/5; border-radius:4px; overflow:hidden; margin-bottom:14px; }
.team-card h4{ font-size:16px; }
.team-card span{ font-family: var(--mono); font-size:12px; color: var(--ink-faint); }
@media (max-width: 780px){ .team-grid{ grid-template-columns: 1fr 1fr; } }

/* ---------- CONTACT ---------- */
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.form-row{ margin-bottom: 22px; display:flex; flex-direction:column; gap:8px; }
.form-row label{ font-family: var(--mono); font-size: 12px; text-transform:uppercase; letter-spacing:.04em; color: var(--ink-soft); }
.form-row input, .form-row select, .form-row textarea{
  border: 1px solid var(--line); background: var(--panel);
  border-radius: 3px; padding: 12px 14px; color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{
  border-color: var(--ink);
}
.form-two{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.contact-info-card{
  background: var(--bg-alt); border-radius: 6px; padding: 36px;
  display:flex; flex-direction:column; gap: 28px; height:fit-content;
}
.info-block h4{ font-family: var(--mono); font-size:11.5px; text-transform:uppercase; color: var(--ink-faint); margin-bottom:8px; letter-spacing:.05em; }
.info-block p, .info-block a{ font-size:15px; }
@media (max-width: 860px){ .contact-grid{ grid-template-columns:1fr; } .form-two{ grid-template-columns:1fr; } }

/* ---------- LEGAL ---------- */
.legal-body{ max-width: 760px; }
.legal-body h2{ font-size: 22px; margin-top: 48px; margin-bottom: 14px; }
.legal-body h2:first-child{ margin-top:0; }
.legal-body p, .legal-body li{ color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; }
.legal-body li{ margin-left: 20px; }
.legal-notice{
  background: var(--bg-alt); border-left: 3px solid var(--signal);
  padding: 20px 24px; border-radius: 0 4px 4px 0; margin-bottom: 40px;
}
.legal-notice p{ color: var(--ink); font-size:14.5px; margin:0; }
.legal-toc{ font-family: var(--mono); font-size: 13px; display:flex; flex-direction:column; gap:8px; margin-bottom:48px; }
.legal-toc a{ color: var(--ink-soft); }
.legal-toc a:hover{ color:var(--ink); }
.legal-updated{ font-family:var(--mono); font-size:12px; color:var(--ink-faint); margin-bottom:8px; display:block; }

/* ---------- MODEL PORTFOLIO ---------- */
.portfolio-hero{ display:grid; grid-template-columns: 1fr 1.4fr; gap: 48px; padding: 48px 0 72px; }
.portfolio-photo{ aspect-ratio: 3/4; border-radius:4px; overflow:hidden; }
.portfolio-info .eyebrow{ margin-bottom: 16px; }
.portfolio-name{ font-size: clamp(32px,4.5vw,52px); margin-bottom: 20px; }
.spec-table{ font-family: var(--mono); font-size:14px; border-top:1px solid var(--line); margin-top: 24px; }
.spec-table div{ display:flex; justify-content:space-between; padding:12px 0; border-bottom:1px solid var(--line); }
.spec-table div span:first-child{ color: var(--ink-faint); }
.portfolio-actions{ display:flex; gap:12px; margin-top:28px; flex-wrap:wrap; }
.gallery-grid{
  display:flex; flex-wrap:wrap; gap: 4px; margin-bottom: 100px;
  opacity: 0; transition: opacity .25s ease;
}
.gallery-grid.justified{ opacity: 1; }
.gallery-grid .ph-photo{ border-radius: 2px; flex-shrink: 0; }
/* Fallback while JS hasn't run yet (slow connection / JS disabled):
   plain wrapping row of fixed-ratio tiles, so the page never looks broken. */
.gallery-grid:not(.justified) .ph-photo{ width: calc(33.333% - 3px); aspect-ratio: 3/4; }
@media (max-width: 860px){
  .gallery-grid:not(.justified) .ph-photo{ width: calc(50% - 2px); }
}
@media (max-width: 860px){
  .portfolio-hero{ grid-template-columns: 1fr; }
}
.back-link{ font-family: var(--mono); font-size:13px; color: var(--ink-soft); display:inline-flex; gap:8px; align-items:center; margin: 32px 0 0; }
.back-link:hover{ color: var(--ink); }

/* fade-in on scroll (progressive, non-essential) */
.reveal{ opacity:0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }

/* ---------- SOCIAL LINKS ---------- */
.social-row{ display:flex; gap:12px; margin-top:18px; }
.social-row a{
  width:36px; height:36px; border-radius:50%;
  border:1px solid var(--line); display:flex; align-items:center; justify-content:center;
  color: var(--ink-soft); transition: all .15s ease;
}
.social-row a:hover{ background: var(--ink); border-color: var(--ink); color:#fff; }
.social-row svg{ width:16px; height:16px; fill:currentColor; }

.model-social{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--mono); font-size: 13px; color: var(--ink-soft);
  border:1px solid var(--line); border-radius:100px; padding:9px 16px;
  margin-top:10px;
}
.model-social:hover{ color: var(--ink); border-color: var(--ink); }
.model-social svg{ width:14px; height:14px; fill:currentColor; }

/* ---------- CONTACT FORM: checkbox groups & consent ---------- */
.checkbox-group{ display:flex; flex-wrap:wrap; gap:10px; }
.checkbox-pill{
  display:flex; align-items:center; gap:8px;
  border:1px solid var(--line); border-radius:100px;
  padding:9px 14px; font-size:13.5px; cursor:pointer;
  background: var(--panel);
}
.checkbox-pill input{ accent-color: var(--ink); }
.field-hint{ font-family: var(--mono); font-size:11.5px; color: var(--ink-faint); margin-top:-2px; }
.consent-row{ display:flex; gap:10px; align-items:flex-start; margin: 22px 0; }
.consent-row input{ margin-top:4px; accent-color: var(--ink); flex-shrink:0; }
.consent-row label{ font-size:13.5px; color: var(--ink-soft); line-height:1.5; }
.consent-row a{ color: var(--ink); text-decoration: underline; }

/* ---------- COOKIE CONSENT BANNER ---------- */
#cookie-banner{
  position: fixed; left:0; right:0; bottom:0; z-index: 200;
  background: var(--ink); color: #fff;
  padding: 22px var(--pad);
  display:flex; align-items:center; justify-content:space-between;
  gap: 24px; flex-wrap: wrap;
  transform: translateY(110%);
  transition: transform .4s ease;
}
#cookie-banner.visible{ transform: translateY(0); }
#cookie-banner p{ font-size: 13.5px; color: rgba(255,255,255,.82); max-width: 640px; }
#cookie-banner a{ color:#fff; text-decoration: underline; }
.cookie-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.cookie-actions button{
  font-family: var(--mono); font-size:12.5px;
  padding: 10px 18px; border-radius:100px; cursor:pointer; border:1px solid rgba(255,255,255,.5);
  background:transparent; color:#fff;
}
.cookie-actions button.primary{ background:#fff; color: var(--ink); border-color:#fff; }
.cookie-actions button:hover{ opacity:.85; }

#cookie-settings-modal{
  position: fixed; inset:0; z-index: 210;
  background: rgba(22,35,58,.6);
  display:none; align-items:center; justify-content:center; padding: 20px;
}
#cookie-settings-modal.open{ display:flex; }
.cookie-modal-card{
  background: var(--panel); border-radius:8px; max-width: 480px; width:100%;
  padding: 32px; max-height: 84vh; overflow:auto;
}
.cookie-modal-card h3{ font-size:20px; margin-bottom:8px; }
.cookie-modal-card > p{ color: var(--ink-soft); font-size:14px; margin-bottom:20px; }
.cookie-cat{ border-top:1px solid var(--line); padding: 16px 0; }
.cookie-cat-head{ display:flex; justify-content:space-between; align-items:center; }
.cookie-cat-head strong{ font-size:14.5px; }
.cookie-cat p{ font-size:13px; color: var(--ink-soft); margin-top:6px; }
.switch{ position:relative; width:40px; height:22px; flex-shrink:0; }
.switch input{ opacity:0; width:0; height:0; }
.switch .track{
  position:absolute; inset:0; background: var(--line); border-radius:100px; transition: background .15s ease; cursor:pointer;
}
.switch .track::before{
  content:""; position:absolute; width:16px; height:16px; left:3px; top:3px;
  background:#fff; border-radius:50%; transition: transform .15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.switch input:checked + .track{ background: var(--ink); }
.switch input:checked + .track::before{ transform: translateX(18px); }
.switch input:disabled + .track{ opacity:.5; cursor:not-allowed; }
.cookie-modal-actions{ display:flex; gap:10px; margin-top:24px; }
