/* Design: soft rounded cards + hairline borders + Inter / Instrument Serif.
   Palette is unchanged: black ink, off-white bg, red / blue / orange accents. */
:root {
  --bg: #f9f9f6;
  --fg: #000;
  --grey: #f0f0f0;
  --red: #ef1b26;
  --blue: #0a50a1;
  --orange: #f7941d;
  --muted: #6b7280;
  --line: rgba(0,0,0,.08);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.06);
  --shadow-hover: 0 2px 6px rgba(0,0,0,.05), 0 24px 50px rgba(0,0,0,.13);
  --serif: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;   /* headings */
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;    /* body / UI */
  --mono: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;    /* small labels */
  --script: 'Instrument Serif', Georgia, serif;                         /* italic accent */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2rem); }
.wrap--wide { max-width: 80rem; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(249,249,246,.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: 90rem; margin: 0 auto; padding: .85rem 2rem;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
}
.nav__brand {
  justify-self: start; display: flex; align-items: center; gap: .9rem; text-decoration: none;
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem;
}
.nav__brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.nav__links { display: contents; }
.nav__center { display: flex; align-items: center; gap: 2.6rem; }
.nav__center a, .nav__cta {
  text-decoration: none; font-weight: 600; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .22em;
}
.nav__center a { color: rgba(0,0,0,.6); transition: color .2s; }
.nav__center a:hover { color: var(--blue); }
.nav__cta {
  justify-self: end; color: #fff; background: var(--red); padding: .85rem 1.6rem; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(239,27,38,.28); transition: transform .25s, box-shadow .25s;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(239,27,38,.36); }
.nav__toggle { display: none; justify-self: end; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .65rem .6rem; cursor: pointer; box-shadow: var(--shadow); }
.nav__toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--fg); margin: 4px 0; }

@media (max-width: 1100px) {
  .nav__center { gap: 1.6rem; }
  .nav__inner { padding-inline: 1.25rem; }
}
@media (max-width: 960px) {
  .nav__inner { display: flex; justify-content: space-between; }
  .nav__toggle { display: block; }
  .nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(0,0,0,.08);
    flex-direction: column; align-items: stretch; padding: .5rem 1.25rem 1.25rem;
  }
  .nav__links.is-open { display: flex; }
  .nav__center { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__center a { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 1rem; text-align: center; }
}

/* ---------- SECTIONS ---------- */
.section { padding: 7rem 0; position: relative; }
.section--grey { background: var(--grey); }
.title {
  display: block; font-family: var(--serif); font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; text-transform: uppercase; letter-spacing: -.04em;
  color: var(--fg); margin-bottom: 3rem;
}
.title--invert { color: var(--bg); }
.group-title {
  font-family: var(--serif); font-size: .85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .24em; color: var(--red); margin: 0 0 2rem; padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.group-title--tight { margin-bottom: 1.25rem; }
.timeline + .group-title { margin-top: 1.5rem; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 999px; padding: .95rem 1.7rem;
  font: 600 .78rem var(--sans); text-transform: uppercase; letter-spacing: .18em;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.btn i { font-style: normal; transition: transform .25s; }
.btn:hover i { transform: translateX(5px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(239,27,38,.28); }
.btn--red:hover { box-shadow: 0 14px 30px rgba(239,27,38,.36); }
.btn--light { background: #fff; color: var(--fg); border-color: var(--line); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 8.5rem 1.25rem 4rem; text-align: center;
  background:
    radial-gradient(circle at 12% 20%, rgba(239,27,38,.09), transparent 26rem),
    radial-gradient(circle at 88% 82%, rgba(10,80,161,.08), transparent 30rem),
    var(--bg);
}
.hero__inner { max-width: 64rem; width: 100%; display: flex; flex-direction: column; align-items: center; }
.hero__badge {
  display: inline-block; background: rgba(239,27,38,.09); color: var(--red); font-weight: 700;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .32em; padding: .65rem 1.4rem; border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero__name { display: flex; flex-direction: column; align-items: center; font-size: clamp(2.8rem, 15vw, 8.6rem); line-height: 1; }
.hero__first {
  position: relative; z-index: 1; font-family: var(--script); font-style: italic; font-weight: 400;
  font-size: .98em; line-height: .9; letter-spacing: -.01em; margin-bottom: -.2em;
}
.hero__last {
  font-family: var(--serif); font-weight: 800; text-transform: uppercase; line-height: 1;
  letter-spacing: -.05em; overflow-wrap: anywhere;
}
.hero__menu {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.5rem; width: 100%; max-width: 62rem; margin-top: 3.5rem; text-align: left;
}
.hcard {
  --tone: var(--red);
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 13rem; padding: 1.75rem 1.9rem; background: #fff; text-decoration: none; color: var(--fg);
  border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
.hcard--blue { --tone: var(--blue); }
.hcard--orange { --tone: var(--orange); }
.hcard:hover, .hcard:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(0,0,0,.12); }
.hcard__eyebrow {
  display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--tone);
  opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s;
}
.hcard:hover .hcard__eyebrow, .hcard:focus-visible .hcard__eyebrow { opacity: 1; transform: none; }
.hcard__title { display: block; margin-top: .45rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.hcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.4rem; }
.hcard__sub { color: var(--muted); font-size: 1rem; font-weight: 500; }
.hcard__go {
  position: relative; z-index: 1; flex: none; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: var(--tone); color: #fff;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.hcard::after {
  content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%; right: -26px; bottom: -32px;
  background: var(--tone); opacity: 0; transform: scale(.3); transform-origin: 38% 38%;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .5s; pointer-events: none;
}
.hcard:hover::after, .hcard:focus-visible::after { opacity: .09; transform: scale(1); }
.hcard:hover .hcard__go { transform: translateX(3px); }
.hcard__go svg { width: 22px; height: 22px; }
@media (max-width: 700px) { .hero { padding-top: 7rem; } .hero__menu { margin-top: 2.5rem; } .hcard { min-height: 11rem; } }

/* ---------- WORK CARDS ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 2.25rem; }
.card {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; overflow: hidden;
}
.card:hover, .card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.card__img { aspect-ratio: 16 / 10; overflow: hidden; background: #ddd; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.05); }
/* Cards flagged fitImage in data.js: whole photo visible, blurred copy fills leftover space */
.card__img--fit { position: relative; }
.card__img--fit .card__img-blur {
  position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); max-width: none;
  object-fit: cover; filter: blur(24px) saturate(1.1); pointer-events: none;
}
.card__img--fit img:not(.card__img-blur) { position: relative; object-fit: contain; }
.card:hover .card__img--fit img, .card:hover .card__img--fit .card__img-blur { transform: none; }
.card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.card__tag {
  align-self: flex-start; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em;
  padding: .4rem .85rem; border-radius: 999px;
}
.card__client { font-family: var(--mono); font-size: .9rem; letter-spacing: 0; color: var(--muted); }
.card__title { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; line-height: 1.25; letter-spacing: -.02em; }
.card__title + .card__client { margin-top: -.35rem; }
.card__more { margin-top: auto; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--fg); }

/* ---------- MEDIA (poster cards) ---------- */
.cards--media { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 18rem)); }
.card--poster .card__img { aspect-ratio: 2 / 3; }
.modal__poster { max-width: 22rem; margin-inline: auto; }
@media (max-width: 600px) { .cards--media { justify-content: center; } }

/* ---------- APPS ---------- */
.app__panel { display: grid; place-items: center; aspect-ratio: 16 / 10; }
.card__img .app__icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 12px 28px rgba(0,0,0,.22); background: #fff; object-fit: cover; }
.card:hover .card__img .app__icon { transform: scale(1.08); }
.app__glyph {
  width: 112px; height: 112px; display: grid; place-items: center; background: #fff;
  border-radius: 26px; box-shadow: 0 12px 28px rgba(0,0,0,.22);
  font: 700 3.6rem/1 var(--serif);
}
.shots {
  display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 1.75rem 0 .5rem; padding: .25rem .25rem 1.1rem;
}
.shots img {
  flex: none; height: min(460px, 62vh); width: auto; scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); background: #fff;
}
.modal .chips li { box-shadow: none; }
.modal__section .chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.modal__section .chips li { padding: .5rem 1rem; line-height: 1.4; }
.modal__section .chips li::before { content: none; }
.modal__section .chips + p { margin-top: 1.25rem; }
.modal__hero.app__logo { width: 170px; height: 170px; object-fit: cover; border-radius: 30px; background: #fff; }

/* ---------- SLIDE DECK VIEWER (inside case-study popups) ---------- */
.deck { margin: 1.75rem 0; }
.deck__stage {
  position: relative; display: grid; place-items: center; overflow: hidden; background: #f0f0f0;
  border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); touch-action: pan-y;
}
.deck__poster { width: 100%; display: block; }
.deck__canvas { display: block; max-width: 100%; }
.deck__nav {
  position: absolute; top: 50%; margin-top: -24px; width: 48px; height: 48px; display: grid; place-items: center; padding: 0;
  background: #fff; color: var(--fg); border: 1px solid var(--line); border-radius: 50%; box-shadow: var(--shadow); cursor: pointer;
  opacity: 0; transition: opacity .25s, background .2s, color .2s;
}
.deck__nav svg { width: 20px; height: 20px; }
.deck__nav--prev { left: 14px; } .deck__nav--next { right: 14px; }
.deck__stage:hover .deck__nav, .deck__nav:focus-visible { opacity: 1; }
.deck__nav:hover:not(:disabled) { background: var(--red); color: #fff; border-color: var(--red); }
.deck__nav:disabled { opacity: 0 !important; cursor: default; }
@media (hover: none) { .deck__nav { opacity: .92; } }
.deck__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .75rem; font-size: .8rem; color: var(--muted); }
.deck__full {
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; cursor: pointer;
  font: 600 .7rem var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--fg); box-shadow: var(--shadow);
}
.deck__full:hover { background: var(--fg); color: #fff; }
.deck__stage:fullscreen { background: #000; border-radius: 0; border: 0; aspect-ratio: auto !important; }

/* ---------- WRITING (Chance-card style) ---------- */
[hidden] { display: none !important; }
.writing__more { margin-top: 3rem; text-align: center; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 2rem; }
.post {
  --tone: var(--red); display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.post--blue { --tone: var(--blue); }
.post--orange { --tone: var(--orange); }
.post:hover, .post:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.post__bar { height: 16px; background: var(--tone); }
.post__body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.post__date { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.post__title { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1.3; }
.post__excerpt { font-size: .9rem; line-height: 1.7; color: rgba(0,0,0,.75); }
.post__more { margin-top: auto; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--red); }

button.post { font: inherit; text-align: left; cursor: pointer; padding: 0; width: 100%; appearance: none; }
button.post:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.story__byline { font-weight: 700; margin-top: .75rem; }
.story__body { margin-top: 1.5rem; }
.story__body p { font-size: 1.05rem; line-height: 1.85; }
.story__body p + p { margin-top: 1.25rem; }

/* ---------- ABOUT ---------- */
.about-card {
  max-width: 56rem; background: #fff; border: 1px solid var(--line); border-radius: 32px;
  box-shadow: var(--shadow); padding: clamp(1.75rem, 5vw, 3.5rem);
  display: grid; gap: 1.75rem; font-size: clamp(1rem, 1.6vw, 1.1rem); line-height: 1.9;
}
.about-card__lead { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; line-height: 1.5; }
.about-card__close { font-weight: 700; color: var(--red); }

/* ---------- TIMELINE ---------- */
.timeline { position: relative; margin-bottom: 3.5rem; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; border-radius: 2px; background: rgba(0,0,0,.12); }
.tl { position: relative; display: flex; gap: 0; padding-left: 1.75rem; }
.tl::before {
  content: ''; position: absolute; left: 1px; top: 8px; width: 13px; height: 13px; transform: translateX(-50%);
  border-radius: 50%; border: 3px solid var(--bg); background: var(--blue); box-shadow: 0 0 0 1px var(--blue);
}
.tl__meta { display: flex; flex-direction: column; gap: .15rem; padding-top: .15rem; }
.tl__date { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--red); }
.tl__loc { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); }
.tl__body { padding-bottom: 3rem; }
.tl h4 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.5rem); text-transform: uppercase; line-height: 1.25; margin-bottom: .25rem; }
.tl__org { font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--blue); font-size: .85rem; margin-bottom: 1rem; }
.tl ul { display: grid; gap: .6rem; }
.tl li { position: relative; padding-left: 1.2rem; font-size: .92rem; line-height: 1.7; color: rgba(0,0,0,.78); }
.tl li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* Wide: dates in a left column, spine between */
@media (min-width: 720px) {
  .timeline::before { left: 280px; }
  .tl { padding-left: 0; }
  .tl::before { left: 281px; }
  .tl__meta { width: 280px; flex-shrink: 0; align-items: flex-end; padding-right: 2rem; text-align: right; }
  .tl__body { padding-left: 3rem; flex: 1; }
}
@media (max-width: 719px) {
  .tl { flex-direction: column; }
  .tl__meta { flex-direction: row; gap: .75rem; flex-wrap: wrap; align-items: baseline; margin-bottom: .5rem; }
}

/* ---------- SKILLS ---------- */
.skills { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); margin: 1rem 0 2.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li {
  border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; background: #fff;
}
.chips--blue li { background: var(--blue); color: #fff; border-color: var(--blue); }
.resume { text-align: center; }

/* ---------- TESTIMONIALS ---------- */
.carousel { position: relative; margin: 0 auto; padding-bottom: 3.5rem; }
.quote { display: none; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--shadow); overflow: hidden; }
.quote.is-active { display: block; animation: slideIn .4s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.quote__bar { height: 8px; background: var(--accent); }
.quote__body { padding: clamp(1.75rem, 5vw, 3.5rem); }
.quote blockquote { margin: 0 0 2rem; font-family: var(--serif); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.5rem); line-height: 1.5; }
.quote figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.quote__name { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: var(--accent); font-size: .9rem; }
.quote__title { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; color: var(--muted); margin-top: .2rem; }
.quote__links { display: flex; gap: .6rem; }
.quote__links a { border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; background: #fff; transition: background .2s, color .2s; }
.quote__links a:hover { background: var(--red); color: #fff; }
.carousel__btn {
  position: absolute; top: 0; bottom: 3.5rem; margin: auto 0; z-index: 2;
  width: 48px; height: 48px; display: grid; place-items: center; padding: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 50%; box-shadow: var(--shadow);
  color: var(--fg); cursor: pointer; transition: background .2s, color .2s, transform .25s, box-shadow .25s;
}
.carousel__btn svg { width: 20px; height: 20px; }
.carousel__btn:hover { background: var(--red); color: #fff; border-color: var(--red); box-shadow: var(--shadow-hover); }
.carousel__btn--prev { left: max(-76px, calc(8px - (100vw - 100%) / 2)); }
.carousel__btn--next { right: max(-76px, calc(8px - (100vw - 100%) / 2)); }
.carousel__btn--prev:hover { transform: translateX(-2px); }
.carousel__btn--next:hover { transform: translateX(2px); }
.carousel__dots { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: .6rem; }
.carousel__dots button { width: 12px; height: 12px; border: 0; border-radius: 50%; background: rgba(0,0,0,.18); padding: 0; cursor: pointer; transition: background .2s, transform .2s; }
.carousel__dots button[aria-selected="true"] { background: var(--red); }
@media (max-width: 700px) { .carousel__btn { display: none; } }

/* ---------- CONTACT ---------- */
.contact { background: var(--fg); color: var(--bg); padding: 6rem 0; }
.contact__box { border-top: 1px solid rgba(249,249,246,.35); border-bottom: 1px solid rgba(249,249,246,.35); }
.contact__box > div:first-child { border-bottom: 0; }
.contact__row { padding: 2rem .5rem; }
.contact__row + .contact__row { border-top: 1px solid rgba(249,249,246,.2); }
.contact__label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4em; color: rgba(249,249,246,.55); margin-bottom: .75rem; }
.contact__row a {
  display: block; font-family: var(--serif); font-weight: 700; line-height: 1.2; text-decoration: none; overflow-wrap: anywhere;
  font-size: clamp(1.1rem, 3.6vw, 2.8rem); transition: color .25s;
}
.contact__row a:hover { color: #5aa3f0; }

/* ---------- FOOTER ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 2rem 0; }
.footer__inner { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.footer__brand { display: flex; align-items: center; gap: .75rem; }
.footer__brand img { width: 48px; height: 48px; border-radius: 13px; }
.footer__brand strong { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; }
.footer__brand span { display: block; font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--red); }
.footer__links, .footer__social { display: flex; gap: 1.1rem; }
.footer a { text-decoration: none; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(0,0,0,.6); transition: color .2s; }
.footer a:hover { color: var(--blue); }

/* ---------- MODAL ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; overflow-y: auto; }
.modal::backdrop { background: rgba(0,0,0,.75); }
.modal[open] { display: flex; align-items: flex-start; justify-content: center; padding: 3vh 1rem; }
.modal__panel {
  position: relative; width: 100%; max-width: 56rem; background: var(--bg); overflow: hidden;
  border-radius: 32px; box-shadow: 0 30px 80px rgba(0,0,0,.4); animation: pop .3s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__bar { height: 12px; }
.modal__close {
  position: absolute; top: 28px; right: 16px; width: 42px; height: 42px; cursor: pointer; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 1rem; font-weight: 700;
}
.modal__close:hover { background: var(--red); color: #fff; }
.modal__content { padding: clamp(1.5rem, 4vw, 3rem); }
.modal__tag { display: inline-block; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; padding: .4rem .85rem; border-radius: 999px; }
.modal__client { font-family: var(--mono); font-size: 1rem; letter-spacing: 0; color: var(--muted); margin: 1rem 3rem .25rem 0; }
.modal__title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.5rem); line-height: 1.15; margin-right: 3rem; }
.modal__hero { margin: 1.75rem 0; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.modal__section { margin-top: 2rem; }
.modal__section h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; color: var(--fg); border-bottom: 1px solid var(--line); padding-bottom: .6rem; margin-bottom: 1rem; }
.modal__section p { line-height: 1.8; }
.modal__prose p + p { margin-top: 1rem; }
.modal__section ul { display: grid; gap: .55rem; }
.modal__section li { position: relative; padding-left: 1.2rem; line-height: 1.7; }
.modal__section li::before { content: ''; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--fg); }
.modal__videos { display: grid; gap: 1.25rem; margin-top: 2rem; }
.modal__videos .video { aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: #000; }
.modal__videos iframe { width: 100%; height: 100%; border: 0; }
.modal__actions { margin-top: 2.25rem; display: flex; gap: 1rem; flex-wrap: wrap; }
body.is-locked { overflow: hidden; }

/* ---------- REVEAL ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .quote.is-active, .modal__panel { animation: none; }
  * { transition-duration: .01ms !important; }
}
