:root {
  --paper: #ffffff;
  --ink: #14151f;
  --muted: #687083;
  --line: #e7e9f0;
  --wash: #f7f8fb;
  --blue: #2563eb;
  --green: #13a56b;
  --coral: #ff6b4a;
  --purple: #8b5cf6;
  --yellow: #f4bd3a;
  --shadow: 0 26px 70px rgba(20, 21, 31, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(20,21,31,.045) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(rgba(20,21,31,.035) 1px, transparent 1px) 0 0 / 88px 88px,
    var(--paper);
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; color: var(--muted); }
h1, h2, h3 { margin: 0; line-height: .98; }
h1, h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 700; letter-spacing: -.045em; }
h1 { font-size: clamp(3rem, 8vw, 7.6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 4.7rem); }
h3 { font-size: 1.35rem; letter-spacing: -.02em; }

.side-header {
  position: fixed;
  top: 22px;
  bottom: 22px;
  left: 22px;
  width: 178px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; line-height: 1; }
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 16px 16px 16px 4px;
  background: conic-gradient(from 140deg, var(--blue), var(--purple), var(--coral), var(--green), var(--blue));
  font-size: .9rem;
}
.site-nav { display: grid; gap: 8px; }
.site-nav a {
  position: relative;
  padding: 10px 12px;
  border-radius: 15px;
  color: #4d5568;
  font-weight: 800;
}
.site-nav a:hover, .site-nav a.active { color: var(--ink); background: var(--wash); }
.site-nav a.active::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  transform: translateY(-50%);
}
.rail-note { font-size: .78rem; font-weight: 800; color: var(--muted); }
.nav-toggle { display: none; border: 0; background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 13px; font-weight: 900; }

.page-shell {
  width: min(1160px, calc(100% - 262px));
  margin-left: max(232px, calc(232px + (100% - 1422px) / 2));
  margin-right: auto;
}

.home-hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: .22fr 1fr .43fr;
  gap: 28px;
  align-items: end;
  padding: 72px 0 56px;
}
.hero-label {
  min-height: 560px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.hero-label span { width: 3px; height: 155px; background: var(--blue); border-radius: 99px; }
.hero-headline {
  padding: 42px;
  border-left: 8px solid var(--yellow);
  background: rgba(255,255,255,.68);
}
.hero-aside {
  align-self: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: white;
  box-shadow: var(--shadow);
}
.hero-aside p { font-size: 1.08rem; }
.text-link { display: inline-flex; margin-top: 24px; color: var(--blue); font-weight: 900; }
.text-link::after { content: " ->"; }

.signal-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 10px 0 96px;
}
.signal {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.signal strong { font-family: 'Fraunces', serif; font-size: 2.7rem; line-height: 1; }
.signal span { font-weight: 900; }
.signal-blue { border-top: 6px solid var(--blue); }
.signal-green { border-top: 6px solid var(--green); }
.signal-coral { border-top: 6px solid var(--coral); }
.signal-yellow { border-top: 6px solid var(--yellow); }

.kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 20px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--purple);
  background: white;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.diagonal-section {
  position: relative;
  padding: 70px 44px;
  margin-bottom: 94px;
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: 52px;
  overflow: hidden;
  border-radius: 44px;
  background: var(--ink);
  color: white;
}
.diagonal-section::before {
  content: "";
  position: absolute;
  inset: -30% auto auto 48%;
  width: 620px;
  height: 620px;
  transform: rotate(25deg);
  background: linear-gradient(135deg, rgba(37,99,235,.8), rgba(139,92,246,.55), rgba(255,107,74,.55));
  opacity: .55;
}
.diagonal-section > * { position: relative; }
.diagonal-section p { color: rgba(255,255,255,.74); }
.diagonal-section .kicker { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); color: white; }
.flow-list { display: grid; gap: 14px; }
.flow-list article { padding: 24px; border-radius: 24px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.flow-list span { color: white; font-weight: 900; display: block; margin-bottom: 8px; }

.service-index { display: grid; grid-template-columns: .45fr 1fr; gap: 46px; margin-bottom: 90px; }
.narrow h2 { font-size: clamp(2.2rem, 4vw, 4.2rem); }
.index-list { display: grid; }
.index-list a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.index-list span { font-weight: 900; font-size: 1.45rem; }
.index-list em { color: var(--muted); font-style: normal; }
.index-list a:hover span { color: var(--blue); }

.bottom-cta, .address-panel {
  margin-bottom: 72px;
  padding: 38px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff, #f4f7ff);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.bottom-cta p { max-width: 620px; font-family: 'Fraunces', serif; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1; color: var(--ink); letter-spacing: -.035em; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 15px 23px;
  background: var(--ink);
  color: white;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.subpage-hero {
  min-height: 520px;
  padding: 90px 0 60px;
  display: grid;
  grid-template-columns: 1fr .44fr;
  gap: 50px;
  align-items: end;
}
.fact-sheet, .contact-card, .contact-form {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: white;
  box-shadow: var(--shadow);
}
.fact-sheet { padding: 28px; }
dl { margin: 0; display: grid; gap: 20px; }
dt { color: var(--muted); font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
dd { margin: 4px 0 0; font-weight: 900; }
.editorial-block { margin-bottom: 96px; }
.large-copy { max-width: 980px; color: var(--ink); font-size: clamp(1.55rem, 3vw, 3.25rem); line-height: 1.12; letter-spacing: -.04em; }
.split-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
.split-notes article { padding: 28px; border: 1px solid var(--line); border-radius: 28px; background: white; }
.split-notes h2 { font-size: 2rem; margin-bottom: 12px; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 90px; }
.principles article { padding: 26px; border-radius: 28px; min-height: 240px; background: white; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; }
.principles span { font-family: 'Fraunces', serif; font-size: 4rem; color: var(--blue); line-height: 1; margin-bottom: auto; }
.principles h3 { margin-bottom: 8px; }
.address-panel { display: block; }
.address-panel h2 { font-size: clamp(2rem, 4vw, 4.1rem); }

.services-intro > p, .contact-top > p { align-self: center; font-size: 1.15rem; }
.service-ledger { display: grid; gap: 16px; margin-bottom: 70px; }
.ledger-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: center;
  min-height: 210px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: white;
}
.ledger-item span { font-family: 'Fraunces', serif; font-size: 4rem; line-height: 1; }
.ledger-item h2 { font-size: clamp(2rem, 4vw, 4.2rem); margin-bottom: 10px; }
.accent-blue { border-left: 8px solid var(--blue); }
.accent-green { border-left: 8px solid var(--green); }
.accent-coral { border-left: 8px solid var(--coral); }
.accent-purple { border-left: 8px solid var(--purple); }
.accent-yellow { border-left: 8px solid var(--yellow); }
.accent-ink { border-left: 8px solid var(--ink); background: #fbfbfc; }
.method-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 80px; border: 1px solid var(--line); border-radius: 30px; overflow: hidden; background: white; }
.method-strip div { padding: 24px; border-right: 1px solid var(--line); }
.method-strip div:last-child { border-right: 0; }
.method-strip b { display: block; color: var(--coral); margin-bottom: 8px; }
.method-strip span { font-weight: 900; }

.contact-top { padding: 92px 0 52px; display: grid; grid-template-columns: 1fr .48fr; gap: 40px; align-items: end; }
.contact-workspace { display: grid; grid-template-columns: .42fr 1fr; gap: 20px; margin-bottom: 86px; }
.contact-card { padding: 30px; align-self: start; }
.contact-card h2 { font-size: 2.35rem; margin-bottom: 26px; }
.contact-form { padding: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row { display: grid; gap: 8px; margin-bottom: 18px; }
label { font-weight: 900; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 16px;
  background: var(--wash);
  color: var(--ink);
  font: inherit;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); background: white; box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.form-note { margin-top: 15px; font-size: .9rem; }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 32px;
  gap: 14px;
  min-height: 320px;
}
.form-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(37, 99, 235, .1);
  border: 1px solid rgba(37, 99, 235, .28);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 14px rgba(37, 99, 235, .04);
  margin-bottom: 8px;
}
.form-success h3 { font-size: 1.6rem; letter-spacing: -.04em; margin: 0; }
.form-success p { color: var(--muted); margin: 0; font-size: 1rem; line-height: 1.6; }

.site-footer {
  margin-bottom: 24px;
  padding: 22px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
}
.site-footer span { color: var(--muted); text-align: right; }

@media (max-width: 980px) {
  .side-header {
    position: sticky;
    top: 12px;
    left: auto;
    bottom: auto;
    width: min(100% - 24px, 1160px);
    margin: 12px auto 0;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    border-radius: 24px;
  }
  .brand br, .rail-note { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: grid; }
  .page-shell { width: min(100% - 30px, 1160px); margin-left: auto; margin-right: auto; }
  .home-hero, .subpage-hero, .service-index, .contact-top, .contact-workspace, .diagonal-section { grid-template-columns: 1fr; }
  .home-hero { min-height: auto; padding-top: 46px; }
  .hero-label { writing-mode: initial; transform: none; min-height: auto; align-items: center; }
  .hero-label span { width: 90px; height: 3px; }
  .hero-headline { padding: 28px; }
  .signal-row, .principles, .method-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(2.65rem, 18vw, 4.2rem); }
  .signal-row, .principles, .method-strip, .split-notes, .form-grid { grid-template-columns: 1fr; }
  .ledger-item { grid-template-columns: 1fr; }
  .bottom-cta, .site-footer { flex-direction: column; align-items: flex-start; }
  .site-footer span { text-align: left; }
}
