/* HumanArc public website design system */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap");

:root {
  --font: "Google Sans Flex", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --logo-font: "Fraunces", "Times New Roman", serif;
  --paper: #F7F5F0;
  --paper-2: #EFEBE3;
  --ink: #161916;
  --ink-2: #3D4641;
  --mute: #6B746E;
  --line: #DDD8CE;
  --line-2: #EDE9E1;
  --white: #FFFdf8;
  --forest: #1C3F34;
  --forest-2: #16332A;
  --accent: #2C6A56;
  --accent-soft: rgba(44, 106, 86, 0.1);
  --max: 1180px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.wrap-wide { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
h1, .h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink);
}
h2, .h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 450;
  letter-spacing: -0.028em;
  line-height: 1.12;
}
h3, .h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 38em;
  font-weight: 400;
}
.small { font-size: 14px; line-height: 1.65; color: var(--mute); }
.meta { font-size: 12px; letter-spacing: 0.04em; color: var(--mute); }

.sec { padding: 96px 0; }
.sec-tight { padding: 72px 0; }
.band { background: var(--paper-2); }
.band-dark { background: var(--forest-2); color: #F4F1EA; }
.band-dark .h2, .band-dark .h1, .band-dark h2, .band-dark h3 { color: #F7F4EE; }
.band-dark .lede, .band-dark .small, .band-dark .eyebrow { color: rgba(247,244,238,0.72); }
.band-dark .eyebrow { color: #A9C9BB; }

.ha-nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(247,245,240,0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.ha-nav.is-scrolled { border-bottom-color: var(--line); }
.ha-nav .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1280px, calc(100% - 40px));
}
.ha-logo {
  font-family: var(--logo-font);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--forest);
  line-height: 1;
  white-space: nowrap;
}
.ha-logo img { display: none; }
.ha-links {
  display: flex; justify-content: center; gap: 4px;
  list-style: none;
}
.ha-links a {
  font-size: 13.5px; color: var(--ink-2);
  padding: 8px 12px; border-radius: var(--radius-sm);
}
.ha-links a:hover, .ha-links a[aria-current="page"] { color: var(--ink); background: rgba(22,25,22,0.04); }
.ha-actions { display: flex; align-items: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  cursor: pointer; transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-primary { background: var(--forest); color: #F7F4EE; }
.btn-primary:hover { background: #142E26; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-on-dark {
  background: transparent;
  color: #F4EFE4;
  border-color: rgba(244,239,228,0.32);
}
.btn-ghost-on-dark:hover { background: rgba(244,239,228,0.08); color: #fff; border-color: #F4EFE4; }
.btn-light { background: var(--white); color: var(--forest); }
.btn-on-dark { background: #F4EFE4; color: #16332A; }
.btn-text { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent); font-weight: 500; }
.btn-text:hover { text-decoration: underline; }
.menu-btn {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  background: transparent; border-radius: var(--radius-sm); cursor: pointer;
}
.menu-btn span { display: block; width: 16px; height: 1px; background: var(--ink); margin: 4px auto; }

.hero { padding: 72px 0 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: end;
}
.hero-copy .h1 { margin-bottom: 20px; }
.hero-copy .lede { margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-visual {
  position: relative; min-height: 420px;
}
.hero-visual img.people {
  width: 78%; height: 460px; object-fit: cover;
  filter: grayscale(0.18) contrast(1.04);
  border-radius: var(--radius-lg);
}
.hero-visual .product-chip {
  position: absolute; right: 0; bottom: 28px; width: 58%;
  border: 1px solid var(--line); background: var(--white);
  padding: 8px; box-shadow: none;
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-visual .product-chip img { width: 100%; height: 220px; object-fit: cover; object-position: top; border-radius: var(--radius-sm); }

.split {
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 64px; align-items: center;
}
.split.reverse { grid-template-columns: 1.08fr 0.92fr; }
.split img.photo { width: 100%; height: 280px; object-fit: cover; border-radius: var(--radius-lg); }
.split .copy .h2 { margin-bottom: 16px; }

.feature-list { list-style: none; margin: 22px 0 28px; display: grid; gap: 8px; }
.feature-list li {
  font-size: 15px; color: var(--ink-2);
  padding-left: 16px; border-left: 1px solid var(--accent);
}

.workspace {
  display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start;
}
.ws-tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ws-tab {
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 18px 8px 18px 0; cursor: pointer; color: var(--mute);
}
.ws-tab strong { display: block; font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.ws-tab.is-on { color: var(--ink-2); }
.ws-tab.is-on strong { color: var(--forest); }
.ws-preview { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); overflow: hidden; }
.ws-preview img { width: 100%; height: 420px; object-fit: cover; object-position: top left; }
.ws-preview figcaption { padding: 20px 22px 24px; }
.ws-preview p { color: var(--ink-2); margin: 8px 0 16px; font-size: 15px; }

.lifecycle {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.lifecycle article {
  padding: 28px 16px 28px 0;
  border-right: 1px solid var(--line);
}
.lifecycle article:last-child { border-right: 0; }
.lifecycle span { display: block; font-size: 11px; color: var(--mute); margin-bottom: 10px; letter-spacing: 0.08em; }
.lifecycle strong { font-weight: 500; font-size: 16px; }

.caps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.cap {
  padding: 36px 32px 36px 0;
  border-top: 1px solid var(--line);
}
.cap:nth-child(odd) { padding-right: 40px; border-right: 1px solid var(--line); }
.cap:nth-child(even) { padding-left: 40px; }
.cap em { font-style: normal; font-size: 12px; color: var(--mute); display: block; margin-bottom: 10px; }

.ai-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ai-card {
  border: 1px solid var(--line); padding: 22px 24px; background: var(--white);
  border-radius: var(--radius);
}
.ai-card .q { font-size: 16px; font-weight: 500; margin: 8px 0 10px; }
.ai-card .soon {
  display: inline-block; margin-top: 10px; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mute); border: 1px solid var(--line); padding: 3px 8px;
}

.editorial {
  display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center;
  padding: 20px;
  width: min(1180px, calc(100% - 48px));
  margin: 16px auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.editorial .media { overflow: hidden; border-radius: var(--radius); }
.editorial .media img { width: 100%; height: 200px; object-fit: cover; object-position: top; }
.editorial .panel { padding: 0; display: flex; flex-direction: column; justify-content: center; }
.editorial.dark .panel { background: transparent; color: inherit; }
.editorial.dark .panel .h2, .editorial.dark .panel h2 { color: var(--ink); }
.editorial.dark .panel .lede { color: var(--ink-2); }
.editorial.dark .btn-on-dark { background: var(--forest); color: #F7F4EE; }

.story-list { display: grid; gap: 0; }
.story {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.story img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: var(--radius);
}
.story .copy h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 36px 40px;
  background: var(--forest-2);
  color: #F4EFE4;
  border-radius: var(--radius-lg);
}
.cta-band h2 { color: #F7F4EE; font-size: clamp(24px, 3vw, 34px); max-width: 16ch; }
.cta-band p { color: rgba(247,244,238,0.72); max-width: 36em; }

.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.kpi { background: var(--paper); padding: 28px 24px; }
.kpi b { display: block; font-size: 28px; font-weight: 450; margin-bottom: 6px; }

.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.resource {
  border-top: 1px solid var(--line); padding-top: 20px;
}
.resource .cat { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.resource h3 { margin: 10px 0 8px; font-size: 20px; font-weight: 450; }
.placeholder { color: var(--mute); font-size: 13px; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value { border-top: 1px solid var(--line); padding-top: 18px; }
.value span { display: block; font-size: 12px; color: var(--mute); margin-bottom: 10px; }

.form {
  display: grid; gap: 16px; max-width: 560px;
}
label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
input, select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font-size: 15px; border-radius: var(--radius-sm);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--forest);
}
.field-error { color: #9B2C2C; font-size: 12px; min-height: 16px; }
.form-status {
  display: none; padding: 14px 16px; border: 1px solid var(--line); font-size: 14px;
}
.form-status.is-on { display: block; }
.form-status.ok { border-color: var(--accent); color: var(--forest); }
.form-status.err { border-color: #E8C4C4; color: #9B2C2C; }
.btn[disabled] { opacity: 0.55; cursor: wait; }

.ha-footer {
  background: var(--forest-2); color: #E7E2D6; padding: 72px 0 28px;
}
.ha-footer a:not(.btn) { color: rgba(231,226,214,0.78); }
.ha-footer a:not(.btn):hover { color: #fff; }
.ha-footer a.ha-logo { color: #F4EFE4; }
.ha-footer .btn {
  background: #F4EFE4;
  color: #16332A;
  border-color: transparent;
}
.ha-footer .btn:hover {
  background: #fff;
  color: #142E26;
}
.ft-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px;
}
.ft-brand p { margin-top: 14px; max-width: 26em; color: rgba(231,226,214,0.7); font-size: 14px; line-height: 1.65; }
.ft-col h4 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; color: #A9C9BB; margin-bottom: 14px; }
.ft-col ul { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.ft-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; font-size: 12px; color: rgba(231,226,214,0.5);
}

.reveal { opacity: 0; transform: translateY(12px); animation: fadeup 0.7s var(--ease) forwards; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
@keyframes fadeup { to { opacity: 1; transform: none; } }

.drawer {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0; background: var(--paper); z-index: 40; padding: 28px 24px;
}
.drawer.is-open { display: block; }
.drawer a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 450; }

.skip {
  position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 8px 12px;
}
.skip:focus { left: 8px; z-index: 80; }

:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
[id] { scroll-margin-top: 80px; }

.prose { max-width: 40em; }
.prose h2 { font-size: 22px; font-weight: 500; margin: 32px 0 10px; }
.prose p { color: var(--ink-2); margin-bottom: 14px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.converge {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 32px;
}
.converge span {
  border: 1px solid var(--line); padding: 8px 12px; font-size: 13px; color: var(--mute);
  border-radius: var(--radius-sm);
}
.converge strong {
  background: var(--forest); color: #F7F4EE; padding: 8px 14px; font-weight: 500; font-size: 13px;
  border-radius: var(--radius-sm);
}
.ai-card .soon { border-radius: 99px; }
.form-status { border-radius: var(--radius-sm); }

.plain-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-lg);
}
.plain-card h2 { font-size: clamp(24px, 3vw, 32px); }
.philosophy {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: center;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.philosophy img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.role-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start;
  border: 1px solid var(--line); background: var(--white);
  border-radius: var(--radius-lg); padding: 16px;
}
.role-card img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius); }
.role-card h3 { margin-bottom: 6px; font-size: 20px; }
.role-card p { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { border-top: 1px solid var(--line); padding-top: 16px; }
.step em { display: block; font-style: normal; font-size: 12px; color: var(--mute); margin-bottom: 8px; }

.gate-page { background: var(--paper); }
.gate {
  display: grid; grid-template-columns: 1.08fr 0.92fr; min-height: calc(100vh - var(--nav-h));
}
.gate-visual {
  position: relative; overflow: hidden; background: var(--forest-2);
}
.gate-visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0.62; min-height: 560px; }
.gate-visual .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(22,51,42,0.18) 0%, rgba(22,51,42,0.82) 70%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 56px;
  color: #F4EFE4;
}
.gate-mark {
  font-family: var(--logo-font);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #F4EFE4;
  margin-bottom: 18px;
}
.gate-visual h2 { color: #F7F4EE; max-width: 11ch; margin-bottom: 14px; font-size: clamp(36px, 4.4vw, 56px); }
.gate-panel { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; background: var(--paper); }
.gate-list { display: grid; gap: 12px; margin-top: 28px; }
.gate-item {
  display: grid; grid-template-columns: 36px 88px 1fr auto; gap: 14px; align-items: center;
  border: 1px solid var(--line); background: var(--white);
  border-radius: var(--radius-lg); padding: 14px 16px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.gate-item:hover { border-color: var(--forest); transform: translateY(-1px); }
.gate-item .num { font-size: 12px; letter-spacing: 0.08em; color: var(--accent); font-weight: 500; }
.gate-item img { width: 88px; height: 64px; object-fit: cover; object-position: top; border-radius: var(--radius-sm); }
.gate-item strong { display: block; font-weight: 500; color: var(--ink); font-size: 16px; }
.gate-item span { display: block; font-size: 13px; color: var(--mute); }
.gate-item .copy { min-width: 0; }
.gate-item .go {
  font-size: 13px; color: #F7F4EE; font-weight: 500;
  background: var(--forest); border-radius: 99px; padding: 8px 14px; min-height: 0;
}

.convo { list-style: none; margin-top: 12px; display: grid; gap: 6px; }
.convo li { font-size: 13px; color: var(--ink-2); padding-left: 12px; border-left: 1px solid var(--line); }

.lifecycle p { font-size: 12px; color: var(--mute); margin-top: 8px; line-height: 1.45; }

.band-dark .ai-card { background: rgba(255,253,248,0.04); border-color: rgba(247,244,238,0.14); color: #F4F1EA; }
.band-dark .ai-card .small { color: rgba(247,244,238,0.68); }

@media (max-width: 1024px) {
  .hero-grid, .split, .split.reverse, .workspace, .editorial, .caps, .values, .ft-grid, .lifecycle, .resource-grid, .story, .role-grid, .steps, .gate {
    grid-template-columns: 1fr;
  }
  .gate-panel { padding: 40px 24px 64px; }
  .gate-visual .overlay { padding: 28px; }
  .gate-visual img { min-height: 240px; height: 42vh; }
  .gate-visual h2 { font-size: 32px; }
  .gate-item { grid-template-columns: 32px 1fr auto; }
  .gate-item img { display: none; }
  .role-card { grid-template-columns: 1fr; }
  .role-card img { width: 100%; height: 160px; }
  .philosophy { grid-template-columns: 1fr; }
  .philosophy img { height: 180px; }
  .ha-links { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; flex-direction: column; }
  .ha-nav .wrap { grid-template-columns: auto 1fr auto; }
  .hero-visual { min-height: 0; }
  .hero-visual img.people, .split img.photo, .editorial .media img { height: 320px; width: 100%; }
  .hero-visual .product-chip { position: relative; width: 100%; right: auto; bottom: auto; margin-top: -48px; }
  .lifecycle { grid-template-columns: repeat(2, 1fr); }
  .lifecycle article { border-bottom: 1px solid var(--line); padding: 20px 16px 20px 0; }
  .cap, .cap:nth-child(odd), .cap:nth-child(even) { padding: 28px 0; border-right: 0; }
  .editorial .panel { padding: 4px 4px 8px; }
  .editorial .media img { height: 200px; }
  .kpi-row { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap, .wrap-wide { width: calc(100% - 32px); }
  .sec { padding: 64px 0; }
  .hero { padding: 40px 0 24px; }
  .ha-actions .btn-ghost { display: none; }
  .lifecycle { grid-template-columns: 1fr; }
  h1, .h1 { font-size: 36px; }
}
