:root {
  --ink: #111113; --paper: #FFFFFF; --alt: #F5F5F4; --gray: #5A5A63; --line: #E4E4E7;
  --accent: #F8D851; --on-accent: #111113; --dark: #111113; --on-dark: #FFFFFF; --muted-dark: #B4B4BC;
  --ph: #ECECEE; --ph-text: #8A8A93;
  --pad: 120px; --max: 1440px;
  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.1; }
h1 { font-size: clamp(40px, 5.2vw, 72px); font-weight: 800; }
.h1-post { font-size: clamp(34px, 4vw, 54px); }
h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; }
h3, .h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.narrow { max-width: 900px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.gap-s { gap: 10px; } .gap-m { gap: 18px; } .gap-l { gap: 32px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--gray); }
.label-dark { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--muted-dark); }
.muted { color: var(--gray); }
.muted-dark { color: var(--muted-dark); max-width: 36ch; }
.small { font-size: 14px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--gray); max-width: 36em; }
.big { font-size: clamp(20px, 2vw, 26px); line-height: 1.5; font-weight: 500; }
.link { font-weight: 700; font-size: 15px; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 5px; align-self: flex-start; }
.big-link { font-size: 22px; font-weight: 700; text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--ink); color: var(--accent); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-line-dark { border-color: var(--ink); color: var(--ink); }
.btn-line-dark:hover { background: var(--ink); color: var(--accent); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.bar { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 220px; height: auto; }
#nav { display: flex; align-items: center; gap: 32px; font-weight: 600; font-size: 15px; }
#nav a:not(.btn) { text-decoration: none; }
#nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 8px; }
#nav .btn { min-height: 44px; padding: 0 20px; }
.menu { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); flex-direction: column; justify-content: center; align-items: center; gap: 6px; cursor: pointer; }
.menu span { width: 18px; height: 2px; background: var(--ink); display: block; }

/* sections */
.hero { padding: 96px 0 104px; border-bottom: 1px solid var(--line); }
.hero.short { padding: 88px 0 72px; }
.hero-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: center; }
.section { padding: 104px 0; }
.section.tight { padding: 48px 0 0; }
.section.alt { background: var(--alt); }
.section.dark { background: var(--dark); color: var(--on-dark); }
.head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }

/* placeholders */
.ph { width: 100%; background: var(--ph); color: var(--ph-text); display: flex; align-items: flex-end; justify-content: flex-start; padding: 16px; font-size: 12px; font-weight: 600; letter-spacing: .06em; border-radius: 4px; background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,.025) 14px 15px); }

/* cards */
.card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.card h3 { transition: color .15s; }
.card:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.svc { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 2px solid var(--ink); }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.quote { margin: 0; display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 2px solid var(--accent); }
.quote .qt { font-weight: 700; font-size: 20px; }
.quote blockquote { margin: 0; color: #D4D4DA; }
.quote figcaption { display: flex; flex-direction: column; font-size: 14px; color: var(--muted-dark); }
.quote figcaption strong { color: var(--on-dark); }

/* timeline */
.timeline { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.timeline li { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 2px solid var(--ink); }
.timeline .yr { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.timeline li:last-child { border-top-color: var(--accent); }

/* case study */
.case { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 80px; align-items: start; }
.facts { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 8px; padding: 28px; background: var(--alt); border-radius: 4px; }
.facts .label { margin-top: 12px; } .facts .label:first-child { margin-top: 0; }
.list { margin: 0; padding-left: 20px; color: var(--gray); }
.prose { font-size: 18px; line-height: 1.75; }

/* form */
.form { display: flex; flex-direction: column; gap: 16px; background: var(--alt); padding: 36px; border-radius: 4px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.form input, .form textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 13px 14px; border: 1px solid #D4D4D8; border-radius: 4px; background: var(--paper); color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.form .btn { align-self: flex-start; }

/* cta + footer */
.cta { background: var(--accent); color: var(--on-accent); }
.cta-in { padding-top: 88px; padding-bottom: 88px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.cta p { max-width: 40em; }
.foot { background: var(--dark); color: var(--on-dark); padding: 72px 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
.foot a { color: var(--on-dark); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.foot-grid img { width: 240px; height: auto; }
.fine { margin-top: 56px; padding-top: 24px; border-top: 1px solid #2B2B31; color: var(--muted-dark); font-size: 13px; }

@media (max-width: 1100px) {
  :root { --pad: 48px; }
  .hero-in, .grid2 { gap: 48px; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case { grid-template-columns: 1fr; gap: 40px; } .facts { position: static; }
}
@media (max-width: 860px) {
  :root { --pad: 22px; }
  .bar { height: 68px; }
  .brand img { width: 170px; }
  .menu { display: flex; }
  #nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) 22px; }
  #nav.open { display: flex; }
  #nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  #nav .btn { margin-top: 16px; }
  .hero { padding: 48px 0 64px; } .hero.short { padding: 48px 0 40px; }
  .hero-in, .grid2, .grid3 { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 64px 0; }
  .timeline { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .form { padding: 24px; }
  .cta-in { padding-top: 56px; padding-bottom: 56px; }
}
