:root {
  /* Brand gold from Paul's logo sheet (霧面金); --gold-text is a darker shade that passes contrast on white. */
  --gold: #c5a880;
  --gold-text: #86683f;
  --ink: #14161c;
  --ink-soft: #1e2129;
  --text: #2b2d33;
  --muted: #62656d;
  --line: #e6e1d8;
  --paper: #ffffff;
  --paper-alt: #f7f4ee;
  --header-h: 76px;
  --radius: 4px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}

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

a {
  color: var(--gold-text);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.3;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

section[id] {
  scroll-margin-top: var(--header-h);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 8px;
}

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

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.button-gold {
  background: var(--gold);
  color: var(--ink);
}

.button-gold:hover {
  background: #d6bd99;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.button-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.button-outline {
  border-color: var(--ink);
  color: var(--ink);
}

.button-outline:hover {
  background: var(--ink);
  color: #fff;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 18px rgba(20, 22, 28, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.brand img {
  width: auto;
  height: 40px;
}

.site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav ul {
  display: flex;
  gap: 28px;
}

.site-nav ul a {
  position: relative;
  display: block;
  padding: 6px 0;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
}

.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.site-nav ul a:hover::after,
.site-nav ul a[aria-current="true"]::after {
  transform: scaleX(1);
}

.site-nav ul a[aria-current="true"] {
  color: var(--gold-text);
}

.nav-toggle {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 120% at 85% 20%, #2a2d36 0%, var(--ink) 60%);
  color: #fff;
}

.hero-lines {
  position: absolute;
  top: 50%;
  right: -60px;
  width: min(560px, 60vw);
  aspect-ratio: 220 / 169;
  transform: translateY(-50%);
  background: url("/assets/mark.png") center / contain no-repeat;
  opacity: 0.16;
}

.hero-inner {
  position: relative;
  padding-top: 120px;
  padding-bottom: 112px;
}

.eyebrow {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 20px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(34px, 5.4vw, 60px);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-lead {
  max-width: 560px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.licence-badge {
  display: inline-block;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid rgba(197, 168, 128, 0.4);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.licence-badge strong {
  color: var(--gold);
  font-weight: 600;
}

.licence-badge .sep {
  margin: 0 10px;
  color: rgba(197, 168, 128, 0.6);
}

/* Sections */

.section {
  padding: 104px 0;
}

.section-alt {
  background: var(--paper-alt);
}

.section-dark {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
}

.section-kicker {
  color: var(--gold-text);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-dark .section-kicker {
  color: var(--gold);
}

.section h2 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 72px;
  align-items: start;
}

.split-intro h3 {
  margin-top: 40px;
  font-size: 22px;
}

.split-intro p {
  margin-top: 16px;
  color: var(--muted);
}

.service-list li {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.service-list li:first-child {
  padding-top: 0;
}

.service-list h4,
.service-grid h4 {
  font-size: 18px;
}

.service-list h4::before,
.service-grid h4::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--gold);
}

.service-list p,
.service-grid p {
  margin-top: 8px;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}

.service-grid li {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.insight-card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--paper);
}

.insight-tag {
  color: var(--gold-text);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.insight-card h3 {
  margin-top: 8px;
  font-size: 20px;
}

.insight-card p:last-child {
  margin-top: 16px;
  color: var(--muted);
}

.about-lead {
  max-width: 720px;
  margin-top: 24px;
  font-size: 18px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin-top: 56px;
}

.pillars li {
  padding-top: 24px;
  border-top: 1px solid rgba(197, 168, 128, 0.45);
}

.pillars h3 {
  font-size: 20px;
}

.pillars p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.contact-inner > div > p:last-child {
  margin-top: 16px;
  color: var(--muted);
}

.contact-list {
  margin: 0;
}

.contact-list > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list > div:first-child {
  border-top: 1px solid var(--line);
}

.contact-list dt {
  color: var(--muted);
}

.contact-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
}

.contact-list a {
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  padding: 56px 0 32px;
  background: var(--ink-soft);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
  align-items: flex-start;
}

.footer-logo {
  width: auto;
  height: 44px;
}

.footer-facts p + p {
  margin-top: 4px;
}

.footer-name {
  color: #fff;
  font-size: 16px;
}

.site-footer a {
  color: var(--gold);
}

.footer-legal {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.footer-legal::before {
  content: "";
  display: block;
  margin-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal p + p {
  margin-top: 4px;
}

/* Narrow screens: the nav folds into a menu under the header. */

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .header-inner {
    justify-content: space-between;
  }

  .brand img {
    height: 34px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s, background-color 0.2s;
  }

  .nav-toggle-bar {
    position: relative;
  }

  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-bar::before {
    top: -7px;
  }

  .nav-toggle-bar::after {
    top: 7px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 8px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(20, 22, 28, 0.08);
  }

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

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav ul a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav ul a::after {
    display: none;
  }

  .nav-cta {
    align-self: flex-start;
  }

  .hero-inner {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .hero-lines {
    top: 24px;
    right: -80px;
    width: 340px;
    transform: none;
    opacity: 0.1;
  }

  .section {
    padding: 72px 0;
  }

  .split,
  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .insight-grid,
  .pillars {
    grid-template-columns: minmax(0, 1fr);
  }

  .pillars {
    gap: 32px;
    margin-top: 40px;
  }
}

@media (max-width: 560px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-nav {
    padding: 8px 16px 24px;
  }

  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-lead,
  .about-lead {
    font-size: 16px;
  }

  .licence-badge .sep {
    display: block;
    height: 0;
    margin: 0;
    overflow: hidden;
  }
}

/* 404 page */

.not-found {
  min-height: 100vh;
}

.not-found-logo {
  width: auto;
  height: 48px;
  margin-bottom: 56px;
}

.not-found h1 {
  font-family: var(--serif);
  font-size: 36px;
}

.not-found p {
  margin-top: 16px;
  color: var(--muted);
}

.not-found p:last-child {
  margin-top: 32px;
}
