/* ============================================================
   Effective Code — effectivecode.co.uk
   Light editorial / Swiss. Crimson accent.
   Fraunces (display) · Hanken Grotesk (text) · JetBrains Mono (label)
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--flame); color: #fff; }

/* ---- Tokens ---- */
:root {
  --paper:   #F4F1E9;   /* warm bone */
  --paper-2: #ECE8DD;   /* slightly deeper panel */
  --ink:     #16130F;   /* warm near-black */
  --ink-70:  rgba(22,19,15,.66);
  --ink-45:  rgba(22,19,15,.45);
  --line:    rgba(22,19,15,.14);
  --line-2:  rgba(22,19,15,.08);
  --flame:   #E0381F;   /* crimson */
  --flame-d: #B72A14;

  --fk: "Fraunces", Georgia, serif;
  --gr: "Hanken Grotesk", system-ui, sans-serif;
  --mo: "JetBrains Mono", ui-monospace, monospace;

  --pad: clamp(20px, 5vw, 80px);
  --maxw: 1320px;

  --ease: cubic-bezier(.16,.84,.34,1);
}

/* ---- Base ---- */
body {
  font-family: var(--gr);
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.55;
  font-weight: 420;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* ---- Typography helpers ---- */
.mono {
  font-family: var(--mo);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
}
.serif { font-family: var(--fk); font-optical-sizing: auto; }

h1, h2, h3 { font-family: var(--fk); font-optical-sizing: auto; font-weight: 460; letter-spacing: -0.02em; line-height: 1.02; }

.display {
  font-size: clamp(2.7rem, 7.4vw, 6.6rem);
  font-weight: 430;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.display em { font-style: italic; font-weight: 430; color: var(--flame); }

.sect-h {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.0;
  letter-spacing: -0.028em;
  max-width: 16ch;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--gr); font-weight: 560; font-size: .95rem;
  letter-spacing: -0.01em;
  padding: .92em 1.5em;
  border-radius: 100px;
  border: 1px solid var(--ink);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
  will-change: transform;
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--flame); border-color: var(--flame); transform: translateY(-2px); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn--flame { background: var(--flame); border-color: var(--flame); color: #fff; }
.btn--flame:hover { background: var(--flame-d); border-color: var(--flame-d); transform: translateY(-2px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(244,241,233,.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: .6em; font-weight: 600; letter-spacing: -0.02em; font-size: 1.06rem; }
.brand .mark {
  width: 28px; height: 28px; flex: none;
  display: grid; place-items: center;
  background: var(--flame); color: #fff;
  border-radius: 7px;
  font-family: var(--fk); font-weight: 600; font-size: .95rem;
  font-style: italic;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a.lnk {
  font-size: .92rem; font-weight: 480; color: var(--ink-70);
  padding: .5em .85em; border-radius: 100px;
  transition: color .25s, background .25s;
}
.nav-links a.lnk:hover { color: var(--ink); background: var(--line-2); }
.nav-links .num { font-family: var(--mo); font-size: .62rem; color: var(--flame); margin-right: .35em; }
.nav-cta { margin-left: 10px; }
.burger { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(130px, 17vh, 200px) 0 clamp(60px, 8vh, 110px); position: relative; }
.hero .eyebrow { display: flex; align-items: center; gap: .8em; color: var(--ink-70); margin-bottom: clamp(26px, 4vh, 48px); }
.hero .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--flame); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0%,100%{ opacity:1; transform:scale(1);} 50%{ opacity:.35; transform:scale(.7);} }

.hero h1 { max-width: 19ch; }
.hero .lead {
  margin-top: clamp(28px, 4vh, 44px);
  max-width: 50ch; font-size: clamp(1.06rem, 1.5vw, 1.32rem);
  color: var(--ink-70); line-height: 1.5;
}
.hero .lead b { color: var(--ink); font-weight: 580; }
.hero-cta { margin-top: clamp(30px, 4.5vh, 48px); display: flex; gap: 14px; flex-wrap: wrap; }

/* hero load animation */
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; transform: translateY(110%); }
.loaded .reveal-line > span { animation: riseIn 1s var(--ease) forwards; }
@keyframes riseIn { to { transform: translateY(0); } }
.fade-up { opacity: 0; transform: translateY(20px); }
.loaded .fade-up { animation: fadeUp .9s var(--ease) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.d1{animation-delay:.15s} .d2{animation-delay:.27s} .d3{animation-delay:.39s}
.d4{animation-delay:.62s} .d5{animation-delay:.74s} .d6{animation-delay:.86s}

/* corner ticker */
.hero-meta {
  margin-top: clamp(56px, 9vh, 110px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}
.hero-meta .cell { background: var(--paper); padding: 22px 0; }
.hero-meta .k { font-family: var(--fk); font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.03em; }
.hero-meta .v { color: var(--ink-45); font-size: .82rem; margin-top: .2em; }

/* ============================================================
   CLIENTS / TRUST STRIP
   ============================================================ */
.clients { padding: clamp(34px,5vh,56px) 0; border-block: 1px solid var(--line); }
.clients .lab { color: var(--ink-45); margin-bottom: 26px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { display: flex; align-items: center; gap: clamp(40px, 6vw, 86px); padding-right: clamp(40px, 6vw, 86px); list-style: none; animation: slide 38s linear infinite; flex: none; }
.marquee:hover ul { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-100%); } }
.marquee li {
  font-family: var(--fk); font-weight: 500; font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; opacity: .55;
  transition: opacity .3s, color .3s;
}
.marquee li:hover { opacity: 1; color: var(--flame); }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section { position: relative; }
.sect-head { display: flex; align-items: baseline; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-top: clamp(70px, 11vh, 140px); }
.sect-head .idx { color: var(--flame); }
.sect-lead { max-width: 42ch; color: var(--ink-70); font-size: clamp(1rem,1.3vw,1.16rem); }

/* reveal on scroll */
.r { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.r.in { opacity: 1; transform: none; }
.r-2 { transition-delay: .08s; } .r-3 { transition-delay: .16s; } .r-4 { transition-delay: .24s; }

/* ============================================================
   SERVICES — two practices
   ============================================================ */
.practices { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: clamp(40px,6vh,72px); background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.practice { background: var(--paper); padding: clamp(30px, 3.4vw, 54px); display: flex; flex-direction: column; }
.practice .tag { display: inline-flex; align-items: center; gap: .6em; color: var(--ink-45); margin-bottom: 26px; }
.practice .tag .sq { width: 9px; height: 9px; border-radius: 2px; background: var(--flame); }
.practice h3 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); letter-spacing: -0.028em; }
.practice .who { font-family: var(--mo); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-45); margin-top: 14px; }
.practice .blurb { color: var(--ink-70); margin-top: 18px; max-width: 38ch; }
.svc-list { list-style: none; margin-top: 30px; border-top: 1px solid var(--line); }
.svc-list li { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); transition: padding-left .35s var(--ease), color .35s; }
.svc-list li:hover { padding-left: 12px; color: var(--flame); }
.svc-list li .n { font-family: var(--mo); font-size: .68rem; color: var(--flame); flex: none; width: 2.4em; }
.svc-list li .t { font-weight: 520; letter-spacing: -0.01em; }
.svc-list li .t small { display: block; font-weight: 420; color: var(--ink-45); font-size: .86rem; letter-spacing: 0; margin-top: 3px; transition: color .35s; }
.svc-list li:hover .t small { color: var(--ink-70); }
.practice .foot { margin-top: auto; padding-top: 34px; }

/* ============================================================
   WORK — case studies
   ============================================================ */
.work { margin-top: clamp(44px,6vh,80px); display: grid; gap: clamp(20px, 3vw, 34px); }
.case {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: var(--paper);
  transition: border-color .4s, box-shadow .4s, transform .4s var(--ease);
}
.case:hover { border-color: rgba(22,19,15,.28); box-shadow: 0 30px 60px -40px rgba(22,19,15,.4); transform: translateY(-4px); }
.case:nth-child(even) .case-media { order: 2; }
.case-body { padding: clamp(28px, 3vw, 52px); display: flex; flex-direction: column; }
.case .kick { display: flex; align-items: center; gap: 14px; color: var(--ink-45); }
.case .icon { width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line); }
.case h3 { font-size: clamp(1.8rem, 2.7vw, 2.7rem); letter-spacing: -0.03em; margin-top: 24px; }
.case .desc { color: var(--ink-70); margin-top: 16px; max-width: 42ch; }
.case .stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.case .stack span { font-family: var(--mo); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-70); border: 1px solid var(--line); border-radius: 100px; padding: .5em .9em; }
.case .links { margin-top: auto; padding-top: 30px; display: flex; gap: 22px; flex-wrap: wrap; }
.case .links a { display: inline-flex; align-items: center; gap: .5em; font-weight: 540; font-size: .92rem; border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.case .links a:hover { color: var(--flame); border-color: var(--flame); }
.case-media { position: relative; overflow: hidden; min-height: 340px; background: var(--paper-2); }
.case-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.case:hover .case-media img { transform: scale(1.05); }
.case-media .badge { position: absolute; top: 18px; left: 18px; z-index: 2; }
.badge { font-family: var(--mo); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; background: var(--paper); color: var(--ink); padding: .5em .8em; border-radius: 100px; border: 1px solid var(--line); }

/* Panel treatments for cases without a screenshot */
.case-media.panel { display: grid; place-items: center; }
.case-media.panel img { position: static; width: 46%; max-width: 200px; height: auto; aspect-ratio: 1; border-radius: 26px; box-shadow: 0 30px 60px -28px rgba(0,0,0,.55); transition: transform 1s var(--ease); }
.case:hover .case-media.panel img { transform: scale(1.05) rotate(-2deg); }
.case-media.wine { background: radial-gradient(120% 120% at 30% 20%, #8E1B2E 0%, #5C0F1C 60%, #3A0912 100%); }
.case-media.wine::before { content:""; position:absolute; inset:0; opacity:.5; background:
  radial-gradient(40% 30% at 80% 80%, rgba(255,180,180,.18), transparent 70%); }
.case-media.rose { background: radial-gradient(120% 120% at 30% 18%, #C98AA0 0%, #8A516A 55%, #5A3247 100%); }
.case-media.rose::before { content:""; position:absolute; inset:0; opacity:.55; background:
  radial-gradient(45% 35% at 78% 82%, rgba(255,230,235,.22), transparent 70%); }

/* grouped sub-section (e.g. the Lola Slug family) */
.workgroup { margin-top: clamp(30px, 4.5vw, 56px); }
.wg-head { margin-bottom: clamp(18px, 2.6vw, 30px); }
.wg-head .mono { display: block; color: var(--ink-45); margin-bottom: 12px; }
.wg-head h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -0.026em; max-width: 26ch; }

/* compact "more work" grid */
.work-more { margin-top: clamp(20px,3vw,34px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px,2vw,24px); }
.mini { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--paper); transition: border-color .35s, transform .35s var(--ease), box-shadow .35s; }
.mini:hover { border-color: rgba(22,19,15,.26); transform: translateY(-4px); box-shadow: 0 24px 48px -36px rgba(22,19,15,.45); }
.mini-media { position: relative; aspect-ratio: 4/3; overflow: hidden; display: grid; place-items: center; }
/* screenshots presented as a centered phone screen on a tinted panel */
.mini-media.shot { padding: clamp(30px, 4.5vw, 52px) 0 0; }
.mini-media.shot::after { content:""; position:absolute; inset:0; pointer-events:none; box-shadow: inset 0 -1px 0 var(--line); }
.mini-media.shot img {
  width: auto; height: 100%; max-height: 100%;
  object-fit: contain; object-position: bottom center;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 24px 50px -24px rgba(22,19,15,.55), 0 0 0 1px rgba(22,19,15,.06);
  transition: transform .8s var(--ease);
}
.mini:hover .mini-media.shot img { transform: translateY(-6px); }
.mini-media.flora { background: linear-gradient(165deg, #DCE6D8 0%, #C9D8C4 100%); }
.mini-media.lola  { background: linear-gradient(165deg, #F6E2C8 0%, #F1D2AE 100%); }
.mini-media.space { background: radial-gradient(120% 120% at 50% 0%, #20264A 0%, #0E1124 70%); }
.mini-media.space img { position: static; width: 58%; max-width: 150px; height: auto; }
/* app-icon tile */
.mini-media.app { background: linear-gradient(168deg, var(--paper) 0%, var(--paper-2) 100%); }
.mini-media.app .appicon {
  width: 42%; max-width: 126px; height: auto; aspect-ratio: 1;
  border-radius: 23%; object-fit: cover;
  box-shadow: 0 18px 36px -16px rgba(22,19,15,.5), 0 0 0 1px rgba(22,19,15,.07);
  transition: transform .55s var(--ease);
}
.mini:hover .mini-media.app .appicon { transform: translateY(-5px) scale(1.03); }
.mini-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.mini-body h4 { font-family: var(--fk); font-size: 1.4rem; letter-spacing: -0.02em; font-weight: 470; }
.mini-body .role { font-family: var(--mo); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--flame); margin-bottom: 10px; }
.mini-body p { color: var(--ink-70); font-size: .92rem; margin-top: 8px; }
.mini-body .mlink { margin-top: auto; padding-top: 18px; font-weight: 540; font-size: .86rem; display: inline-flex; gap: .4em; transition: color .3s; }
.mini:hover .mini-body .mlink { color: var(--flame); }

/* security engagements line in practice */
.engage { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.engage .lab { font-family: var(--mo); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 10px; }
.engage a { font-weight: 540; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.engage a:hover { color: var(--flame); border-color: var(--flame); }

/* ============================================================
   ABOUT — partners
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: clamp(44px,6vh,80px); background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.person { background: var(--paper); padding: clamp(26px,3vw,46px); }
.portrait {
  position: relative; width: clamp(118px, 13.5vw, 158px); aspect-ratio: 1/1;
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(165deg, #F6ECEA 0%, #EFE2DE 100%);
  box-shadow: inset 0 0 0 1px rgba(22,19,15,.06);
  margin-bottom: 26px;
}
.portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: center bottom;
  transition: transform 1.1s var(--ease);
}
.person:hover .portrait img { transform: scale(1.04); }
.person .role { color: var(--flame); margin-bottom: 12px; }
.person h3 { font-size: clamp(1.7rem,2.4vw,2.3rem); letter-spacing: -0.028em; }
.person .bio { color: var(--ink-70); margin-top: 16px; }
.person .skills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.person .skills span { font-size: .8rem; color: var(--ink-70); border: 1px solid var(--line); border-radius: 100px; padding: .42em .9em; }
.person .mailto { display: inline-flex; align-items: center; gap: .5em; margin-top: 26px; font-family: var(--mo); font-size: .78rem; letter-spacing: .02em; border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.person .mailto:hover { color: var(--flame); border-color: var(--flame); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding-bottom: clamp(70px, 11vh, 140px); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(34px, 5vw, 80px); margin-top: clamp(40px,6vh,72px); align-items: start; }
.contact h2 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); letter-spacing: -0.035em; line-height: .98; }
.contact h2 em { font-style: italic; color: var(--flame); }
.contact .sub { color: var(--ink-70); margin-top: 24px; max-width: 38ch; font-size: clamp(1rem,1.3vw,1.16rem); }
.contact .direct { margin-top: 36px; display: grid; gap: 14px; }
.contact .direct a { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 14px 0; transition: color .3s; }
.contact .direct a:last-child { border-bottom: 1px solid var(--line); }
.contact .direct a:hover { color: var(--flame); }
.contact .direct .who { font-family: var(--mo); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-45); }

form .field { position: relative; margin-bottom: 8px; }
form label { display: block; font-family: var(--mo); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 8px; }
form input, form textarea {
  width: 100%; font-family: var(--gr); font-size: 1rem; color: var(--ink);
  background: transparent; border: none; border-bottom: 1px solid var(--ink);
  padding: 10px 0 14px; transition: border-color .3s;
}
form input::placeholder, form textarea::placeholder { color: var(--ink-45); }
form input:focus, form textarea:focus { outline: none; border-color: var(--flame); }
form textarea { resize: vertical; min-height: 90px; }
form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
form .submit { margin-top: 30px; display: flex; align-items: center; gap: 20px; }
#success .ok, #success .err { font-size: .9rem; }
#success .ok { color: var(--flame-d); }
#success .err { color: #b00; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { border-top: 1px solid var(--line); padding: clamp(40px,6vh,70px) 0 40px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { max-width: 30ch; }
.foot-brand .big { font-family: var(--fk); font-size: clamp(2rem,4vw,3.2rem); letter-spacing: -0.03em; line-height: 1; }
.foot-brand p { color: var(--ink-45); margin-top: 16px; font-size: .9rem; }
.foot-cols { display: flex; gap: clamp(34px, 6vw, 86px); flex-wrap: wrap; }
.foot-col h4 { font-family: var(--mo); font-weight: 500; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 16px; }
.foot-col a, .foot-col span { display: block; font-size: .94rem; color: var(--ink-70); padding: 5px 0; transition: color .25s; }
.foot-col a:hover { color: var(--flame); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: clamp(40px,7vh,80px); padding-top: 26px; border-top: 1px solid var(--line); color: var(--ink-45); font-size: .82rem; }
.foot-bottom .mono { color: var(--ink-45); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .practices, .about-grid { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .case:nth-child(even) .case-media { order: 0; }
  .case-media { min-height: 300px; }
  .work-more { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .hero-meta .cell:nth-child(3), .hero-meta .cell:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .work-more { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; inset: 64px 12px auto 12px; padding: 14px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.35);
  }
  .nav-links.open a.lnk { padding: 14px; font-size: 1.05rem; }
  .nav-links.open .nav-cta { margin: 8px 0 0; }
  .nav-links.open .btn { width: 100%; justify-content: center; }
  .burger { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
  .burger span { width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s; }
  .burger.x span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
  .burger.x span:nth-child(2){ opacity: 0; }
  .burger.x span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }
  form .row2 { grid-template-columns: 1fr; gap: 8px; }
  .foot-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-line > span, .fade-up, .r { opacity: 1 !important; transform: none !important; }
}
