/* ===== FINICS — design tokens ===== */

:root{
  --bg: #F5F5F3;
  --surface: #FFFFFF;
  --surface-2: #ECECE8;
  --ink: #1C1C1B;
  --ink-soft: #3A3A38;
  --muted: #6B6B66;
  --line: #E1E1DC;
  --accent: #F25C05;       /* phoenix orange */
  --accent-soft: #FFE6D6;
  --gold: #8A6A2B;         /* accent word colour */
  --dark: #161514;
  --dark-2: #22201E;
  --muted-on-dark: #A8A49C;
  --line-on-dark: #34312D;
  --nav-bg: rgba(245,245,243,0.88);
  --line-strong: #CFCFC8;
  --chip-o-text: #9A3A00;
  --chip-g-bg: #F1E7D2;
  --phone: #161514;
  color-scheme: light;

  --display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1240px;
  --radius: 20px;
  --radius-sm: 12px;
}

/* Dark theme: follows the system unless the visitor picks one */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg: #121211;
    --surface: #1A1A18;
    --surface-2: #232321;
    --ink: #EDEBE6;
    --ink-soft: #CFCCC5;
    --muted: #9D9A93;
    --line: #2E2D2A;
    --accent: #FF6A1A;
    --accent-soft: #3A1E0D;
    --gold: #D9A95C;
    --dark: #1E1C1A;
    --dark-2: #2A2825;
    --muted-on-dark: #A8A49C;
    --line-on-dark: #383530;
    --nav-bg: rgba(18,18,17,0.85);
    --line-strong: #45433F;
    --chip-o-text: #FFB27A;
    --chip-g-bg: #3A3020;
    --phone: #3A3835;
    color-scheme: dark;
  }
}
:root[data-theme="dark"]{
  --bg: #121211;
  --surface: #1A1A18;
  --surface-2: #232321;
  --ink: #EDEBE6;
  --ink-soft: #CFCCC5;
  --muted: #9D9A93;
  --line: #2E2D2A;
  --accent: #FF6A1A;
  --accent-soft: #3A1E0D;
  --gold: #D9A95C;
  --dark: #1E1C1A;
  --dark-2: #2A2825;
  --muted-on-dark: #A8A49C;
  --line-on-dark: #383530;
  --nav-bg: rgba(18,18,17,0.85);
  --line-strong: #45433F;
  --chip-o-text: #FFB27A;
  --chip-g-bg: #3A3020;
  --phone: #3A3835;
  color-scheme: dark;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
p{ margin: 0; }
h1, h2, h3, h4{
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px){ .wrap{ padding: 0 16px; } }

/* ===== Nav ===== */
.nav{
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled{ border-color: var(--line); }
.nav .wrap{ display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo{ display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: 0.04em; }
.logo img{ width: auto; height: 68px; }
footer .logo img{ height: 96px; }
@media (max-width: 600px){ .logo img{ height: 54px; } footer .logo img{ height: 80px; } }
.nav-links{
  display: flex; gap: 4px;
  background: var(--surface-2);
  padding: 5px; border-radius: 999px;
}
.nav-links a{
  font-size: 14.5px; padding: 7px 16px; border-radius: 999px; color: var(--ink-soft);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover{ background: var(--surface); color: var(--ink); }
.nav-links a.active{ background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.nav-right{ display: flex; align-items: center; gap: 12px; }
.menu-btn{
  display: none; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn span{ display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; }
.menu-btn span::before, .menu-btn span::after{ content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); }
.menu-btn span::before{ top: -6px; } .menu-btn span::after{ top: 6px; }
.mobile-menu{ display: none; }

@media (max-width: 900px){
  .nav-links{ display: none; }
  .nav-right .btn{ display: none; }
  .menu-btn{ display: inline-flex; }
  .mobile-menu.open{
    display: flex; flex-direction: column; gap: 4px;
    padding: 12px 16px 24px; border-bottom: 1px solid var(--line); background: var(--bg);
  }
  .mobile-menu a{ padding: 12px 4px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn{ margin-top: 16px; align-self: flex-start; border-bottom: none; font-size: 15px; padding: 12px 22px; }
}

/* ===== Buttons ===== */
.btn{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  padding: 11px 22px; border-radius: 999px;
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
  cursor: pointer; transition: background .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover{ background: var(--ink); color: var(--bg); }
.btn-dark{ background: var(--ink); color: var(--bg); }
.btn-dark:hover{ background: var(--ink-soft); }
.btn-accent{ background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover{ background: #D94F02; border-color: #D94F02; color: #fff; }
.on-dark .btn{ border-color: #fff; color: #fff; }
.on-dark .btn:hover{ background: #fff; color: #1C1C1B; }
.link-arrow{ display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; }
.link-arrow::after{ content: "›"; font-size: 18px; transition: transform .15s ease; }
.link-arrow:hover::after{ transform: translateX(3px); }

/* ===== Sections ===== */
section{ padding: 112px 0; }
@media (max-width: 720px){ section{ padding: 72px 0; } }
.eyebrow{
  display: inline-flex; align-items: flex-start; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink-soft); margin-bottom: 20px;
}
.eyebrow::before{ content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 7px; }
.on-dark .eyebrow{ color: var(--muted-on-dark); }
.accent-word{ color: var(--gold); }
.on-dark .accent-word{ color: #E3A54A; }
.lead{ font-size: 19px; color: var(--muted); max-width: 560px; }
.on-dark{ background: var(--dark); color: #fff; }
.on-dark .lead{ color: var(--muted-on-dark); }

.section-head{ display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.section-head h2{ font-size: clamp(34px, 4.4vw, 54px); }
@media (max-width: 860px){ .section-head{ grid-template-columns: 1fr; gap: 20px; margin-bottom: 44px; } }

/* ===== Hero ===== */
.hero{ padding: 72px 0 96px; overflow: hidden; }
.hero .wrap{ display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1{ font-size: clamp(44px, 6.4vw, 82px); letter-spacing: -0.035em; }
.hero .lead{ margin-top: 28px; }
.hero-actions{ margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 960px){ .hero .wrap{ grid-template-columns: 1fr; } }
@media (max-width: 720px){ .hero{ padding: 40px 0 56px; } .page-hero{ padding: 56px 0 40px; } }

.page-hero{ padding: 88px 0 72px; }
.page-hero h1{ font-size: clamp(42px, 6vw, 76px); letter-spacing: -0.035em; max-width: 900px; }
.page-hero .lead{ margin-top: 24px; }

/* Hero mockup */
.mock-stage{ position: relative; min-height: 460px; }
.mock{
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px -24px rgba(28,28,27,.18);
}
.mock-main{ position: absolute; inset: 0 40px 60px 0; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.mock-bar{ display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.mock-bar strong{ color: var(--ink); font-weight: 600; font-size: 14px; }
.dots{ display: flex; gap: 6px; }
.dots i{ width: 9px; height: 9px; border-radius: 50%; background: var(--surface-2); display: block; }
.mock-kpis{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi{ background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px; }
.kpi small{ display: block; font-size: 11.5px; color: var(--muted); }
.kpi b{ font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.kpi em{ font-style: normal; font-size: 11.5px; color: #2F8F4E; margin-left: 4px; }
.mock-chart{ flex: 1; background: var(--bg); border-radius: var(--radius-sm); padding: 14px; position: relative; min-height: 150px; }
.mock-chart svg{ width: 100%; height: 100%; position: absolute; inset: 0; }
.mock-float{ position: absolute; right: 0; bottom: 0; width: 250px; padding: 18px; }
.mock-float h4{ font-family: var(--sans); font-size: 13px; font-weight: 600; margin-bottom: 12px; letter-spacing: 0; }
.task{ display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 7px 0; border-top: 1px solid var(--line); }
.task:first-of-type{ border-top: none; }
.check{ width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; }
.check.done{ background: var(--accent); border-color: var(--accent); position: relative; }
.check.done::after{ content: ""; position: absolute; left: 4.5px; top: 2px; width: 4px; height: 7px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.task.is-done{ color: var(--muted); text-decoration: line-through; }
.mock-badge{
  position: absolute; left: -12px; bottom: 96px; padding: 10px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px;
}
.mock-badge::before{ content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2F8F4E; }
@media (max-width: 560px){
  .mock-stage{ min-height: 420px; }
  .mock-main{ inset: 0 0 90px 0; }
  .mock-kpis{ grid-template-columns: repeat(2, 1fr); }
  .mock-kpis .kpi:nth-child(3){ display: none; }
  .mock-float{ width: 220px; }
  .mock-badge{ left: 8px; bottom: 140px; }
}

/* ===== Tool strip ===== */
.strip{ padding: 0 0 24px; }
.strip p{ font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.strip-row{ display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--display); font-size: 20px; font-weight: 500; color: #9A9A94; letter-spacing: -0.01em; }

/* ===== Stacked service cards ===== */
.services-band{ background: var(--surface-2); border-radius: 32px 32px 0 0; }
.svc-stack{ display: flex; flex-direction: column; gap: 24px; }
.svc-card{
  position: sticky; top: 100px;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: 28px;
  padding: 48px; min-height: 480px;
  box-shadow: 0 -8px 30px -20px rgba(28,28,27,.18);
}
.svc-card:nth-child(2){ top: 116px; } .svc-card:nth-child(3){ top: 132px; }
.svc-card:nth-child(4){ top: 148px; } .svc-card:nth-child(5){ top: 164px; }
.svc-card h3{ font-size: 32px; display: flex; align-items: center; gap: 12px; }
.svc-card h3::before{ content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.svc-tags{ margin: 10px 0 22px; font-size: 13.5px; color: var(--gold); font-weight: 500; }
.svc-card p{ color: var(--ink-soft); font-size: 16px; }
.svc-card p + p{ margin-top: 12px; }
.svc-card .link-arrow{ margin-top: 26px; }
.svc-visual{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-height: 340px; position: relative; overflow: hidden; }
@media (max-width: 900px){
  .svc-card{ position: relative; top: 0 !important; grid-template-columns: 1fr; padding: 28px; gap: 28px; min-height: 0; }
  .svc-card h3{ font-size: 26px; }
  .svc-visual{ min-height: 260px; }
}

/* Visual: browser */
.browser-top{ display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.browser-url{ flex: 1; background: var(--bg); border-radius: 999px; font-size: 12px; color: var(--muted); padding: 5px 12px; }
.wf-hero{ background: var(--dark); border-radius: var(--radius-sm); padding: 26px 22px; color: #fff; }
.wf-line{ height: 9px; border-radius: 6px; background: rgba(255,255,255,.18); margin-top: 8px; }
.wf-line.lg{ height: 16px; width: 70%; background: rgba(255,255,255,.9); margin-top: 0; }
.wf-line.md{ width: 55%; }
.wf-pill{ display: inline-block; margin-top: 16px; width: 86px; height: 26px; border-radius: 999px; background: var(--accent); }
.wf-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.wf-grid div{ height: 70px; border-radius: 10px; background: var(--bg); }
.score{ position: absolute; right: 18px; bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 10px; box-shadow: 0 10px 30px -14px rgba(0,0,0,.25); }
.score b{ width: 38px; height: 38px; border-radius: 50%; border: 3px solid #2F8F4E; display: grid; place-items: center; color: var(--ink); font-size: 13px; }

/* Visual: phone */
.phones{ display: flex; justify-content: center; gap: 18px; padding-top: 10px; }
.phone{ width: 150px; height: 300px; border-radius: 26px; border: 6px solid var(--phone); background: var(--bg); padding: 14px 10px; display: flex; flex-direction: column; gap: 8px; }
.phone:nth-child(2){ transform: translateY(26px); }
.ph-head{ height: 10px; width: 60%; border-radius: 6px; background: var(--ink); }
.ph-card{ border-radius: 10px; background: var(--surface); padding: 8px; font-size: 10px; color: var(--muted); }
.ph-card b{ display: block; font-family: var(--display); font-size: 16px; color: var(--ink); font-weight: 500; }
.ph-bar{ height: 6px; border-radius: 4px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.ph-bar i{ display: block; height: 100%; background: var(--accent); }
.ph-btn{ margin-top: auto; height: 28px; border-radius: 999px; background: var(--ink); }

/* Visual: flow */
.flow{ display: flex; flex-direction: column; gap: 12px; }
.flow-row{ display: flex; align-items: center; gap: 12px; }
.node{ flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13px; background: var(--bg); }
.node small{ display: block; color: var(--muted); font-size: 11.5px; }
.node.hot{ border-color: var(--accent); background: var(--accent-soft); }
.arrow{ color: var(--muted); font-size: 18px; flex: none; }
.flow-log{ margin-top: 6px; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; display: flex; justify-content: space-between; }

/* Visual: calendar */
.cal{ display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cal-h{ font-size: 11.5px; color: var(--muted); padding-bottom: 4px; }
.cal-c{ min-height: 74px; border-radius: 10px; background: var(--bg); padding: 6px; display: flex; flex-direction: column; gap: 5px; }
.chip{ font-size: 10.5px; border-radius: 6px; padding: 3px 6px; background: var(--surface-2); color: var(--ink-soft); }
.chip.o{ background: var(--accent-soft); color: var(--chip-o-text); }
.chip.g{ background: var(--chip-g-bg); color: var(--gold); }

/* Visual: kanban */
.kanban{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.col h5{ margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; }
.kcard{ background: var(--bg); border-radius: 10px; padding: 10px; font-size: 12px; margin-bottom: 8px; }
.kcard i{ display: block; font-style: normal; font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.kcard.hl{ border-left: 3px solid var(--accent); }

/* ===== Statement ===== */
.statement h2{ font-size: clamp(36px, 5.4vw, 72px); letter-spacing: -0.035em; max-width: 1000px; }
.statement .wrap > p{ margin-top: 28px; }
.feature-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-on-dark); border: 1px solid var(--line-on-dark); border-radius: var(--radius); overflow: hidden; margin-top: 72px; }
.feature{ background: var(--dark); padding: 32px; }
.feature b{ display: block; font-family: var(--display); font-size: 22px; font-weight: 500; margin-bottom: 10px; letter-spacing: -0.01em; }
.feature p{ color: var(--muted-on-dark); font-size: 15px; }
@media (max-width: 860px){ .feature-grid{ grid-template-columns: 1fr; } }

/* ===== Principles (F-I-N-I-C-S) ===== */
.principles{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principle{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .2s ease, border-color .2s ease; }
.principle:hover{ transform: translateY(-3px); border-color: var(--line-strong); }
.principle .letter{ font-family: var(--display); font-size: 56px; line-height: 1; color: var(--accent); font-weight: 500; }
.principle h3{ font-size: 22px; margin: 18px 0 10px; }
.principle p{ color: var(--muted); font-size: 15px; }
@media (max-width: 960px){ .principles{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .principles{ grid-template-columns: 1fr; } }

/* ===== Process ===== */
.process{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step{ border-top: 1px solid var(--ink); padding-top: 22px; }
.step::before{ counter-increment: step; content: "0" counter(step); font-size: 13px; font-weight: 600; color: var(--accent); }
.step h3{ font-size: 23px; margin: 14px 0 10px; }
.step p{ color: var(--muted); font-size: 15px; }
@media (max-width: 900px){ .process{ grid-template-columns: repeat(2, 1fr); gap: 36px 16px; } }
@media (max-width: 520px){ .process{ grid-template-columns: 1fr; } }

/* ===== Engagement models ===== */
.models{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.model{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.model.featured{ background: var(--dark); color: #fff; border-color: var(--dark); }
.model small{ font-size: 13px; color: var(--gold); font-weight: 600; }
.model.featured small{ color: #E3A54A; }
.model h3{ font-size: 26px; margin: 10px 0 12px; }
.model p{ color: var(--muted); font-size: 15px; }
.model.featured p, .model.featured li{ color: var(--muted-on-dark); }
.model ul{ list-style: none; padding: 0; margin: 22px 0 28px; font-size: 14.5px; }
.model li{ padding: 9px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.model.featured li{ border-color: var(--line-on-dark); }
.model li::before{ content: "✓"; color: var(--accent); font-weight: 600; }
.model .btn{ margin-top: auto; align-self: flex-start; }
.model.featured .btn{ border-color: #fff; color: #fff; }
.model.featured .btn:hover{ background: #fff; color: #1C1C1B; }
@media (max-width: 900px){ .models{ grid-template-columns: 1fr; } }

/* ===== Detail rows (services page) ===== */
.detail{ display: grid; grid-template-columns: 80px 1fr 1.2fr; gap: 40px; padding: 48px 0; border-top: 1px solid var(--line); }
.detail:last-child{ border-bottom: 1px solid var(--line); }
.detail .num{ font-size: 14px; font-weight: 600; color: var(--accent); padding-top: 8px; }
.detail h2{ font-size: 34px; }
.detail .svc-tags{ margin-bottom: 0; }
.detail p{ color: var(--ink-soft); }
.detail ul{ list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.detail li{ font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 860px){ .detail{ grid-template-columns: 1fr; gap: 14px; padding: 36px 0; } }

/* ===== FAQ ===== */
.faq{ max-width: 860px; }
.faq details{ border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child{ border-bottom: 1px solid var(--line); }
.faq summary{ cursor: pointer; list-style: none; font-family: var(--display); font-size: 21px; font-weight: 500; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{ content: "+"; color: var(--accent); font-size: 24px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after{ transform: rotate(45deg); }
.faq details p{ margin-top: 12px; color: var(--muted); max-width: 720px; }

/* ===== Two column text ===== */
.split{ display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
.split h2{ font-size: clamp(30px, 3.6vw, 44px); }
.prose p{ color: var(--ink-soft); font-size: 17.5px; }
.prose p + p{ margin-top: 20px; }
@media (max-width: 860px){ .split{ grid-template-columns: 1fr; gap: 24px; } }

.facts{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fact{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.fact small{ display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.fact span{ font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
@media (max-width: 600px){ .facts{ grid-template-columns: 1fr; } }

/* ===== Contact ===== */
.contact-grid{ display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; gap: 40px; } }
.form-card{ background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 36px; }
@media (max-width: 600px){ .form-card{ padding: 22px; } }
.field{ margin-bottom: 18px; }
.field label{ display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field input, .field textarea, .field select{
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
}
.field input:focus, .field textarea:focus, .field select:focus{ outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field textarea{ min-height: 150px; resize: vertical; }
.chips{ display: flex; flex-wrap: wrap; gap: 8px; }
.chips label{ margin: 0; position: relative; }
.chips input{ position: absolute; opacity: 0; pointer-events: none; }
.chips span{ display: inline-block; font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-weight: 400; transition: all .15s ease; }
.chips input:checked + span{ background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips input:focus-visible + span{ outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note{ font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.info-list{ margin-top: 40px; display: flex; flex-direction: column; gap: 22px; }
.info-list small{ display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.info-list a, .info-list span{ font-family: var(--display); font-size: 20px; letter-spacing: -0.01em; }
.info-list a{ border-bottom: 1px solid var(--line); }
.info-list a:hover{ border-color: var(--accent); }

/* ===== Legal ===== */
.legal{ max-width: 820px; }
.legal h2{ font-size: 26px; margin: 48px 0 14px; }
.legal p, .legal li{ color: var(--ink-soft); font-size: 16px; }
.legal p + p{ margin-top: 12px; }
.legal table{ width: 100%; border-collapse: collapse; font-size: 15.5px; }
.legal td{ padding: 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.legal td:first-child{ color: var(--muted); width: 38%; padding-right: 16px; }

/* ===== CTA ===== */
.cta{ padding: 0 0 112px; }
.cta-box{ background: var(--dark); color: #fff; border-radius: 32px; padding: 80px 64px; position: relative; overflow: hidden; }
.cta-box h2{ font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.03em; max-width: 760px; position: relative; }
.cta-box p{ color: var(--muted-on-dark); max-width: 520px; margin-top: 20px; position: relative; }
.cta-box .hero-actions{ position: relative; }
.cta-box .btn{ border-color: #fff; color: #fff; }
.cta-box .btn:hover{ background: #fff; color: #1C1C1B; }
.cta-box .btn-accent{ border-color: var(--accent); }
.cta-box .btn-accent:hover{ background: #fff; border-color: #fff; color: #1C1C1B; }
.cta-mark{ position: absolute; right: -40px; bottom: -60px; width: 380px; opacity: .14; }
@media (max-width: 720px){ .cta{ padding-bottom: 72px; } .cta-box{ padding: 48px 24px; border-radius: 24px; } .cta-mark{ width: 240px; } }

/* ===== Footer ===== */
footer{ background: var(--dark); color: #fff; padding: 80px 0 32px; }
.footer-grid{ display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-on-dark); }
footer .logo{ color: #fff; }
.footer-about{ color: var(--muted-on-dark); font-size: 14.5px; margin-top: 16px; max-width: 280px; }
.footer-col h4{ font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted-on-dark); letter-spacing: 0; margin-bottom: 14px; }
.footer-col a, .footer-col address{ display: block; font-size: 14.5px; margin-bottom: 10px; color: #E9E7E2; font-style: normal; }
.footer-col address{ line-height: 1.7; }
.footer-col a:hover{ color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom{ padding-top: 24px; font-size: 13px; color: var(--muted-on-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom a:hover{ color: #fff; }
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ===== Reveal ===== */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity: 1; transform: none; transition: none; }
}

/* ===== Two doors (home hero) ===== */
.doors{ display: flex; flex-direction: column; gap: 16px; }
.door{
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: 32px; transition: transform .2s ease, box-shadow .2s ease;
}
.door:hover{ transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(28,28,27,.3); }
.door-tag{ display: inline-block; font-size: 12.5px; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); }
.door h3{ font-size: 32px; margin: 18px 0 10px; }
.door p{ color: var(--muted); font-size: 15.5px; margin-bottom: 18px; }
.door-dark{ background: var(--dark); border-color: var(--dark); color: #fff; }
.door-dark .door-tag{ background: var(--accent); color: #fff; }
.door-dark p{ color: var(--muted-on-dark); }
@media (max-width: 600px){ .door{ padding: 24px; } .door h3{ font-size: 26px; } }

/* ===== Pillar rows ===== */
.pillar-rows{ border-top: 1px solid var(--line); }
.pillar-row{ display: grid; grid-template-columns: 110px 1fr 1.6fr; gap: 32px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); }
.pr-mark{ font-family: var(--display); font-size: 56px; line-height: 1; font-weight: 500; letter-spacing: -0.03em; color: var(--accent); }
.pillar-row h3{ font-size: 28px; }
.pillar-row p{ color: var(--muted); font-size: 16px; max-width: 560px; }
@media (max-width: 760px){ .pillar-row{ grid-template-columns: 64px 1fr; gap: 8px 16px; } .pillar-row p{ grid-column: 2; } .pr-mark{ font-size: 40px; } .pillar-row h3{ font-size: 24px; } }

/* ===== Pillar detail (philosophy page) ===== */
.pillar-detail{ display: grid; grid-template-columns: 140px 1fr; gap: 40px; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.pillar-detail:last-child{ border-bottom: 1px solid var(--line); }
.pillar-detail .pr-mark{ font-size: 96px; }
.pillar-detail h2{ font-size: clamp(32px, 4vw, 48px); }
.pd-lead{ font-size: 19px; color: var(--ink-soft); margin-top: 16px; max-width: 760px; }
.pd-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.pd-grid > div{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.pd-grid small{ display: block; font-size: 13px; font-weight: 600; color: var(--gold); margin-bottom: 6px; }
.pd-grid p{ color: var(--muted); font-size: 15px; }
.pd-grid a{ color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px){ .pillar-detail{ grid-template-columns: 1fr; gap: 8px; padding: 40px 0; } .pillar-detail .pr-mark{ font-size: 64px; } .pd-grid{ grid-template-columns: 1fr; } }

/* ===== Notify ===== */
.notify{ display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 56px; }
.notify h2{ font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.notify-form{ display: flex; flex-wrap: wrap; gap: 10px; }
.notify-form input{ flex: 1 1 220px; font: inherit; font-size: 16px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.notify-form input:focus{ outline: 2px solid var(--accent); outline-offset: 1px; }
.notify-form .form-note{ flex-basis: 100%; margin-top: 4px; }
@media (max-width: 860px){ .notify{ grid-template-columns: 1fr; padding: 28px; gap: 24px; } }
.sr-only{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Disclaimer ===== */
.disclaimer{ margin-top: 20px; font-size: 13.5px; color: var(--muted); max-width: 760px; }
.disclaimer a{ color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ===== Theme toggle ===== */
.theme-btn{
  width: 44px; height: 44px; border-radius: 999px; flex: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .15s ease;
}
.theme-btn:hover{ border-color: var(--ink); }
.theme-btn svg{ width: 18px; height: 18px; }
.theme-btn .i-sun{ display: none; }
:root[data-theme="dark"] .theme-btn .i-sun{ display: block; }
:root[data-theme="dark"] .theme-btn .i-moon{ display: none; }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .theme-btn .i-sun{ display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon{ display: none; }
}
body, .nav, .door, .principle, .svc-card, .form-card, .notify{ transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .2s ease, box-shadow .2s ease; }

/* ===== Photo band ===== */
.photo-band{ margin: 0; border-radius: 28px; overflow: hidden; background: var(--surface-2); aspect-ratio: 2000 / 840; }
.photo-band img{ width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px){ .photo-band{ border-radius: 20px; aspect-ratio: 4 / 3; } .photo-band img{ object-position: 70% 50%; } }
.photo-band-studio{ margin-bottom: 24px; }
@media (max-width: 720px){ .photo-band-studio img{ object-position: 38% 50%; } }

/* ===== Pillar images ===== */
.pillar-detail{ grid-template-columns: 140px 1fr 0.72fr; }
.pd-img{ margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface-2); align-self: start; }
.pd-img img{ width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1100px){
  .pillar-detail{ grid-template-columns: 140px 1fr; }
  .pd-img{ grid-column: 2; max-width: 640px; }
}
@media (max-width: 760px){
  .pillar-detail{ grid-template-columns: 1fr; }
  .pd-img{ grid-column: auto; margin-top: 8px; }
}
.pillar-row{ grid-template-columns: 110px 1fr 1.6fr 150px; align-items: center; }
.pr-thumb{ width: 150px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-sm); }
@media (max-width: 760px){
  .pillar-row{ grid-template-columns: 64px 1fr; align-items: baseline; }
  .pr-thumb{ display: none; }
}
