/* Art direction: diplomatic cable — cool stone paper, dispatch type, seal red */
:root {
  --paper: #d4d6d1;
  --paper-deep: #c5c8c1;
  --fog: #e3e5e0;
  --ink: #14181c;
  --muted: #5a636b;
  --rule: rgba(20, 24, 28, 0.2);
  --seal: #6e2f2a;
  --seal-soft: #8a433c;
  --night: #0c1014;
  --night-mid: #171c22;
  --map-mist: rgba(212, 214, 209, 0.92);
  --font-display: "Newsreader", "Times New Roman", Georgia, serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
  --font-meta: "DM Mono", ui-monospace, monospace;
  --wrap: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 12% -10%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(180deg, var(--fog), var(--paper) 28%, var(--paper-deep));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--seal);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--fog);
  padding: 0.5rem 0.75rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.meta {
  font-family: var(--font-meta);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.35rem, 5.4vw, 4.1rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

h3 {
  font-size: 1.35rem;
}

.lede {
  font-size: 1.125rem;
  max-width: 38rem;
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
}

.lede-tight {
  max-width: 28rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--fog) 86%, transparent);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  width: var(--wrap);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-mark {
  font-family: var(--font-meta);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-desktop {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.35rem;
}

.nav-desktop a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-phone {
  display: none;
  font-family: var(--font-meta);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.menu-toggle {
  appearance: none;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-meta);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--rule);
  padding: 1rem var(--wrap) 1.25rem;
  background: var(--fog);
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.nav-mobile a {
  display: block;
  padding: 0.65rem 0;
  text-decoration: none;
  font-size: 1.15rem;
  font-family: var(--font-display);
}

.nav-mobile .btn {
  width: 100%;
  text-align: center;
}

@media (min-width: 880px) {
  /* True header-center nav: equal side rails, links in the middle track */
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .brand {
    justify-self: start;
  }

  /* Let the link list occupy the center grid column */
  .header-inner > nav {
    display: contents;
  }

  .nav-desktop {
    display: flex;
    justify-self: center;
    grid-column: 2;
  }

  .header-actions {
    justify-self: end;
    grid-column: 3;
  }

  .header-phone {
    display: inline;
  }

  .menu-toggle,
  .nav-mobile {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.7rem 1.05rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  color: inherit;
}

.btn-solid {
  background: var(--ink);
  color: var(--fog);
}

.btn-solid:hover {
  background: var(--seal);
  color: var(--fog);
}

.btn-ghost {
  background: transparent;
  border-color: color-mix(in srgb, currentColor 35%, transparent);
  color: inherit;
}

.btn-ghost:hover {
  border-color: currentColor;
  color: inherit;
}

.btn-on-dark.btn-ghost {
  color: var(--fog);
}

.btn-on-dark.btn-solid {
  background: var(--fog);
  color: var(--ink);
}

.btn-on-dark.btn-solid:hover {
  background: #fff;
  color: var(--ink);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

/* Hero — full-bleed map */
.hero-cable {
  position: relative;
  min-height: min(92vh, 720px);
  display: grid;
  align-items: end;
  color: var(--fog);
  overflow: hidden;
  background: var(--night);
}

.hero-cable__media {
  position: absolute;
  inset: 0;
}

.hero-cable__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  filter: saturate(0.85) contrast(1.05);
}

.hero-cable__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.55) 0%, rgba(8, 10, 14, 0.35) 35%, rgba(8, 10, 14, 0.82) 100%),
    radial-gradient(ellipse at 70% 20%, transparent 20%, rgba(8, 10, 14, 0.45) 75%);
}

.hero-cable__content {
  position: relative;
  z-index: 1;
  width: var(--wrap);
  margin: 0 auto;
  padding: 5.5rem 0 3.25rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 1.35rem;
  max-width: 12ch;
}

.hero-cable h1 {
  font-family: var(--font-body);
  font-weight: 450;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  letter-spacing: 0.01em;
  line-height: 1.35;
  max-width: 22rem;
  margin: 0 0 0.85rem;
  color: color-mix(in srgb, var(--fog) 92%, #9ab);
}

.hero-cable .support {
  max-width: 32rem;
  color: color-mix(in srgb, var(--fog) 72%, transparent);
  margin: 0;
  font-size: 1.02rem;
}

.hero-cable .cta-row {
  margin-top: 1.75rem;
}

/* Dispatch / proof */
.dispatch {
  border-block: 1px solid var(--rule);
  background: color-mix(in srgb, var(--fog) 55%, transparent);
}

.dispatch-inner {
  width: var(--wrap);
  margin-inline: auto;
  padding: 1.1rem 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 760px) {
  .dispatch-inner {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 1.5rem;
  }
}

.dispatch-label {
  font-family: var(--font-meta);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--seal);
  white-space: nowrap;
}

.dispatch-line {
  margin: 0;
  font-size: 0.98rem;
  color: color-mix(in srgb, var(--ink) 88%, var(--muted));
}

.dispatch-line span {
  color: var(--muted);
}

/* Sections */
.band {
  padding: 4.25rem 0;
}

.band-tight {
  padding: 3rem 0;
}

.band-night {
  background: var(--night);
  color: var(--fog);
}

.band-night .meta {
  color: color-mix(in srgb, var(--fog) 55%, transparent);
}

.band-night .case-index {
  border-top-color: rgba(227, 229, 224, 0.18);
}

.band-night .case-row {
  border-bottom-color: rgba(227, 229, 224, 0.18);
  color: var(--fog);
}

.band-night .case-row:hover {
  color: var(--fog);
}

.band-night .case-place {
  color: color-mix(in srgb, var(--fog) 50%, transparent);
}

.band-night .case-blurb {
  color: color-mix(in srgb, var(--fog) 68%, transparent);
}

.band-night .case-row:hover .case-title {
  color: #d4a39d;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-head .meta {
  margin-bottom: 0.65rem;
}

/* Practice — vertical brief, not numbered cards */
.brief-stack {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.brief {
  display: grid;
  gap: 0.75rem;
  padding: 1.65rem 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 800px) {
  .brief {
    grid-template-columns: 11rem 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.brief h3 {
  margin: 0;
  font-size: 1.45rem;
}

.brief p {
  margin: 0;
  max-width: 40rem;
  color: color-mix(in srgb, var(--ink) 86%, var(--muted));
}

/* Split dossier */
.dossier {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .dossier {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: end;
  }
}

.dossier-portrait {
  position: relative;
  background: var(--night-mid);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-width: 420px;
}

.dossier-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 10%;
  filter: grayscale(0.15) contrast(1.04);
}

.dossier-copy .meta {
  margin-bottom: 0.75rem;
}

.dossier-copy p + p {
  margin-top: 1rem;
}

.credentials {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.credentials li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  font-size: 0.95rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--rule);
}

.credentials .k {
  font-family: var(--font-meta);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}

/* Case index */
.case-index {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.case-row {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.case-row:hover {
  color: var(--ink);
}

.case-row:hover .case-title {
  color: var(--seal);
}

@media (min-width: 720px) {
  .case-row {
    grid-template-columns: 12rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
}

.case-place {
  font-family: var(--font-meta);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
  transition: color 0.2s var(--ease);
}

.case-blurb {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 78%, var(--muted));
  max-width: 42rem;
  font-size: 0.98rem;
}

.case-detail {
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}

.case-detail:first-of-type {
  border-top: 1px solid var(--rule);
}

.case-detail h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

/* Media wall */
.media-lede {
  margin-bottom: 2rem;
}

.outlet-columns {
  columns: 1;
  column-gap: 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .outlet-columns {
    columns: 2;
  }
}

@media (min-width: 960px) {
  .outlet-columns {
    columns: 3;
  }
}

.outlet-columns li {
  break-inside: avoid;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1.02rem;
}

.tape-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 700px) {
  .tape-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tape {
  position: relative;
  background: var(--night);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.tape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  filter: contrast(1.05) saturate(0.9);
}

.tape figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-meta);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

/* Contact */
.page-intro {
  padding: 3.5rem 0 1.5rem;
}

.page-intro h1 {
  max-width: 16ch;
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.lines {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.lines .label {
  display: block;
  font-family: var(--font-meta);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.lines a {
  text-decoration: none;
  font-size: 1.1rem;
}

.lines a:hover {
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 0.95rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-meta);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  font: inherit;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: color-mix(in srgb, var(--fog) 70%, #fff);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.contact-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-status {
  margin: 0.25rem 0 0;
  font-size: 0.98rem;
  color: var(--seal);
}

.form-row {
  display: grid;
  gap: 0.95rem;
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Final CTA */
.close-cable {
  padding: 4rem 0;
  text-align: left;
}

.close-cable h2 {
  max-width: 16ch;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.25rem 0 2.75rem;
  background: color-mix(in srgb, var(--paper-deep) 70%, var(--ink) 8%);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
  }
}

.site-footer .brand-name {
  font-size: 1.5rem;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-meta {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-meta);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.hero-cable__content > * {
  animation: rise 0.9s var(--ease) both;
}

.hero-cable__content > *:nth-child(2) {
  animation-delay: 0.08s;
}

.hero-cable__content > *:nth-child(3) {
  animation-delay: 0.14s;
}

.hero-cable__content > *:nth-child(4) {
  animation-delay: 0.2s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-cable__content > * {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

.mt-0 {
  margin-top: 0;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.prose p {
  max-width: 42rem;
}

.prose p + p {
  margin-top: 1rem;
}

.memberships {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  max-width: 36rem;
}

.memberships li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.98rem;
}
