/* Aralia Group — araliagroup.com
   Palette sampled from the logo: wordmark ink #0C2C24, leaf greens #143C2C→#3C6C4C, gold #9C7C54→#DCC494. */
:root {
  --ink: #0E2F26;
  --forest-950: #071E18;
  --forest-900: #0B2720;
  --forest-800: #12382D;
  --forest-700: #1C4A3A;
  --leaf-d: #123B2D;
  --leaf-l: #2F5F46;
  --leaf-400: #5C8B70;
  --sage-200: #CFE0D3;
  --sage-100: #E5EEE7;
  --gold: #B89F73;
  --gold-deep: #8A6B3F;
  --gold-light: #D9C08F;
  --gold-50: #F3EBDA;
  --ivory: #F7F4EC;
  --paper: #FFFFFF;
  --white: #FFFFFF;
  --text: #1B2B25;
  --muted: #56655E;
  --line: rgba(14, 47, 38, .12);
  --line-strong: rgba(14, 47, 38, .22);
  --on-dark: #F3EFE4;
  --on-dark-muted: #A9C2B2;
  --line-dark: rgba(217, 192, 143, .18);

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 76px;
  --gutter: clamp(20px, 4vw, 40px);
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 400 17px/1.65 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--ink); text-wrap: balance; }
p, li { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold-50); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--ivory); padding: 10px 16px; border-radius: 10px; transition: transform 200ms var(--ease-out); }
.skip:focus { transform: translateY(76px); }

/* ---------- type ---------- */
.display-1, .display-2, .display-3, .display-4 { font-family: var(--serif); font-optical-sizing: auto; letter-spacing: -0.02em; }
.display-1 { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.75rem); line-height: 1.04; font-weight: 380; }
.display-2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem); line-height: 1.1; font-weight: 380; }
.display-3 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.3rem); line-height: 1.15; font-weight: 400; }
.display-4 { font-size: 1.45rem; line-height: 1.2; margin: 1.6em 0 .7em; }
.lede { font-size: clamp(1.06rem, 1rem + .35vw, 1.24rem); line-height: 1.6; color: var(--muted); max-width: 40em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--leaf-l); }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow-gold { color: var(--gold-light); }
.muted { color: var(--muted); }
.prose p { color: var(--muted); }
.prose-lg p { font-size: 1.1rem; }
.prose p:first-child { color: var(--text); }
.narrow { max-width: 46em; margin-top: 48px; }
.list-title { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf-l); margin: 0 0 18px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--leaf-l); }
.link .icon { width: 18px; height: 18px; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--ivory);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: .96rem; letter-spacing: -0.005em;
  cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn .icon { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn-primary { box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 8px 20px -10px rgba(7, 30, 24, .55); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-strong); }
.btn-gold { --bg: var(--gold-light); --fg: var(--forest-900); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { --bg: var(--forest-700); }
  .btn-ghost:hover { border-color: var(--ink); background: rgba(14,47,38,.04); }
  .btn-gold:hover { --bg: #E4CFA4; }
  .btn:hover .icon { transform: translateX(3px); }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  transition: background-color 240ms ease, box-shadow 240ms ease, backdrop-filter 240ms ease;
  view-transition-name: site-header;
}
.site-header[data-scrolled] { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.lockup-mark { width: 40px; height: auto; }
.lockup-text { display: grid; gap: 3px; }
.lockup-word { height: 23px; width: auto; }
.lockup-group { font-size: .62rem; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; color: var(--ink); padding-left: 2px; line-height: 1; }
.mark .mark-stem, .lockup-mark .mark-stem, svg .mark-stem { fill: var(--gold); }
svg .leaf-d { fill: var(--leaf-d); }
svg .leaf-l { fill: var(--leaf-l); }
.lockup-rev { color: var(--on-dark); }
.lockup-rev .lockup-group { color: var(--gold-light); }
.lockup-rev .leaf-d { fill: #3E7558; }
.lockup-rev .leaf-l { fill: #6FA085; }
.lockup-rev .mark-stem { fill: var(--gold-light); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; font-size: .94rem; font-weight: 500; color: var(--text); transition: color 200ms ease, background-color 200ms ease; }
.nav-link.is-current { color: var(--ink); }
.nav-link.is-current::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--gold); }
.chev { width: 12px; height: 12px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav-link:hover { background: rgba(14,47,38,.05); } }

.has-menu { position: relative; }
.menu {
  position: absolute; top: calc(100% + 10px); left: -12px; width: 560px; padding: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 60px -24px rgba(7, 30, 24, .28), 0 2px 6px rgba(7, 30, 24, .05);
  transform-origin: 40px top; opacity: 0; transform: translateY(-4px) scale(.97); visibility: hidden; pointer-events: none;
  transition: opacity 140ms ease, transform 140ms var(--ease-out), visibility 0s linear 140ms;
}
.menu::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-menu[data-open] .menu { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity 180ms ease, transform 200ms var(--ease-out), visibility 0s; }
.has-menu[data-open] .chev { transform: rotate(180deg); }
.menu ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.menu li a { display: flex; gap: 12px; padding: 12px; border-radius: 12px; transition: background-color 160ms ease; }
.menu li a:hover, .menu li a:focus-visible { background: var(--sage-100); }
.menu-num { font-family: var(--serif); color: var(--gold-deep); font-size: .9rem; line-height: 1.5; }
.menu-title { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; line-height: 1.3; }
.menu-sub { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; margin-top: 3px; }
.menu-all { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 14px 14px; border-top: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--leaf-l); }
.menu-all .icon { width: 16px; height: 16px; }

.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; cursor: pointer; transition: transform 160ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.menu-toggle:active { transform: scale(.95); }
.bars { position: relative; display: block; width: 18px; height: 10px; margin: auto; }
.bars span { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 260ms var(--ease-out), top 260ms var(--ease-out); }
.bars span:first-child { top: 0; } .bars span:last-child { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .bars span:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:last-child { top: 4.25px; transform: rotate(-45deg); }

.mobile-nav { position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: var(--white); overflow-y: auto; overscroll-behavior: contain; clip-path: inset(0 0 100% 0); transition: clip-path 380ms var(--ease-drawer); }
.mobile-nav[data-open] { clip-path: inset(0 0 0 0); }
.mobile-nav nav { padding: 12px var(--gutter) calc(32px + env(safe-area-inset-bottom)); }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav li a { display: block; padding: 16px 0; font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.mobile-nav li.sub a { padding: 11px 0 11px 18px; font-family: var(--sans); font-size: 1rem; color: var(--muted); }
.mobile-nav li, .mobile-nav .btn { opacity: 0; transform: translateY(10px); transition: opacity 300ms ease, transform 400ms var(--ease-out); }
.mobile-nav[data-open] li, .mobile-nav[data-open] .btn { opacity: 1; transform: none; transition-delay: calc(80ms + var(--i) * 28ms); }
.mobile-nav .btn { width: 100%; margin-top: 28px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(64px, 8vw, 112px); margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(28px, 6vw, 72px)); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 70% at 85% 30%, rgba(92, 139, 112, .16), transparent 70%),
  radial-gradient(40% 50% at 70% 85%, rgba(217, 192, 143, .22), transparent 70%),
  var(--white); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; opacity: .35; mask-image: radial-gradient(70% 60% at 75% 40%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 75% 40%, #000, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero h1 { margin-bottom: 26px; }
.hero h1 { max-width: 13.5em; }
.page-hero h1 { max-width: 17em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .82rem; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.hero-tags li { display: inline-flex; align-items: center; gap: 10px; }
.hero-tags li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.hero-mark { width: 82%; height: auto; overflow: visible; will-change: transform; }
.hero-ring { position: absolute; inset: 4%; border-radius: 50%; border: 1px solid rgba(184, 159, 115, .45); }
.hero-ring::before { content: ''; position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed rgba(14, 47, 38, .14); }
.hero-ring::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 253, 248, .9), rgba(255,253,248,0) 70%); }

/* entrance */
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes stem { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes leaf { from { opacity: 0; transform: scale(.72) rotate(var(--r, -6deg)); } to { opacity: 1; transform: none; } }
@keyframes ring { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.js .hero-in { animation: rise 900ms var(--ease-out) both; animation-delay: calc(80ms + var(--d, 0) * 90ms); }
.js .hero-ring { animation: ring 1400ms var(--ease-out) 200ms both; }
.js .hero-mark .mark-stem, .js .nf-mark .mark-stem { animation: stem 1100ms var(--ease-in-out) 250ms both; }
.js .hero-mark .mark-leaf, .js .nf-mark .mark-leaf { transform-box: fill-box; transform-origin: var(--o); animation: leaf 900ms var(--ease-out) both; animation-delay: calc(650ms + var(--i) * 110ms); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; background-color: var(--white); padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 6vw, 80px); background: radial-gradient(50% 80% at 95% 0%, rgba(92, 139, 112, .14), transparent 70%), radial-gradient(40% 60% at 80% 100%, rgba(217, 192, 143, .18), transparent 70%); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 22px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; font-size: .84rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .5; }
.crumbs a { transition: color 160ms ease; } .crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
.page-hero .svc-num { font-family: var(--serif); letter-spacing: 0; text-transform: none; font-size: 1rem; color: var(--gold-deep); }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.sec-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2 { margin-bottom: 18px; }
.sec-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

/* stats */
.stats { background: var(--forest-900); color: var(--on-dark); padding: clamp(56px, 7vw, 88px) 0 40px; position: relative; overflow: hidden; }
.stats::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 120% at 100% 0%, rgba(92, 139, 112, .22), transparent 70%); }
.stats .wrap { position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 8px clamp(16px, 3vw, 44px) 24px; border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-family: var(--serif); font-size: clamp(3.4rem, 2.4rem + 4vw, 6rem); line-height: 1; font-weight: 300; letter-spacing: -0.04em; color: var(--gold-light); margin: 0 0 16px; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 1.05rem; font-weight: 600; color: var(--on-dark); margin-bottom: 8px; }
.stat-detail { color: var(--on-dark-muted); font-size: .92rem; margin: 0; max-width: 22em; }
.stats-note { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: .8rem; color: var(--on-dark-muted); opacity: .85; }

/* intro + spectrum */
.intro-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); }
.spectrum { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 80px); padding-top: 36px; }
.spectrum::before, .spectrum::after { content: ''; position: absolute; top: 7px; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.spectrum::after { background: linear-gradient(90deg, var(--leaf-l), var(--gold)); transform-origin: left; transform: scaleX(0); transition: transform 1400ms var(--ease-in-out); }
.spectrum[data-in]::after { transform: scaleX(1); }
.spectrum li { position: relative; padding-right: 20px; }
.spectrum .dot { position: absolute; top: -36px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--leaf-l); transform: scale(.6); opacity: 0; transition: transform 500ms var(--ease-out), opacity 300ms ease, background-color 400ms ease; transition-delay: calc(200ms + var(--i) * 300ms); }
.spectrum[data-in] .dot { transform: none; opacity: 1; background: var(--gold-50); }
.spec-label { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.spec-note { display: block; color: var(--muted); font-size: .9rem; margin-top: 4px; }
.no-js .spectrum::after, .spectrum.no-anim::after { transform: none; }

/* services */
.services-sec { background: var(--ivory); border-block: 1px solid var(--line); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-card a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 28px 28px 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 200ms ease, background-color 200ms ease; }
.svc-card a:active { transform: scale(.985); }
.svc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.svc-num { font-family: var(--serif); font-size: 1.05rem; color: var(--gold-deep); }
.svc-icon { width: 30px; height: 30px; color: var(--leaf-l); }
.svc-card h3 { font-family: var(--serif); font-size: 1.42rem; line-height: 1.2; margin-bottom: 12px; }
.svc-card p { color: var(--muted); font-size: .96rem; margin-bottom: 26px; }
.svc-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--leaf-l); }
.svc-more .icon { width: 16px; height: 16px; transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .svc-card a:hover { transform: translateY(-4px); background: var(--paper); border-color: rgba(184, 159, 115, .55); box-shadow: 0 24px 48px -28px rgba(7, 30, 24, .35); }
  .svc-card a:hover .svc-more .icon { transform: translateX(4px); }
}
.related .svc-grid { margin-top: -12px; }
.related { padding-top: 0; }

/* results */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 56px); }
.res { padding: 30px 0 34px; border-top: 1px solid var(--line-strong); }
.res-icon { width: 28px; height: 28px; color: var(--gold-deep); margin-bottom: 22px; }
.res h3 { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; margin-bottom: 10px; }
.res p { color: var(--muted); font-size: .96rem; margin: 0; }

/* engagements */
.engagements { background: var(--forest-900); color: var(--on-dark); position: relative; overflow: hidden; }
.engagements::before { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 60% at 0% 100%, rgba(217, 192, 143, .10), transparent 70%), radial-gradient(50% 80% at 100% 0%, rgba(92, 139, 112, .18), transparent 70%); }
.eng-grid { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.eng-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.eng-head h2 { color: var(--on-dark); margin-bottom: 16px; }
.eng-head p:not(.eyebrow) { color: var(--on-dark-muted); }
.eng { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 34px 0; border-top: 1px solid var(--line-dark); }
.eng:last-child { border-bottom: 1px solid var(--line-dark); }
.eng-num { font-family: var(--serif); font-size: 1.1rem; color: var(--gold-light); line-height: 1.9; }
.eng-tag { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-dark); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.eng h3 { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); line-height: 1.2; color: var(--on-dark); margin-bottom: 14px; }
.eng p { color: var(--on-dark-muted); }
.eng p:last-child { margin-bottom: 0; }

/* approach */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); margin-bottom: clamp(48px, 6vw, 72px); }
.pillars li { position: relative; padding-top: 28px; }
.pillar-line { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--line); overflow: hidden; }
.pillar-line::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1000ms var(--ease-in-out) calc(200ms + var(--d, 0) * 150ms); }
.pillars li.is-in .pillar-line::after, .no-js .pillar-line::after { transform: scaleX(1); }
.pillars h3 { font-family: var(--serif); font-size: 1.55rem; margin-bottom: 10px; }
.pillars p { color: var(--muted); margin: 0; }
.approach-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 6vw, 96px); }
.checks { display: grid; gap: 12px; margin-bottom: 20px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--text); }
.checks .icon { width: 20px; height: 20px; color: var(--leaf-l); margin-top: 3px; padding: 3px; border-radius: 50%; background: var(--sage-100); stroke-width: 2.2; }

/* process */
.process-sec { background: var(--ivory); border-block: 1px solid var(--line); }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.process li { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.step { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; margin-bottom: 22px; font-family: var(--serif); font-size: 1.05rem; color: var(--forest-900); background: var(--gold-50); border: 1px solid rgba(184, 159, 115, .5); }
.process h3 { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 8px; }
.process p { color: var(--muted); font-size: .95rem; margin: 0; }

/* founder */
.founder-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.photo-ph { width: 100%; aspect-ratio: 4 / 5; border-radius: 28px; }
.photo-ph.has-photo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; overflow: hidden; }
.portrait { position: relative; width: min(68%, 310px); aspect-ratio: 5 / 6; border-radius: 999px 999px 22px 22px; padding: 6px; background: linear-gradient(180deg, var(--gold-light), rgba(217, 192, 143, .25)); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: inherit; }
.ph-mark.ph-mark-sm { width: 46px; opacity: .85; }
.js .founder-photo.is-in .portrait { animation: portrait 1100ms var(--ease-out) 150ms both; }
@keyframes portrait { from { clip-path: inset(100% 0 0 0 round 999px 999px 22px 22px); transform: translateY(16px); } to { clip-path: inset(0 0 0 0 round 999px 999px 22px 22px); transform: none; } }
.photo-ph { display: grid; place-items: center; background: radial-gradient(80% 60% at 70% 20%, rgba(92,139,112,.3), transparent 70%), linear-gradient(160deg, var(--forest-800), var(--forest-950)); }
.ph-mark { width: 46%; }
.ph-mark .leaf-d { fill: #2F6A50; } .ph-mark .leaf-l { fill: #5C9174; } .ph-mark .mark-stem { fill: var(--gold-light); }
.founder-title { font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin: 12px 0 26px; }
.founder-copy > p:not(.eyebrow):not(.founder-title) { color: var(--muted); }
.founder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 30px; }

/* CTA + forms */
.cta-band { position: relative; padding: clamp(72px, 9vw, 128px) 0; background: linear-gradient(160deg, var(--forest-800), var(--forest-950)); color: var(--on-dark); overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(45% 70% at 0% 0%, rgba(217, 192, 143, .14), transparent 70%), radial-gradient(50% 70% at 100% 100%, rgba(92, 139, 112, .25), transparent 70%); }
.cta-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.cta-copy h2 { color: var(--on-dark); margin-bottom: 18px; }
.cta-sub { font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; color: var(--gold-light); }
.cta-copy p:not(.eyebrow):not(.cta-sub) { color: var(--on-dark-muted); }
.cta-meta { display: grid; gap: 14px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line-dark); color: var(--on-dark-muted); font-size: .94rem; }
.cta-meta li, .cta-meta a { display: inline-flex; align-items: center; gap: 10px; }
.cta-meta .icon { width: 18px; height: 18px; color: var(--gold-light); flex: none; }
.cta-meta a { color: var(--on-dark); transition: color 160ms ease; } .cta-meta a:hover { color: var(--gold-light); }
.cta-meta.dark { color: var(--muted); border-color: var(--line); }
.cta-meta.dark a { color: var(--ink); } .cta-meta.dark .icon { color: var(--gold-deep); }
.card, .card-glass { background: var(--paper); color: var(--text); border-radius: 24px; padding: clamp(22px, 3.5vw, 40px); border: 1px solid var(--line); }
.card-glass { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55); border-color: rgba(255,255,255,.08); }

.form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink); }
.field label span { color: var(--gold-deep); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: #fff; font-size: 16px; color: var(--text);
  transition: border-color 160ms ease, box-shadow 200ms ease; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--leaf-l); box-shadow: 0 0 0 4px rgba(47, 95, 70, .14); }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: #A04A3A; box-shadow: 0 0 0 4px rgba(160, 74, 58, .1); }
.field-error { font-size: .8rem; color: #A04A3A; }
.select { position: relative; }
.select::after { content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { padding-right: 40px; cursor: pointer; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 4px; }
.form-note { margin: 0; font-size: .84rem; color: var(--muted); flex: 1 1 220px; }
.form-note[data-tone="error"] { color: #A04A3A; }
.form-note[data-tone="ok"] { color: var(--leaf-l); }
.btn-submit { display: inline-grid; min-width: 196px; }
.btn-label { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: opacity 200ms ease, filter 200ms ease, transform 260ms var(--ease-out); }
.btn-submit:not([data-state="idle"]) [data-label="idle"],
.btn-submit:not([data-state="sending"]) [data-label="sending"],
.btn-submit:not([data-state="sent"]) [data-label="sent"] { opacity: 0; filter: blur(3px); transform: translateY(6px); pointer-events: none; }
.btn-submit[data-state="sent"] { --bg: var(--leaf-l); }
.btn-submit[data-state="sending"] { cursor: progress; }

/* service detail */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.detail-aside { background: var(--ivory); position: sticky; top: calc(var(--header-h) + 24px); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--ivory); border: 1px solid var(--line); font-size: .92rem; font-weight: 500; color: var(--ink); }
.audience { padding-top: 0; }
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.aud-grid li { padding: 22px 22px 24px; border-left: 2px solid var(--gold); background: linear-gradient(90deg, rgba(217,192,143,.12), transparent); font-family: var(--serif); font-size: 1.15rem; line-height: 1.35; color: var(--ink); }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 88px); }
.qa { border-top: 1px solid var(--line-strong); }
.qa:last-child { border-bottom: 1px solid var(--line-strong); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font-family: var(--serif); font-size: 1.22rem; line-height: 1.3; }
.qa-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform 260ms var(--ease-out), background-color 200ms ease; }
.qa-icon .icon { width: 16px; height: 16px; }
.qa[open] .qa-icon { transform: rotate(45deg); background: var(--gold-50); }
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size 320ms var(--ease-out), content-visibility 320ms allow-discrete; }
.qa[open]::details-content { block-size: auto; }
.qa-body p { color: var(--muted); padding-bottom: 24px; margin: 0; max-width: 42em; }

/* contact page */
.contact-sec { background: var(--ivory); border-top: 1px solid var(--line); }
.page-hero:has(+ .contact-sec) { border-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.next { display: grid; gap: 22px; }
.next li { display: grid; grid-template-columns: 38px 1fr; gap: 16px; }
.next .step { margin: 0; }
.next p { margin: 6px 0 0; color: var(--muted); }
.next strong { color: var(--ink); font-weight: 600; }

/* 404 */
.nf { text-align: center; border: 0; padding-block: 80px 120px; }
.nf .wrap { display: grid; justify-items: center; }
.nf-mark { width: 120px; margin-bottom: 28px; overflow: visible; }
.nf .lede { margin-inline: auto; }
.nf .hero-actions { justify-content: center; }

/* footer */
.site-footer { background: var(--forest-950); color: var(--on-dark-muted); padding: 72px 0 calc(32px + env(safe-area-inset-bottom)); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr .7fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 22px; max-width: 26em; }
.footer-h { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 18px; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a, .site-footer li span { display: inline-flex; align-items: center; gap: 10px; transition: color 160ms ease; }
.site-footer li a:hover { color: var(--on-dark); }
.site-footer .icon { width: 17px; height: 17px; flex: none; }
.footer-base > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .82rem; }
.footer-base p { margin: 0; }

/* ---------- scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); filter: blur(4px); transition: opacity 700ms ease, transform 900ms var(--ease-out), filter 700ms ease; transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ---------- page transitions (same-origin navigations) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 160ms ease both vt-out; }
::view-transition-new(root) { animation: 320ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .svc-grid, .res-grid { grid-template-columns: repeat(2, 1fr); }
  .process, .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { gap: 16px; }
}
@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .hero-grid, .intro-grid, .eng-grid, .approach-body, .founder-grid, .cta-grid, .detail-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: min(230px, 58vw); margin: 0 auto -12px; }
  .hero h1 { font-size: clamp(2.2rem, 1.2rem + 4.6vw, 3.4rem); }
  .eng-head, .detail-aside { position: static; }
  .pillars { grid-template-columns: 1fr; }
  .founder-photo { max-width: 420px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding: 26px 0; border-top: 1px solid var(--line-dark); }
  .stat:first-child { border-top: 0; padding-top: 0; }
  .svc-grid, .res-grid, .process, .aud-grid, .field-row { grid-template-columns: 1fr; }
  .spectrum { grid-template-columns: 1fr; padding: 0 0 0 34px; gap: 26px; }
  .spectrum::before, .spectrum::after { top: 8px; bottom: 8px; left: 7px; right: auto; width: 1px; height: auto; }
  .spectrum::after { transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--leaf-l), var(--gold)); }
  .spectrum[data-in]::after { transform: scaleY(1); }
  .spectrum .dot { top: 4px; left: -34px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .btn-submit { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .lockup-word { height: 20px; }
  .lockup-mark { width: 34px; }
  .svc-top { margin-bottom: 26px; }
  .eng { grid-template-columns: 1fr; }
  .eng-num { line-height: 1; margin-bottom: 8px; }
}

/* ---------- reduced motion: keep fades, drop movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-in, .js .hero-ring { animation: rise-rm 400ms ease both; }
  .js .founder-photo.is-in .portrait { animation: none; }
  .js .hero-mark .mark-stem, .js .hero-mark .mark-leaf, .js .nf-mark .mark-stem, .js .nf-mark .mark-leaf { animation: rise-rm 500ms ease both; }
  .js [data-reveal] { transform: none; filter: none; transition: opacity 400ms ease; }
  .spectrum::after { transition: none; transform: none !important; }
  .mobile-nav { transition: none; }
  .mobile-nav li, .mobile-nav .btn { transform: none; }
  .svc-card a:hover { transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  @keyframes rise-rm { from { opacity: 0; } to { opacity: 1; } }
}
