:root {
  --paper: #f1ece4;
  --paper-soft: #f8f4ed;
  --ink: #122333;
  --muted: #667281;
  --navy: #102233;
  --navy-soft: #17344a;
  --gold: #b18a5a;
  --line: rgba(18, 35, 51, 0.14);
  --line-soft: rgba(18, 35, 51, 0.08);
  --shadow: 0 24px 60px rgba(18, 35, 51, 0.12);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --container: min(1220px, calc(100vw - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(177, 138, 90, 0.12), transparent 24%),
    linear-gradient(180deg, #f7f3ec 0%, #efe9e0 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(18, 35, 51, 0.06);
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(12px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 24px rgba(18, 35, 51, 0.05);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.14;
}

.brand-copy span:last-child {
  color: var(--muted);
  font-size: 0.8rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a:not(.button) {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: var(--navy-soft);
  border-color: var(--navy-soft);
}

.button-small {
  min-height: 2.7rem;
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--navy);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  padding: 1.2rem 0 0;
}

.hero-frame {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(177, 138, 90, 0.16), transparent 34%),
    linear-gradient(180deg, #102233 0%, #0c1a28 100%);
  color: #f5f4ef;
  box-shadow: 0 28px 72px rgba(12, 26, 40, 0.22);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: 2rem;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 600;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 9ch;
  font-size: clamp(3.6rem, 6.2vw, 6rem);
  line-height: 0.94;
}

h2 {
  max-width: 11ch;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.96;
}

h3 {
  font-size: 1.2rem;
}

.lead,
.editorial-head p,
.capability-row p,
.category-block p,
.process-steps p,
.profile-copy > p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.76;
}

.hero .lead {
  max-width: 36rem;
  color: rgba(245, 244, 239, 0.76);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

.hero-link {
  color: rgba(245, 244, 239, 0.8);
  font-size: 0.98rem;
  font-weight: 700;
}

.hero-visual {
  overflow: hidden;
  border-radius: 28px;
  min-height: 33rem;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-visual::after,
.categories-primary::after,
.categories-secondary::after,
.process-visual::after,
.profile-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 26, 40, 0.04) 0%, rgba(12, 26, 40, 0.18) 100%);
}

.hero-visual img,
.categories-primary img,
.categories-secondary img,
.process-visual img,
.profile-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-rail article {
  padding: 1.25rem 0.75rem 0 0;
}

.hero-rail article:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding-right: 1rem;
  margin-right: 1rem;
}

.hero-rail span,
.profile-table span,
.contact-line span {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(245, 244, 239, 0.52);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-rail strong,
.profile-table strong,
.contact-line strong {
  font-size: 0.98rem;
  line-height: 1.5;
}

.signal-band {
  padding: 1rem 0 0;
}

.signal-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.signal-layout p {
  margin: 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}

.section {
  padding: 5.3rem 0;
}

.editorial-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: 1.5rem;
  align-items: end;
}

.capability-list {
  margin-top: 2.1rem;
}

.capability-row {
  display: grid;
  grid-template-columns: 4rem minmax(220px, 0.48fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.capability-row:last-child {
  border-bottom: 1px solid var(--line);
}

.capability-row span,
.process-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(177, 138, 90, 0.14);
  color: #866033;
  font-size: 0.84rem;
  font-weight: 800;
}

.capability-row strong,
.process-steps strong,
.category-block strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.4;
}

.capability-row p,
.process-steps p {
  margin: 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.56fr) minmax(0, 0.8fr) minmax(220px, 0.36fr);
  gap: 1.25rem;
  align-items: start;
}

.categories-primary,
.categories-secondary,
.process-visual,
.profile-visual {
  overflow: hidden;
  position: relative;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.categories-primary {
  min-height: 39rem;
}

.categories-secondary {
  min-height: 16rem;
  align-self: end;
}

.categories-copy {
  padding: 1rem 0;
}

.category-block {
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.category-block:last-child {
  border-bottom: 1px solid var(--line);
}

.category-block p {
  margin: 0.45rem 0 0;
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 1.6rem;
  align-items: stretch;
}

.process-copy {
  padding: 1.6rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.process-steps {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.process-steps article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.process-steps article:last-child {
  border-bottom: 1px solid var(--line);
}

.process-visual {
  min-height: 33rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(380px, 1.1fr);
  gap: 1.6rem;
  align-items: center;
}

.profile-copy {
  padding: 1.3rem 0;
}

.profile-table {
  display: grid;
  gap: 0;
  margin-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.profile-table div {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.profile-table span,
.contact-line span {
  color: var(--muted);
}

.profile-visual {
  min-height: 31rem;
}

.contact-block {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.contact-heading {
  margin-bottom: 1.8rem;
}

.contact-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.contact-line {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.site-footer {
  padding: 1.4rem 0 2.5rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

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

@media (max-width: 1120px) {
  .hero-grid,
  .editorial-head-grid,
  .process-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .categories-grid {
    grid-template-columns: 1fr 1fr;
  }

  .categories-copy {
    grid-column: 1 / -1;
    order: -1;
  }

  .signal-layout,
  .contact-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(18, 35, 51, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .hero-rail,
  .signal-layout,
  .contact-columns {
    grid-template-columns: 1fr;
  }

  .hero-rail article:not(:last-child) {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
  }

  .capability-row {
    grid-template-columns: auto 1fr;
  }

  .capability-row p {
    grid-column: 2;
  }
}

@media (max-width: 700px) {
  .header-row {
    min-height: 4.6rem;
  }

  .hero-frame {
    padding: 1.25rem;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(2.8rem, 12vw, 4.6rem);
  }

  .hero-visual,
  .categories-primary,
  .categories-secondary,
  .process-visual,
  .profile-visual {
    min-height: 22rem;
  }

  .categories-grid,
  .signal-layout,
  .contact-columns {
    grid-template-columns: 1fr;
  }

  .footer-row {
    flex-direction: column;
  }
}

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

  .button,
  .nav-toggle span {
    transition: none;
  }
}
