:root {
  --paper: #e9e8e4;
  --paper-pure: #ffffff;
  --navy: #1d3a5f;
  --navy-deep: #162c49;
  --ink: #1b2c43;
  --ink-soft: #53607a;
  --ink-faint: #8b93a4;
  --line: #d6d4ce;
  --accent: #a8481f;
  --accent-2: #ac8159;
  --slate: #3b556f;
  --max: 1320px;
  --gutter: clamp(1.5rem, 5vw, 6rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 400;
  font-feature-settings: 'cv05', 'ss01';
}

::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.5s var(--ease);
}
header.scrolled { box-shadow: 0 8px 28px rgba(10, 22, 40, 0.22); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.mark { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; letter-spacing: 0.14em; font-size: 0.82rem; text-transform: uppercase; }
.mark .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; flex: none; }
header .mark { color: var(--paper); }
header .mark {
  display: block; width: 215px; height: 36px;
  background: url("logo.png") left center / auto 30px no-repeat;
  font-size: 0; color: transparent;
}
header .mark .dot { display: none; }
nav.menu { display: flex; gap: 2.4rem; }
nav.menu a { font-size: 0.86rem; letter-spacing: 0.01em; transition: color 0.3s var(--ease); position: relative; }
header nav.menu a { color: rgba(233, 232, 228, 0.7); }
header nav.menu a:hover, header nav.menu a.active { color: var(--paper); }
header nav.menu a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--accent); transition: width 0.3s var(--ease); }
header nav.menu a:hover::after, header nav.menu a.active::after { width: 100%; }
.menu-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 500;
  padding: 0.95rem 1.6rem; border-radius: 100px; transition: all 0.35s var(--ease); letter-spacing: 0.01em;
  cursor: pointer; border: none; font-family: inherit;
}
.btn-primary { background: var(--navy); color: var(--paper); }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.hero { padding-top: clamp(9rem, 22vh, 14rem); padding-bottom: clamp(5rem, 12vh, 9rem); }

.hero-photo {
  position: relative; padding-top: 7rem; padding-bottom: 4rem;
  min-height: clamp(580px, 84vh, 840px); display: flex; align-items: center; overflow: hidden;
  background: var(--paper);
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  background: url("hero.jpg") right center / cover no-repeat;
  animation: kenburns 26s ease-in-out infinite alternate; will-change: transform;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero-photo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, rgba(233,232,228,0.97) 0%, rgba(233,232,228,0.92) 26%, rgba(233,232,228,0.5) 48%, rgba(233,232,228,0) 66%);
}
.hero-photo .wrap { position: relative; z-index: 2; width: 100%; }
.hero-photo .copy { max-width: 38rem; }
.hero-photo h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); max-width: 16ch; }
@media (max-width: 860px) {
  .hero-photo { min-height: 0; padding-top: clamp(8rem, 18vh, 11rem); padding-bottom: clamp(3rem, 8vh, 5rem); }
  .hero-media { background-position: 74% center; }
  .hero-photo::before { background: linear-gradient(180deg, rgba(233,232,228,0.96) 0%, rgba(233,232,228,0.82) 42%, rgba(233,232,228,0.55) 100%); }
  .hero-photo .copy { max-width: none; }
}
.eyebrow {
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint); display: flex; align-items: center; gap: 0.8rem; margin-bottom: 2.2rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); display: inline-block; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.1rem); line-height: 1.02; font-weight: 500; letter-spacing: -0.025em; max-width: 17ch; color: var(--navy); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede { margin-top: 2.2rem; max-width: 54ch; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-soft); font-weight: 400; line-height: 1.55; }
.hero .actions { margin-top: 3rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.page-head { padding-top: clamp(8rem, 18vh, 11rem); padding-bottom: clamp(2.5rem, 6vh, 4rem); }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; font-weight: 500; letter-spacing: -0.025em; max-width: 20ch; color: var(--navy); }
.page-head p.lede { margin-top: 1.8rem; max-width: 60ch; font-size: clamp(1.02rem, 1.8vw, 1.2rem); color: var(--ink-soft); line-height: 1.6; }

section { padding-block: clamp(4rem, 10vh, 7rem); }
.sec-label {
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 3rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.sec-label span:last-child { font-variant-numeric: tabular-nums; flex: none; }

.services { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem) clamp(3rem, 7vw, 7rem); }
.service { position: relative; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.service::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.5s var(--ease); }
.service:hover::before { width: 64px; }
.service .idx { font-size: 0.8rem; color: var(--accent); letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.service h3 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 500; letter-spacing: -0.02em; margin-top: 0.9rem; color: var(--navy); transition: color 0.35s var(--ease); }
.service:hover h3 { color: var(--accent); }
.service p { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.65; max-width: 46ch; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

.blocks { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.block { display: grid; grid-template-columns: minmax(0, 16rem) 1fr; gap: clamp(1rem, 4vw, 4rem); align-items: start; padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: none; padding-bottom: 0; }
.block h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 500; letter-spacing: -0.02em; color: var(--navy); }
.block .body { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; max-width: 60ch; }
.block .body p + p { margin-top: 1.1rem; }
.block .body strong { color: var(--ink); font-weight: 500; }
@media (max-width: 760px) { .block { grid-template-columns: 1fr; gap: 1rem; } }

.list-grid { columns: 2; column-gap: clamp(2rem, 6vw, 5rem); }
.list-grid li { break-inside: avoid; list-style: none; padding: 0.85rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1rem; display: flex; align-items: baseline; gap: 0.75rem; }
.list-grid li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
@media (max-width: 620px) { .list-grid { columns: 1; } }

.proof { background: var(--navy-deep); color: var(--paper); border-radius: 22px; }
.proof .inner { padding: clamp(3rem, 8vh, 5.5rem) clamp(1.8rem, 5vw, 4rem); }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); }
.figure .n { font-size: clamp(3rem, 8vw, 5.6rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.figure .n small { font-size: 0.45em; font-weight: 400; vertical-align: super; color: var(--accent-2); margin-left: 0.1em; }
.figure .cap { margin-top: 1.1rem; color: rgba(233, 232, 228, 0.62); font-size: 0.98rem; max-width: 34ch; line-height: 1.6; }
.figure .lbl { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(233, 232, 228, 0.42); margin-bottom: 1.2rem; }
@media (max-width: 640px) { .figures { grid-template-columns: 1fr; gap: 3rem; } }

.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.quote { background: var(--paper-pure); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.8rem, 4vw, 2.6rem); display: flex; flex-direction: column; justify-content: flex-start; min-height: 210px; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease); }
.quote:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(22, 44, 73, 0.10); border-color: var(--accent); }
.quote .stars { color: var(--navy); font-size: 0.95rem; letter-spacing: 3px; line-height: 1; margin-bottom: 1.1rem; }
.quote blockquote { font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 400; letter-spacing: -0.015em; line-height: 1.4; color: var(--navy); }
.quote .who { margin-top: auto; padding-top: 1.5rem; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 640px) { .quotes { grid-template-columns: 1fr; } }

.roles { display: grid; gap: 1rem; }
.role { background: var(--paper-pure); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.6rem, 4vw, 2.4rem) clamp(1.8rem, 4vw, 2.6rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease); }
.role:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(22, 44, 73, 0.10); border-color: var(--accent); }
.role h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 500; letter-spacing: -0.015em; color: var(--navy); }
.role p { color: var(--ink-faint); font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.5rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }
.detail { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.detail:first-child { border-top: none; padding-top: 0; }
.detail .k { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.6rem; }
.detail .v { font-size: 1.08rem; color: var(--ink); line-height: 1.6; }
.detail .v a { color: var(--accent); }
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.6rem; }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink); background: var(--paper-pure);
  border: 1px solid var(--line); border-radius: 12px; padding: 0.85rem 1rem; transition: border-color 0.3s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.field textarea { resize: vertical; min-height: 130px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
.form-status { margin-top: 1rem; font-size: 0.95rem; line-height: 1.55; display: none; }
.form-status.ok { display: block; color: var(--navy); }
.form-status.err { display: block; color: var(--accent); }

.doc-list { display: grid; gap: 0; max-width: 70ch; }
.doc-list li { list-style: none; padding: 0.85rem 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6; display: flex; gap: 0.8rem; align-items: baseline; }
.doc-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
.doc-p { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.75; max-width: 68ch; }
.doc-p + .doc-p { margin-top: 1.1rem; }
.meta-row { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.6rem; }
.meta-row .tag { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.apply-note { background: var(--navy-deep); color: var(--paper); border-radius: 16px; padding: 1.3rem 1.6rem; display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.apply-note p { font-size: 0.98rem; line-height: 1.55; max-width: 52ch; }
.apply-note a { color: var(--accent-2); }
.apply-note .btn-primary { background: var(--paper); color: var(--navy); }
.apply-note .btn-primary:hover { background: var(--accent); color: var(--paper); }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 1.6rem; transition: color 0.3s var(--ease); }
.back-link:hover { color: var(--navy); }

.cta { text-align: center; }
.cta h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 500; letter-spacing: -0.025em; max-width: 18ch; margin: 0 auto; line-height: 1.08; color: var(--navy); }
.cta p { margin: 1.6rem auto 0; max-width: 46ch; color: var(--ink-soft); font-size: 1.08rem; }
.cta .actions { margin-top: 2.8rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

footer { border-top: 1px solid var(--line); padding-block: 3.5rem; margin-top: 2rem; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.2fr; gap: 2.5rem; align-items: start; }
.foot .mark { color: var(--navy); }
.foot .fine { margin-top: 1.1rem; font-size: 0.8rem; color: var(--ink-faint); line-height: 1.7; max-width: 30ch; }
.foot-col h4 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; margin-bottom: 0.9rem; }
.foot-col p + h4 { margin-top: 1.7rem; }
.foot-col nav { display: flex; flex-direction: column; gap: 0.7rem; }
.foot-col nav a { font-size: 0.92rem; color: var(--ink-soft); transition: color 0.3s var(--ease); }
.foot-col nav a:hover { color: var(--navy); }
.foot-col p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.7; }
.foot-col p a { color: var(--accent); }
.foot-col p a:hover { color: var(--navy); }
.foot-legal { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--ink-faint); }
@media (max-width: 820px) { .foot { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 200; transition: width 0.1s linear; }

.to-top { position: fixed; bottom: 1.6rem; right: 1.6rem; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--paper); font-size: 1.15rem; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.3s var(--ease); z-index: 95; box-shadow: 0 12px 30px rgba(22, 44, 73, 0.25); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); transform: translateY(-2px); }

.figure .n .count { font-variant-numeric: tabular-nums; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 760px) {
  nav.menu { position: fixed; inset: 0; background: var(--navy-deep); flex-direction: column; justify-content: center; align-items: center; gap: 2rem; transform: translateX(100%); transition: transform 0.5s var(--ease); }
  nav.menu.open { transform: none; }
  header .mark { width: 178px; background-size: auto 25px; }
  header nav.menu a { font-size: 1.3rem; color: var(--paper); }
  header nav.menu a::after { display: none; }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; z-index: 110; padding: 6px; }
  .menu-toggle span { width: 24px; height: 1.5px; background: var(--paper); display: block; transition: transform 0.4s var(--ease), opacity 0.3s var(--ease); }
  .menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}
