/* ============================================================
   SMA Advocacia — "Cinematic" build
   Visual language inspired by Apple product pages:
   full-bleed dark scenes, oversized type, scroll-driven motion.
   Brand soul kept: deep navy-black · ivory · burgundy accent.
   ============================================================ */

:root {
  --black:    #0F1F46;     /* navy from the SMA logo */
  --black-2:  #0A1733;     /* deeper navy */
  --navy:     #14224D;
  --ivory:    #FFFFFF;      /* very white — premium */
  --white:    #FFFFFF;
  --accent:   #0F1F46;     /* navy — accents on white sections */
  --accent-2: #6E8DC4;     /* luminous blue — accents on navy sections */
  --text-dk:  #FFFFFF;     /* text on navy */
  --dim-dk:   rgba(255,255,255,0.62);
  --dim-dk-2: rgba(255,255,255,0.34);
  --text-lt:  #0F1F46;     /* text on white */
  --dim-lt:   rgba(15,31,70,0.56);
  --line-dk:  rgba(255,255,255,0.16);
  --line-lt:  rgba(15,31,70,0.12);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --serif: "Bodoni Moda", "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 80px);
  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; background: var(--black); }

body {
  font-family: var(--sans);
  background: var(--black);
  color: var(--text-dk);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

h1, h2, h3 { font-weight: 600; line-height: 1.04; letter-spacing: -0.028em; }
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.serif-it { font-family: var(--serif); font-style: italic; font-weight: 500; }

/* progress bar */
.progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--accent-2); width: 0; z-index: 900; transition: width .1s linear; }

/* ============ liquid-glass cursor ============ */
@media (hover: hover) and (pointer: fine) {
  /* hide the native arrow site-wide; the bubble replaces it */
  html, body, a, button, .btn, .nav-cta, .link-arrow, [role="button"], input, textarea, label { cursor: none; }
}
.lg-cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 24px; height: 32px;
  /* hotspot at tip — JS drives the actual position */
  transform: translate(0, 0); /* overridden by JS rAF loop */
  pointer-events: none;
  opacity: 0;
  transition: width .18s var(--ease), height .18s var(--ease), opacity .3s var(--ease), transform .18s var(--ease);
  /* arrow shape identical to the OS default pointer */
  -webkit-clip-path: polygon(0 0, 0 75%, 20% 57%, 33% 88%, 46% 82%, 32% 53%, 58% 53%);
          clip-path: polygon(0 0, 0 75%, 20% 57%, 33% 88%, 46% 82%, 32% 53%, 58% 53%);
  /* frosted glass fill */
  background: rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(6px) brightness(1.15) saturate(1.3);
          backdrop-filter: blur(6px) brightness(1.15) saturate(1.3);
  /* white rim glow on dark, crisp shadow underneath */
  filter:
    drop-shadow(0 0 0.5px rgba(255,255,255,1))
    drop-shadow(0 0 2px rgba(255,255,255,0.6))
    drop-shadow(0 2px 4px rgba(8,18,46,0.5));
}
/* inner specular highlight — top-left glass sheen */
.lg-cursor .lg-spec {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 42%);
}
.lg-cursor.ready { opacity: 1; }
.lg-cursor.hover { width: 32px; height: 43px; }
.lg-cursor.down {
  width: 19px; height: 26px;
  transform: translate(1px, 1px);
}
/* on light backgrounds: navy rim instead of white glow */
.lg-cursor.on-light {
  background: rgba(15,31,70,0.12);
  filter:
    drop-shadow(0 0 0.5px rgba(15,31,70,0.9))
    drop-shadow(0 0 2px rgba(15,31,70,0.45))
    drop-shadow(0 2px 4px rgba(15,31,70,0.2));
}

/* click ripple — shockwave ring from click point */
.lg-ripple {
  position: fixed; z-index: 9998; pointer-events: none;
  width: 12px; height: 12px; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.3);
  border: 1.5px solid rgba(255,255,255,0.9);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  animation: lg-ripple-anim .55s var(--ease) forwards;
}
.lg-ripple.on-light { border-color: rgba(15,31,70,0.6); }
@keyframes lg-ripple-anim {
  0%   { transform: translate(-50%, -50%) scale(0.3); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(4.6); opacity: 0; }
}
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .lg-cursor { display: none; }
  html, body, a, button { cursor: auto; }
}

/* ============ scenes / layout ============ */
.scene { position: relative; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.dark  { background: var(--black);  color: var(--text-dk); }
.dark2 { background: var(--black-2); color: var(--text-dk); }
.light { background: var(--ivory);  color: var(--text-lt); }

.pad   { padding: clamp(96px, 16vh, 220px) 0; }
.pad-s { padding: clamp(64px, 10vh, 130px) 0; }

.kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-2);
}
.light .kicker { color: var(--accent); }

/* ============ Apple-style nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(15,31,70,0);
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease), height .4s var(--ease);
}
.nav.solid { background: rgba(10,23,51,0.78); backdrop-filter: saturate(160%) blur(18px); height: 52px; }
.nav .logo { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: 0.18em; color: var(--text-dk); }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav-links a { font-size: 13px; color: var(--dim-dk); transition: color .3s; letter-spacing: 0; }
.nav-links a:hover { color: var(--text-dk); }
.nav .nav-cta { font-size: 13px; color: var(--accent-2); }
.nav .nav-cta:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ============ buttons / links ============ */
.btn {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  font-size: 15px; font-weight: 500; letter-spacing: 0;
  padding: 13px 24px; border-radius: 980px;
  background: var(--accent); color: #fff;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { background: #1A3267; }
.btn.light-fill { background: #fff; color: var(--accent); }
.btn.light-fill:hover { background: #E8ECF5; }
.btn.ghost { background: transparent; border: 1px solid var(--line-dk); color: var(--text-dk); }
.light .btn.ghost { border-color: var(--line-lt); color: var(--text-lt); }
.btn.ghost:hover { background: rgba(244,242,236,0.06); }
.light .btn.ghost:hover { background: rgba(17,19,28,0.05); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 16px; color: var(--accent-2);
}
.light .link-arrow { color: var(--accent); }
.link-arrow .chev { transition: transform .35s var(--ease); }
.link-arrow:hover .chev { transform: translateX(4px); }
.link-arrow:hover .txt { text-decoration: underline; text-underline-offset: 4px; }

/* ============ HERO SCRUB — pinned video, scroll-controlled playback ============ */
.hero-scrub { position: relative; background: var(--ivory); }
.hs-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--ivory); }

/* ---- video panel: large, on the right, fades into the white for contrast ---- */
.hs-media {
  position: absolute; top: 0; right: 0; bottom: 0; width: 60%; z-index: 2;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 42%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(90deg, transparent 0%, #000 42%, #000 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-composite: intersect;
}
.hs-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
  filter: brightness(1.08) contrast(1.05) saturate(0.97);
  pointer-events: none;
  opacity: 0;            /* decode source only — never shown; canvas is the display */
}
.hs-video::-webkit-media-controls,
.hs-video::-webkit-media-controls-enclosure { display: none !important; }
/* canvas frame buffer — sits above the video once frames are cached */
.hs-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity .5s var(--ease);
  filter: brightness(1.08) contrast(1.05) saturate(0.97);
}
.hs-canvas.ready { opacity: 1; }
/* thin loading bar while frames are extracted */
.hs-loader { position: absolute; right: 18%; bottom: 9%; z-index: 5; opacity: 1; transition: opacity .5s var(--ease); }
.hs-loader.done { opacity: 0; pointer-events: none; }
.hs-loader-bar { width: 140px; height: 2px; background: rgba(15,31,70,0.18); overflow: hidden; border-radius: 2px; }
.hs-loader-bar i { display: block; height: 100%; width: 0%; background: var(--accent); transition: width .2s linear; }

.hs-content { position: absolute; inset: 0; display: flex; align-items: center; z-index: 3; }
.hs-content .wrap { position: relative; width: 100%; }

/* generic staged element: fades + lifts in/out */
.hs-stage { opacity: 0; transition: opacity .8s var(--ease-io), transform .8s var(--ease-io); pointer-events: none; }
.hs-stage.on { opacity: 1; pointer-events: auto; }

/* intro headline block — left column, navy on white */
.hs-intro { max-width: min(52%, 600px); transform: translateY(20px); }
.hs-intro.on { transform: none; }
.hs-intro .kicker { display: block; margin-bottom: 22px; color: var(--accent); }
.hs-intro h1 { font-size: clamp(34px, 4.6vw, 80px); line-height: 1.0; letter-spacing: -0.035em; color: var(--text-lt); }
.hs-intro h1 .mask > span { white-space: nowrap; }
.hs-intro h1 .serif-it { font-weight: 500; letter-spacing: -0.02em; color: var(--accent); }
.hs-intro .sub { margin: 26px 0 0; max-width: 40ch; font-size: clamp(16px, 1.4vw, 21px); color: var(--dim-lt); line-height: 1.5; }
.hs-intro .acts { margin-top: 36px; display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.hs-intro .link-arrow { color: var(--accent); }

/* manifesto captions — left column, vertically centred, navy on white */
.hs-cap {
  position: absolute; top: 50%; left: var(--gutter); transform: translateY(calc(-50% + 28px));
  max-width: min(50%, 600px); padding-right: 24px;
  font-size: clamp(28px, 4vw, 64px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em;
  color: var(--text-lt);
}
.hs-cap.on { transform: translateY(-50%); }
.hs-cap .accent { color: var(--accent); }

/* responsive: stack the panel behind the text on narrow screens */
@media (max-width: 860px) {
  .hs-media { width: 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 42%, #000 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 42%, #000 100%); }
  .hs-intro, .hs-cap { max-width: none; }
  .hs-loader { right: 50%; transform: translateX(50%); }
}

.hs-hint {
  position: absolute; bottom: 30px; left: var(--gutter); z-index: 4;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim-dk);
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  opacity: 0; transition: opacity .6s var(--ease);
}
.hs-hint.show { opacity: 1; }
.hs-hint .bar { width: 1px; height: 38px; background: linear-gradient(var(--dim-dk), transparent); animation: dropline 2.2s var(--ease) infinite; }
@keyframes dropline { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============ feature / áreas (sticky stacked panels) ============ */
.areas-intro h2 { font-size: clamp(34px, 5vw, 72px); max-width: 16ch; }
.areas-intro p { margin-top: 22px; max-width: 44ch; color: var(--dim-dk); font-size: 19px; }

.panel { position: relative; height: 100svh; min-height: 680px; overflow: hidden; display: flex; align-items: flex-end; }
.panel .p-media { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.panel .p-media image-slot { width: 100%; height: 120%; }
.panel .p-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,23,51,0.34) 0%, rgba(10,23,51,0) 26%, rgba(10,23,51,0.20) 52%, rgba(10,23,51,0.94) 100%); }
.panel .p-body { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(56px, 9vh, 110px); }
.panel .p-num { font-size: 13px; letter-spacing: 0.22em; color: var(--accent-2); font-weight: 600; }
.panel h3 { font-size: clamp(38px, 6.4vw, 96px); margin-top: 14px; letter-spacing: -0.035em; }
.panel .p-desc { margin-top: 22px; max-width: 50ch; font-size: clamp(17px, 1.5vw, 21px); color: var(--dim-dk); line-height: 1.5; }
.panel .p-list { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 12px; max-width: 760px; }
.panel .p-list li { list-style: none; font-size: 14px; color: var(--text-dk);
  border: 1px solid var(--line-dk); border-radius: 980px; padding: 9px 16px; backdrop-filter: blur(4px); background: rgba(244,242,236,0.04); }

/* ---- solid navy panel (no media) ---- */
.panel.area-solid { background: var(--navy); align-items: center; }
.panel.area-solid .p-body { padding-bottom: 0; }

/* ---- light-theme panel (e.g. 01 Societário): white bg, image faded on the right ---- */
.panel.area-light { background: var(--ivory); }
.panel.area-light .p-media {
  left: auto; right: 0; width: 48%;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 52%, #000 90%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(90deg, transparent 0%, #000 52%, #000 90%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-composite: intersect;
}
.panel.area-light .p-media image-slot { height: 100%; }
.panel.area-light .p-media .p-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; filter: saturate(0.92) contrast(1.02); }
.panel.area-light .p-media::after { display: none; }
.panel.area-light::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--ivory) 0%, rgba(255,255,255,0.85) 26%, rgba(255,255,255,0.35) 48%, rgba(255,255,255,0) 64%),
    linear-gradient(180deg, rgba(255,255,255,0) 46%, rgba(255,255,255,0.35) 100%);
}
.panel.area-light .p-body { z-index: 2; }
.panel.area-light .p-num { color: var(--accent); }
.panel.area-light h3 { color: var(--text-lt); }
.panel.area-light .p-desc { color: var(--dim-lt); }
.panel.area-light .p-list li { color: var(--text-lt); background: rgba(15,31,70,0.04); border: 1px solid rgba(15,31,70,0.14); backdrop-filter: none; }
@media (max-width: 860px) {
  .panel.area-light .p-media { left: 0; width: 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%); }
  .panel.area-light::before { background:
    linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 34%, rgba(255,255,255,0.55) 70%, var(--ivory) 100%); }
}

/* ============ panel 03 — keys video (LIGHT theme, hero-style faded panel) ============ */
.keys-panel { background: var(--ivory); }
/* left wash — keeps the white text side clean and lets the video melt into the ivory */
.keys-panel::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--ivory) 0%, rgba(255,255,255,0.85) 24%, rgba(255,255,255,0.35) 46%, rgba(255,255,255,0) 62%),
    linear-gradient(180deg, rgba(255,255,255,0) 46%, rgba(255,255,255,0.35) 100%);
}
.keys-panel .keys-media {
  left: auto; right: 0; width: 44%;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 54%, #000 90%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(90deg, transparent 0%, #000 54%, #000 90%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
          mask-composite: intersect;
}
.keys-panel .keys-media::after { display: none; }   /* fade mask handles separation */
.keys-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; filter: brightness(1.04) contrast(1.02) saturate(1); }
/* canvas overlays the video to render the mouse-scrubbed playback */
.keys-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; filter: brightness(1.04) contrast(1.02) saturate(1); }
.keys-canvas.on + .keys-video, .keys-media:has(.keys-canvas.on) .keys-video { opacity: 0; }
/* the video area invites horizontal scrubbing */
.keys-media { cursor: none; }

/* light-theme text */
.keys-panel .p-body { z-index: 2; }
.keys-panel h3 { color: var(--text-lt); text-shadow: none; }
.keys-panel .p-desc { color: var(--dim-lt); text-shadow: none; }
.keys-panel .p-num { color: var(--accent); text-shadow: none; }
.keys-panel .p-list li { color: var(--text-lt); background: rgba(15,31,70,0.04); border: 1px solid rgba(15,31,70,0.14); backdrop-filter: none; }

@media (max-width: 860px) {
  .keys-panel::before { background:
    linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 34%, rgba(255,255,255,0.55) 70%, var(--ivory) 100%); }
  .keys-panel .keys-media { left: 0; width: 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%); }
}

/* ============ stats / by the numbers ============ */
.metrics { text-align: center; }
.metrics .kicker { display: block; }
.metrics h2 { font-size: clamp(32px, 4.6vw, 64px); max-width: 18ch; margin: 18px auto 0; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 5vw, 80px); margin-top: clamp(60px, 9vh, 110px); }
.metric .n { font-size: clamp(54px, 8vw, 120px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.metric .n em { font-style: normal; color: var(--accent-2); font-size: 0.55em; vertical-align: super; }
.metric .n .pre { font-size: 0.42em; vertical-align: middle; color: var(--dim-dk); margin-right: 4px; }
.metric .l { margin-top: 18px; font-size: 14px; letter-spacing: 0.04em; color: var(--dim-dk); }
@media (max-width: 760px) { .metric-grid { grid-template-columns: 1fr; gap: 50px; } }

/* ============ approach ============ */
.approach h2 { font-size: clamp(32px, 4.8vw, 66px); max-width: 16ch; }
.appr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(50px, 8vh, 96px); }
.appr-card { border-top: 1px solid var(--line-lt); padding-top: 24px; }
.appr-card .cn { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--accent); }
.appr-card h3 { font-size: clamp(22px, 2.1vw, 30px); margin: 16px 0 12px; letter-spacing: -0.02em; }
.appr-card p { color: var(--dim-lt); font-size: 16px; line-height: 1.55; }
@media (max-width: 760px) { .appr-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ============ equipe ============ */
.team-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 54px; }
.team-head h2 { font-size: clamp(34px, 5vw, 72px); }
.team-head p { max-width: 32ch; color: var(--dim-dk); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.member .ph { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: 14px; background: #14182a; }
.member image-slot { width: 100%; height: 100%; transition: transform .9s var(--ease); }
.member:hover image-slot { transform: scale(1.05); }
.member .m-name { font-size: 21px; margin-top: 18px; font-weight: 600; letter-spacing: -0.02em; }
.member .m-role { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin-top: 7px; }
.member .m-tag { font-size: 14px; color: var(--dim-dk); margin-top: 9px; }
@media (max-width: 860px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ quote ============ */
.quote { text-align: center; }
.quote blockquote { font-size: clamp(28px, 4.6vw, 64px); line-height: 1.14; font-weight: 600; letter-spacing: -0.03em; max-width: 20ch; margin: 0 auto; }
.quote blockquote .accent { color: var(--accent-2); }
.quote .by { margin-top: 40px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim-dk); }

/* ============ contato ============ */
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact h2 { font-size: clamp(38px, 5.6vw, 86px); letter-spacing: -0.035em; }
.contact .c-info { margin-top: clamp(36px, 6vh, 60px); display: flex; flex-direction: column; gap: 0; }
.info { padding: 18px 0; border-bottom: 1px solid var(--line-lt); }
.info .il { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 6px; }
.info .iv { font-size: 17px; line-height: 1.5; }
.form { display: flex; flex-direction: column; }
.field { position: relative; border-bottom: 1px solid var(--line-dk); padding: 20px 0 11px; }
.field label { position: absolute; top: 20px; left: 0; font-size: 16px; color: var(--dim-dk-2); pointer-events: none; transition: all .35s var(--ease); }
.field input, .field textarea { width: 100%; background: transparent; border: none; outline: none; resize: none; font-family: var(--sans); font-size: 17px; color: var(--text-dk); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 0; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2);
}
.field.focus { border-color: var(--accent-2); }
.form .btn { margin-top: 32px; align-self: flex-start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ============ footer ============ */
.footer { background: var(--black); color: var(--text-dk); padding: clamp(70px,9vh,120px) 0 46px; border-top: 1px solid var(--line-dk); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 64px; border-bottom: 1px solid var(--line-dk); }
.footer .f-logo { font-family: var(--serif); font-size: 56px; letter-spacing: 0.12em; font-weight: 600; }
.footer .f-tag { color: var(--dim-dk); margin-top: 16px; max-width: 34ch; font-size: 15px; }
.footer .f-col h4 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim-dk-2); margin-bottom: 18px; }
.footer .f-col a, .footer .f-col p { display: block; color: var(--dim-dk); font-size: 15px; margin-bottom: 11px; transition: color .3s; }
.footer .f-col a:hover { color: var(--text-dk); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding-top: 28px; flex-wrap: wrap; font-size: 12px; color: var(--dim-dk-2); }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr; gap: 40px; } }

/* ============ reveal ============ */
.fade { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease-io), transform 1.1s var(--ease-io); }
.fade.in { opacity: 1; transform: none; }
.fade.d1 { transition-delay: .1s; } .fade.d2 { transition-delay: .2s; } .fade.d3 { transition-delay: .3s; } .fade.d4 { transition-delay: .4s; }

/* line mask for hero */
.mask { display: block; overflow: hidden; }
.mask > span { display: block; transform: translateY(110%); transition: transform 1.15s var(--ease-io); }
.mask.in > span { transform: none; }
.mask.d1 > span { transition-delay: .12s; } .mask.d2 > span { transition-delay: .24s; } .mask.d3 > span { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .fade, .mask > span { opacity: 1 !important; transform: none !important; }
}
