/* ============================================================
   KALEIDO — "Through the Lens"
   Editorial light base · dramatic dark moments · kaleidoscope refraction
   ============================================================ */

:root {
  --paper:      #F4F1EA;
  --paper-2:    #ECE7DC;
  --surface:    #FFFFFF;
  --ink:        #0E0F12;
  --ink-2:      #16181C;
  --ink-soft:   #565B63;
  --ink-faint:  #8C9199;
  --line:       #E2DDD1;
  --line-dark:  rgba(255,255,255,.14);

  --teal:       #1B97A8;
  --teal-deep:  #0E5C68;
  --orange:     #E85C3A;
  --purple:     #6A4FA0;
  --gold:       #F0A830;

  --refract: linear-gradient(100deg, #22A6B3 0%, #6A4FA0 34%, #E85C3A 66%, #F0A830 100%);

  --container:  1280px;
  --gutter:     clamp(1.2rem, 4vw, 3rem);
  --ease:       cubic-bezier(.19,1,.22,1);
  --ease-2:     cubic-bezier(.65,.05,.36,1);

  --ff-disp:    'Fraunces', Georgia, 'Times New Roman', serif;
  --ff-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ff-mono:    'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

/* ------------------------------- reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans); color: var(--ink); background: var(--paper);
  line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: var(--ink); }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 300; background: var(--ink); color: #fff; padding: .6rem 1rem; }
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 820px; }
.center { text-align: center; }

/* --------------------------- typography -------------------------------- */
.display, h1, h2, h3, h4 { font-family: var(--ff-disp); font-weight: 400; line-height: 1.02; letter-spacing: -.02em; }
.eyebrow { font-family: var(--ff-mono); text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 400; color: var(--teal-deep); display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; opacity: .6; }
.refract, .display em, h1 em, h2 em {
  font-style: italic; font-weight: 500;
  background: var(--refract); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: refract 9s ease-in-out infinite;
}
@keyframes refract { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #E7E2D8; }
.section-head { max-width: 52rem; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; max-width: none; flex-wrap: wrap; }
.section-title { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.section-lead { color: var(--ink-soft); font-size: 1.12rem; max-width: 54ch; margin-top: 1.1rem; }
.section-dark .section-lead { color: rgba(231,226,216,.72); }

/* ----------------------------- buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; position: relative;
  font-family: var(--ff-mono); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 1rem 1.7rem; border-radius: 100px; border: 1px solid transparent;
  background: var(--ink); color: var(--paper);
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.btn::after { content: "→"; font-family: var(--ff-sans); transition: transform .4s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--teal-deep); box-shadow: 0 12px 30px rgba(14,92,104,.3); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-outline-light { background: transparent; border-color: var(--line-dark); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn-lg { padding: 1.15rem 2rem; font-size: .86rem; }

/* ------------------------------ topbar --------------------------------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 210; /* above the lens overlay so Close stays reachable */
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter); transition: background .4s, box-shadow .4s, padding .4s, color .4s;
  color: var(--ink);
}
.topbar.scrolled { background: rgba(244,241,234,.86); backdrop-filter: saturate(150%) blur(12px); box-shadow: 0 1px 0 var(--line); padding-block: .75rem; color: var(--ink); }
body.page-home .topbar:not(.scrolled) { color: var(--paper); }
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand-mark { width: 48px; height: 48px; object-fit: contain; }
.brand-word { font-family: var(--ff-disp); font-weight: 600; font-size: 1.6rem; letter-spacing: .14em; }
.topbar-right { display: flex; align-items: center; gap: 1.1rem; }

.lang-toggle { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--ff-mono); font-size: .78rem; }
.lang-seg { opacity: .5; transition: opacity .25s, color .25s; letter-spacing: .04em; }
.lang-seg.is-active { opacity: 1; font-weight: 700; }
.lang-seg:not(.is-active):hover { opacity: .85; }
.lang-sep { width: 1px; height: .8em; background: currentColor; opacity: .3; }

.menu-btn { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.menu-btn-ico { position: relative; width: 22px; height: 12px; }
.menu-btn-ico i { position: absolute; left: 0; width: 100%; height: 1.6px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.menu-btn-ico i:nth-child(1) { top: 0; } .menu-btn-ico i:nth-child(2) { top: 5px; } .menu-btn-ico i:nth-child(3) { top: 10px; }

/* ----------------------------- lens menu ------------------------------- */
.lens-menu {
  position: fixed; inset: 0; z-index: 200; background: var(--ink); color: var(--paper);
  clip-path: circle(0% at calc(100% - 3rem) 2.4rem);
  transition: clip-path .7s var(--ease); visibility: hidden; overflow: hidden;
}
.lens-menu.is-open { clip-path: circle(150% at calc(100% - 3rem) 2.4rem); visibility: visible; }
.lens-aperture { position: absolute; inset: -20% ; background: conic-gradient(from 0deg, #22A6B3, #6A4FA0, #E85C3A, #F0A830, #22A6B3); filter: blur(90px); opacity: .14; animation: spin 26s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.lens-shell { position: relative; height: 100%; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 3rem; padding-block: 7rem 3rem; }
.lens-nav { display: grid; gap: clamp(.1rem, 1vw, .4rem); }
.lens-link { display: flex; align-items: baseline; gap: 1.2rem; padding: .35rem 0; opacity: 0; transform: translateY(28px); }
.lens-menu.is-open .lens-link { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(.18s + var(--d) * .07s); }
.lens-no { font-family: var(--ff-mono); font-size: .8rem; color: var(--teal); opacity: .8; }
.lens-text { font-family: var(--ff-disp); font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: .98; letter-spacing: -.02em; position: relative; transition: color .3s; }
.lens-link:hover .lens-text, .lens-link.is-active .lens-text {
  background: var(--refract); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic;
}
.lens-aside { align-self: center; display: grid; gap: 2rem; opacity: 0; transition: opacity .6s var(--ease) .45s; }
.lens-menu.is-open .lens-aside { opacity: 1; }
.lens-featured { display: grid; gap: .7rem; }
.lens-featured-label, .lens-meta-label { font-family: var(--ff-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; color: rgba(231,226,216,.5); }
.lens-featured-media { display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 16/11; }
.lens-featured-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.4); transition: filter .5s, transform .6s var(--ease); }
.lens-featured:hover .lens-featured-media img { filter: saturate(1); transform: scale(1.04); }
.lens-featured-title { font-family: var(--ff-disp); font-size: 1.3rem; }
.lens-meta { display: grid; gap: .35rem; font-size: .98rem; }
.lens-mail { font-family: var(--ff-disp); font-size: 1.4rem; }
.lens-mail:hover { color: var(--gold); }
.lens-tel:hover, .lens-web:hover { color: var(--gold); }
.lens-loc { color: rgba(231,226,216,.6); }
.lens-bottom { display: flex; align-items: center; gap: 1.4rem; margin-top: 1rem; }
.lens-social { display: flex; gap: .8rem; font-family: var(--ff-mono); font-size: .8rem; }
.lens-social a:hover { color: var(--gold); }

body.menu-open { overflow: hidden; }
body.menu-open .menu-btn-ico i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .menu-btn-ico i:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn-ico i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
body.menu-open .topbar { color: var(--paper); }

/* ------------------------------- hero ---------------------------------- */
.hero { position: relative; background: var(--ink); color: var(--paper); min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: 5rem; }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem; width: 100%; }
.hero-copy { max-width: none; }
.hero .eyebrow { color: var(--teal); }
.hero-title { font-size: clamp(2.8rem, 8vw, 6.4rem); line-height: .98; margin-top: 1.6rem; letter-spacing: -.03em; }
.hero-lead { font-family: var(--ff-sans); margin-top: 1.8rem; font-size: 1.2rem; color: rgba(231,226,216,.78); max-width: 42ch; }
.hero-actions { margin-top: 2.4rem; display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-lens { position: relative; aspect-ratio: 1; width: min(46vw, 560px); justify-self: end; }
.hero-lens canvas { width: 100%; height: 100%; border-radius: 50%; }
.hero-lens::after { content: ""; position: absolute; inset: -2%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 40px 120px rgba(0,0,0,.5); pointer-events: none; }
.hero-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-scroll { position: absolute; bottom: 1.6rem; left: var(--gutter); z-index: 2; font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(231,226,216,.55); display: flex; align-items: center; gap: .6rem; }
.hero-scroll::after { content: ""; width: 30px; height: 1px; background: currentColor; animation: scrollline 2s var(--ease) infinite; transform-origin: left; }
@keyframes scrollline { 0%,100% { transform: scaleX(.3); opacity: .4; } 50% { transform: scaleX(1); opacity: 1; } }

/* ----------------------------- marquee --------------------------------- */
.marquee { background: var(--ink); color: var(--paper); border-top: 1px solid var(--line-dark); padding-block: 1.1rem; overflow: hidden; }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--ff-disp); font-size: 1.5rem; font-style: italic; padding-inline: 1.6rem; display: inline-flex; align-items: center; gap: 1.6rem; white-space: nowrap; }
.marquee-item::after { content: "✦"; font-style: normal; font-size: .8rem; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------- manifesto --------------------------------- */
.manifesto { background: var(--paper); }
.manifesto-inner { max-width: 44rem; }
.manifesto-lead { font-family: var(--ff-disp); font-size: clamp(2rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -.02em; }
.manifesto-body { font-family: var(--ff-disp); font-style: italic; color: var(--ink-soft); font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.3; max-width: 30ch; margin-top: 1.6rem; }

/* --------------------------- value props ------------------------------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.value-card { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.value-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--teal-deep); border: 1px solid var(--line); margin-bottom: 1.2rem; }
.value-card:nth-child(2) .value-ic { color: var(--orange); }
.value-card:nth-child(3) .value-ic { color: var(--purple); }
.value-card:nth-child(4) .value-ic { color: var(--gold); }
.vicon { width: 22px; height: 22px; }
.value-card h3 { font-size: 1.3rem; margin-bottom: .6rem; line-height: 1.1; }
.value-card p { color: var(--ink-soft); font-size: .96rem; }
.section-dark .value-card { border-color: var(--line-dark); }
.section-dark .value-card p { color: rgba(231,226,216,.7); }

/* ------------------------------ work ----------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2.4vw, 2rem); }
.work-card { grid-column: span 6; display: flex; flex-direction: column; }
.work-card.card-feature { grid-column: span 12; }
.work-card.span-4 { grid-column: span 4; }
.work-card-media { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 16/11; background: var(--paper-2); }
.work-card.card-feature .work-card-media { aspect-ratio: 21/9; }
.work-card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); transition: filter .6s var(--ease), transform .8s var(--ease); }
.work-card:hover .work-card-media img, .work-card.in-view .work-card-media img { filter: none; }
.work-card:hover .work-card-media img { transform: scale(1.04); }
.work-card-view { position: absolute; left: 1rem; bottom: 1rem; font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; background: var(--paper); color: var(--ink); padding: .5rem .9rem; border-radius: 100px; opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.work-card:hover .work-card-view { opacity: 1; transform: none; }
.work-card-noimg { position: absolute; inset: 0; background: var(--refract); background-size: 200% 200%; animation: refract 8s ease infinite; opacity: .8; }
.work-card-body { padding-top: 1rem; display: flex; flex-direction: column; gap: .2rem; }
.work-card-cat { font-family: var(--ff-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--teal-deep); }
.work-card-title { font-family: var(--ff-disp); font-size: 1.4rem; line-height: 1.1; }
.work-card.card-feature .work-card-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.work-card-client { color: var(--ink-faint); font-size: .9rem; }
.empty-state { text-align: center; color: var(--ink-soft); padding: 5rem 1rem; font-family: var(--ff-disp); font-size: 1.4rem; }

/* hidden by filter */
.work-card.filtered-out { display: none; }

/* ----------------------------- filter ---------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(2rem, 4vw, 3rem); align-items: center; }
.chip { font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .04em; border: 1px solid var(--line); border-radius: 100px; padding: .5rem 1.1rem; color: var(--ink-soft); transition: all .25s var(--ease); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .chip-n { opacity: .5; margin-left: .4rem; }

/* --------------------------- services ---------------------------------- */
.svc-group { border-top: 1px solid var(--line); padding-top: clamp(1.6rem, 3vw, 2.5rem); margin-top: clamp(2rem, 4vw, 3.5rem); }
.svc-group:first-of-type { margin-top: 0; }
.svc-group-head { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start; margin-bottom: 2.2rem; }
.svc-group-no { font-family: var(--ff-mono); font-size: .8rem; color: var(--orange); padding-top: .6rem; }
.svc-group-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.svc-group-head .section-lead { margin-top: .6rem; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.8rem); }
.svc-card { padding: 1.6rem 0; border-top: 1px solid var(--line); transition: border-color .3s; }
.svc-card:hover { border-color: var(--ink); }
.svc-card-tag { font-family: var(--ff-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); }
.svc-card h3 { font-size: 1.34rem; margin: .5rem 0 .5rem; }
.svc-card p { color: var(--ink-soft); font-size: .95rem; }

.svc-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.svc-preview h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.svc-preview-lead { color: var(--ink-soft); margin: .7rem 0 1.3rem; }
.svc-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.svc-tags li { font-family: var(--ff-mono); font-size: .78rem; border: 1px solid var(--line); border-radius: 100px; padding: .35rem .9rem; color: var(--teal-deep); }

/* ----------------------------- approach -------------------------------- */
.approach-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); counter-reset: step; }
.approach-step { border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.section-dark .approach-step { border-color: var(--gold); }
.approach-no { font-family: var(--ff-mono); font-size: .8rem; color: var(--teal); }
.approach-step h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: .6rem 0 .6rem; }
.approach-step p { color: var(--ink-soft); font-size: .95rem; }
.section-dark .approach-step p { color: rgba(231,226,216,.7); }

/* ----------------------------- founder --------------------------------- */
.founder { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.founder-art { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--ink); display: grid; place-items: center; }
.founder-art canvas { width: 100%; height: 100%; }
.founder-mono { position: absolute; bottom: 1.4rem; left: 0; right: 0; text-align: center; font-family: var(--ff-disp); font-style: italic; font-size: 1.4rem; color: var(--paper); }
.founder-copy .eyebrow { margin-bottom: 1.4rem; }
.founder-copy .lead-para { font-family: var(--ff-disp); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; letter-spacing: -.01em; margin-bottom: 1.2rem; }
.founder-copy p { color: var(--ink-soft); margin-bottom: 1rem; font-size: 1.05rem; }
.founder-copy p:last-child { font-family: var(--ff-disp); font-style: italic; color: var(--ink); }

/* --------------------------- page hero --------------------------------- */
.page-hero { padding-block: clamp(7rem, 13vw, 11rem) clamp(2rem, 5vw, 3.5rem); }
.page-title { font-size: clamp(2.6rem, 8vw, 6rem); line-height: .98; margin-top: 1.4rem; letter-spacing: -.03em; }
.page-lead { color: var(--ink-soft); font-size: 1.2rem; max-width: 56ch; margin-top: 1.4rem; }

/* --------------------------- project ----------------------------------- */
.project-hero { padding-block: clamp(7rem, 12vw, 10rem) clamp(1.5rem, 3vw, 2.5rem); }
.back-link { font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .06em; color: var(--ink-soft); }
.back-link:hover { color: var(--ink); }
.project-hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: end; margin-top: 1.6rem; }
.project-title { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1; }
.project-summary { color: var(--ink-soft); font-size: 1.2rem; margin-top: 1.2rem; max-width: 40ch; }
.project-meta { display: grid; gap: 1rem; }
.project-meta div { border-top: 1px solid var(--line); padding-top: .6rem; }
.project-meta dt { font-family: var(--ff-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-faint); }
.project-meta dd { font-size: 1.05rem; margin-top: .15rem; }
.project-cover { margin-block: clamp(2rem, 5vw, 3.5rem); }
.project-cover img { width: 100%; border-radius: 14px; }
.project-body { padding-bottom: clamp(1rem, 3vw, 2rem); }
.project-body p { font-family: var(--ff-disp); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.4; color: var(--ink); margin-bottom: 1.3rem; }
.project-gallery { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2vw, 1.8rem); }
.gallery-item img { width: 100%; border-radius: 12px; }
.gallery-item:first-child:nth-last-child(odd) { grid-column: 1 / -1; }

/* ----------------------------- contact --------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-form { display: grid; gap: 1.3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field { display: grid; gap: .45rem; }
.field span { font-family: var(--ff-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: .7rem .1rem; width: 100%; transition: border-color .3s; border-radius: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-family: var(--ff-mono); font-size: .72rem; color: var(--ink-faint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.4rem; font-size: .96rem; }
.alert-success { background: #E7F4ED; border: 1px solid #BFE3D0; color: #1F6B45; }
.alert-error { background: #FBEAE6; border: 1px solid #F2C7BD; color: #A6361F; }
.alert ul { padding-left: 1.1rem; list-style: disc; }
.contact-aside { display: grid; gap: 1.4rem; }
.contact-aside h2 { font-size: 1.6rem; }
.contact-list { display: grid; gap: 1.1rem; }
.contact-list li { display: grid; gap: .15rem; }
.contact-label { font-family: var(--ff-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); }
.contact-list a:hover { color: var(--teal-deep); }

/* --------------------------- CTA band ---------------------------------- */
.cta-band { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 1; }
.cta-aperture { position: absolute; inset: -30%; background: conic-gradient(from 30deg, #22A6B3, #6A4FA0, #E85C3A, #F0A830, #22A6B3); filter: blur(120px); opacity: .16; animation: spin 30s linear infinite; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-block: clamp(3.5rem, 7vw, 6rem); }
.cta-inner h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 18ch; }
.cta-inner p { color: rgba(231,226,216,.75); margin-top: .8rem; max-width: 46ch; }
.cta-band-soft { background: var(--paper-2); color: var(--ink); }
.cta-band-soft .cta-aperture { opacity: .5; mix-blend-mode: multiply; }
.cta-band-soft p { color: var(--ink-soft); }

/* ----------------------------- footer ---------------------------------- */
.site-footer { background: var(--ink); color: #B7BCC3; padding-top: clamp(3rem, 6vw, 5rem); }
.footer-cta { border-bottom: 1px solid var(--line-dark); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 3rem; }
.footer-cta-small { font-family: var(--ff-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .18em; color: var(--teal); }
.footer-cta-big { display: block; font-family: var(--ff-disp); color: var(--paper); font-size: clamp(2.2rem, 7vw, 5rem); line-height: 1.02; margin-top: .8rem; }
.footer-cta-link:hover .footer-cta-big { color: #fff; }
.footer-cta-link:hover .arr { display: inline-block; transform: translateX(12px); transition: transform .4s var(--ease); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo { width: 96px; height: auto; }
.footer-tagline { font-family: var(--ff-disp); font-style: italic; color: var(--paper); font-size: 1.15rem; margin-top: 1rem; max-width: 26ch; }
.footer-col h4 { color: var(--paper); font-family: var(--ff-mono); font-size: .72rem; font-weight: 400; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a:hover { color: #fff; }
.footer-social { margin-top: 1rem; display: flex; gap: 1rem; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .82rem; color: #7E848C; flex-wrap: wrap; }
.to-top { font-family: var(--ff-mono); font-size: .78rem; color: #B7BCC3; }
.to-top:hover { color: #fff; }

/* ---------------------------- lightbox --------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 320; display: none; align-items: center; justify-content: center; padding: 4vmin; background: rgba(8,9,11,.94); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 6px; }
.lightbox-close { position: absolute; top: 1.2rem; right: 1.4rem; color: #fff; font-size: 2.4rem; line-height: 1; opacity: .8; }
.lightbox-close:hover { opacity: 1; }

/* ------------------------- reveal on scroll ---------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }

/* --------------------------- responsive -------------------------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-copy { max-width: none; }
  .hero-lens { order: -1; width: min(64vw, 360px); justify-self: start; }
  .value-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.4rem; }
  .approach-list { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .founder { grid-template-columns: 1fr; }
  .founder-art { max-width: 320px; }
  .lens-shell { grid-template-columns: 1fr; align-content: center; gap: 2rem; }
  .lens-aside { display: none; }
  .project-hero-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand-word { display: none; }
  .work-grid { gap: 1.6rem 1.2rem; }
  .work-card, .work-card.span-4 { grid-column: span 12; }
  .svc-grid, .svc-preview-grid, .gallery-grid, .field-row, .contact-grid { grid-template-columns: 1fr; }
  .approach-list { grid-template-columns: 1fr; }
  .cta-inner, .section-head.row { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-right { gap: .9rem; }
}
@media (max-width: 420px) {
  .value-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .work-card-media img { filter: none; }
}
