/* HK Craft Labs
   Warm cream paper, navy ink, and flat blocks of coral, mint, sun and lilac.
   Cards carry a solid offset shadow, like paper cut-outs on a desk. */

:root {
  --bg: #f5f1ff;
  --bg-2: #ebe4ff;
  --surface: #ffffff;
  --ink: #1f2a44;
  --ink-2: #47506a;
  --ink-3: #6e7690;
  --line: #1f2a44;
  --soft-line: #dcd3f5;

  --coral: #ff6f59;
  --coral-deep: #e5533d;
  --mint: #8fdcc2;
  --sun: #ffcb5c;
  --lilac: #c8b8ff;
  --sky: #9fd0ff;
  --on-color: #1f2a44;
  --accent-text: #e5533d;
  --tag-bg: #ffffff;
  --tag-ink: #1f2a44;

  --talk-bg: #1f2a44;
  --talk-ink: #fff7ec;
  --talk-ink-2: #c9cde0;

  --shadow: 4px 4px 0 var(--line);
  --shadow-lg: 7px 7px 0 var(--line);

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131a2b;
    --bg-2: #18213a;
    --surface: #1d2742;
    --ink: #fff3e2;
    --ink-2: #d2d5e3;
    --ink-3: #9ca3bd;
    --line: #0a0f1c;
    --soft-line: #2a3556;
    --talk-bg: #0e1422;
    --talk-ink: #fff3e2;
    --talk-ink-2: #b9bfd6;
    --shadow: 4px 4px 0 #0a0f1c;
    --shadow-lg: 7px 7px 0 #0a0f1c;
    --accent-text: #ff6f59;
    --tag-bg: #fff7ec;
    --tag-ink: #1f2a44;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131a2b;
  --bg-2: #18213a;
  --surface: #1d2742;
  --ink: #fff3e2;
  --ink-2: #d2d5e3;
  --ink-3: #9ca3bd;
  --line: #0a0f1c;
  --soft-line: #2a3556;
  --talk-bg: #0e1422;
  --talk-ink: #fff3e2;
  --talk-ink-2: #b9bfd6;
  --shadow: 4px 4px 0 #0a0f1c;
  --shadow-lg: 7px 7px 0 #0a0f1c;
  --accent-text: #ff6f59;
  --tag-bg: #fff7ec;
  --tag-ink: #1f2a44;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}
.masthead__row { display: flex; align-items: center; gap: 28px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  background: var(--coral); color: var(--on-color);
  border: 2px solid var(--line); border-radius: 11px;
  font: 800 15px/1 var(--display); letter-spacing: -0.03em;
  transform: rotate(-6deg);
}
.brand__name { font: 700 20px/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }

.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); text-decoration: underline wavy var(--coral); text-underline-offset: 6px; }

.masthead__social { display: flex; align-items: center; gap: 8px; }
.icon-link {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  color: var(--ink); transition: background-color .15s ease;
}
.icon-link:hover { background: var(--bg-2); }
.icon-link svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-link svg .fill { fill: currentColor; stroke: none; }
.masthead__social .btn { margin-left: 6px; }

.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--line);
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.theme-toggle:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.theme-toggle:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--line); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .masthead__social { margin-left: auto; }
}
@media (max-width: 520px) {
  .masthead__row { gap: 12px; }
  .masthead__social { gap: 4px; }
  .masthead__social .btn { display: none; }
}
@media (max-width: 360px) {
  .brand__name { font-size: 18px; }
  .masthead__social .icon-link { width: 34px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 16px/1 var(--sans);
  padding: 15px 24px; border-radius: 14px;
  background: var(--ink); color: var(--bg);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--line); }
.btn--coral { background: var(--coral); color: var(--on-color); }
.btn--ghost { background: var(--surface); color: var(--ink); }
.btn--small { padding: 10px 16px; font-size: 14.5px; border-radius: 12px; box-shadow: 3px 3px 0 var(--line); }
.btn--small:hover { box-shadow: 4px 4px 0 var(--line); }

/* ---------- Hero ---------- */

.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 112px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; } }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--mint); color: var(--on-color);
  border: 2px solid var(--line);
  font-size: 14px; font-weight: 600;
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #10805e; position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .pulse::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #10805e;
    animation: pulse 1.8s ease-out infinite;
  }
}
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

.display {
  margin-top: 26px;
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
}
.scribble { position: relative; display: inline-block; color: var(--accent-text); white-space: nowrap; }
.scribble svg {
  position: absolute; left: 0; right: 0; bottom: -0.12em; width: 100%; height: 0.24em; overflow: visible;
}
.scribble path { fill: none; stroke: var(--sun); stroke-width: 7; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .scribble path { stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.1s .5s cubic-bezier(.6,.1,.3,1) forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.lede { margin-top: 30px; font-size: clamp(17.5px, 1.6vw, 20px); color: var(--ink-2); max-width: 34em; }
.lede strong { color: var(--ink); }

.hero__actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Founder card */
.founder-card {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 30px 28px 26px;
  transform: rotate(1.5deg);
  max-width: 440px;
}
@media (max-width: 920px) { .founder-card { transform: none; } }
.sticker {
  position: absolute; top: -18px; right: 22px;
  background: var(--sun); color: var(--on-color);
  border: 2px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font: 700 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .06em;
  transform: rotate(4deg);
}
.founder-card__top { display: flex; align-items: center; gap: 16px; }
.avatar {
  display: grid; place-items: center; width: 64px; height: 64px; flex: none;
  border-radius: 50%; border: 2px solid var(--line);
  background: var(--lilac); color: var(--on-color);
  font: 800 22px/1 var(--display); letter-spacing: -0.03em;
}
.founder-card__name { font: 700 22px/1.2 var(--display); letter-spacing: -0.01em; }
.founder-card__role { font-size: 14.5px; color: var(--ink-3); }
.founder-card__facts { list-style: none; margin: 22px 0 0; padding: 0; }
.founder-card__facts li {
  display: grid; grid-template-columns: 110px 1fr; gap: 12px;
  padding: 11px 0; border-top: 1.5px dashed var(--soft-line); font-size: 15.5px; font-weight: 500;
}
.founder-card__facts span { color: var(--ink-3); font-weight: 400; font-size: 14px; }
.founder-card__note {
  margin-top: 18px; padding: 14px 16px; border-radius: 14px;
  background: var(--bg-2); font-size: 15px; color: var(--ink-2); font-style: italic;
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--bg-2); border-block: 2px solid var(--ink); }

.eyebrow {
  display: inline-block; font: 700 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent-text);
}

.section__head { max-width: 640px; margin-bottom: 44px; }
.section__head h2, .story__head h2, .talk__intro h2 { margin-top: 14px; font-size: clamp(32px, 4.4vw, 52px); }
.section__note { margin-top: 16px; color: var(--ink-2); font-size: 17.5px; }

/* Story */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }
.story__body p { color: var(--ink-2); font-size: 18px; }
.story__body p + p { margin-top: 18px; }
.handwritten { font: 600 34px/1 var(--hand) !important; color: var(--accent-text) !important; margin-top: 22px !important; }

/* Lanes */
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 960px) { .lanes { grid-template-columns: 1fr; max-width: 620px; } }
.lane {
  background: var(--mint); color: var(--on-color);
  border: 2px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 28px 26px 24px; display: flex; flex-direction: column;
}
.lane--lilac { background: var(--lilac); }
.lane--sun { background: var(--sun); }
.lane__tag {
  align-self: flex-start; background: var(--tag-bg); color: var(--tag-ink);
  border: 2px solid var(--line); border-radius: 999px;
  padding: 5px 12px; font: 700 12.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em;
}
.lane h3 { margin-top: 18px; font-size: 25px; }
.lane ul { margin: 18px 0 0; padding: 0; list-style: none; flex: 1; }
.lane li { position: relative; padding: 8px 0 8px 22px; font-size: 16px; border-top: 1.5px solid rgba(31, 42, 68, .18); }
.lane li::before { content: "✦"; position: absolute; left: 0; top: 8px; font-size: 13px; }
.lane__stack { margin-top: 18px; font-size: 13.5px; font-weight: 600; opacity: .75; }

/* Topics */
.topics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.topic {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-radius: 16px;
  border: 2px solid var(--line); box-shadow: var(--shadow);
  background: var(--coral); color: var(--on-color);
  font: 600 17px/1.2 var(--sans); cursor: pointer; text-align: left;
  transition: transform .15s ease, box-shadow .15s ease;
}
.topic span { transition: transform .15s ease; }
.topic:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 6px 6px 0 var(--line); }
.topic:hover span { transform: translateX(3px); }
.topic:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--line); }
.topic--mint { background: var(--mint); }
.topic--sun { background: var(--sun); }
.topic--lilac { background: var(--lilac); }
.topic--sky { background: var(--sky); }
.topic--plain { background: var(--surface); color: var(--ink); }
@media (max-width: 560px) { .topics li { flex: 1 1 100%; } .topic { width: 100%; justify-content: space-between; } }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; max-width: 620px; } }
.step {
  background: var(--surface); border: 2px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
  padding: 26px;
}
.step__n {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--sun); color: var(--on-color);
  font: 800 20px/1 var(--display);
}
.step:nth-child(2) .step__n { background: var(--mint); }
.step:nth-child(3) .step__n { background: var(--coral); }
.step h3 { margin-top: 18px; font-size: 23px; }
.step p { margin-top: 8px; color: var(--ink-2); }

/* Promises */
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }
.promises li { padding: 24px 0 26px 44px; border-top: 2px solid var(--ink); position: relative; }
.promises li::before {
  content: ""; position: absolute; left: 0; top: 28px; width: 24px; height: 24px; border-radius: 7px;
  border: 2px solid var(--line); background: var(--mint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231f2a44' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 18px; background-position: center; background-repeat: no-repeat;
}
.promises h3 { font-size: 22px; }
.promises p { margin-top: 8px; color: var(--ink-2); }

/* ---------- Talk ---------- */

.section--talk { background: var(--talk-bg); color: var(--talk-ink); }
.talk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
@media (max-width: 920px) { .talk { grid-template-columns: 1fr; } }

.eyebrow--light { color: var(--sun) !important; }
.talk__intro h2 { color: var(--talk-ink); }
.talk__intro > p { margin-top: 16px; color: var(--talk-ink-2); font-size: 17.5px; max-width: 30em; }

.channels { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .channels { grid-template-columns: 1fr; } }
.channels a {
  display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; text-decoration: none;
  border: 2px solid rgba(255, 247, 236, .22); transition: border-color .15s ease, background-color .15s ease;
}
.channels a:hover { border-color: var(--sun); background: rgba(255, 247, 236, .05); }
.channels__label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--sun); }
.channels__value { font-size: 15.5px; font-weight: 500; overflow-wrap: anywhere; }
.channels li:last-child { grid-column: 1 / -1; }

.brief {
  background: #fff7ec; color: #1f2a44;
  border: 2px solid #0a0f1c; border-radius: 24px; box-shadow: 8px 8px 0 var(--coral);
  padding: clamp(22px, 3.4vw, 36px);
  display: grid; gap: 22px;
}
.field { display: grid; gap: 8px; }
.field__label { font-weight: 700; font-size: 15px; }
.field input, .field textarea, .field select {
  width: 100%; font: 400 16.5px/1.5 var(--sans); color: #1f2a44;
  background: #ffffff; border: 2px solid #1f2a44; border-radius: 12px;
  padding: 12px 14px; transition: box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 150px; }
.field textarea::placeholder { color: #7d8398; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231f2a44' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: 4px 4px 0 var(--sun); }
.field [aria-invalid="true"] { border-color: #d63b24; box-shadow: 4px 4px 0 rgba(214, 59, 36, .35); }
.field.is-flash textarea { box-shadow: 4px 4px 0 var(--mint); }

.form-error { color: #c3321c; font-weight: 600; font-size: 15px; }

.brief__send { display: flex; gap: 12px; flex-wrap: wrap; }
.brief .btn { --line: #1f2a44; }
.brief .btn--ghost { background: #ffffff; color: #1f2a44; }
@media (max-width: 480px) { .brief__send .btn { flex: 1 1 100%; } }
.brief__hint { font-size: 14px; color: #5b627a; }

/* ---------- Footer ---------- */

.footer { background: var(--talk-bg); color: var(--talk-ink-2); border-top: 1px solid rgba(255, 247, 236, .12); padding: 26px 0 34px; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 14.5px; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer .brand__mark { width: 30px; height: 30px; font-size: 13px; border-radius: 9px; border-color: #0a0f1c; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--sun); }

/* ---------- Reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
