/* Foundry Design · "Kinetic" (Foundry B) */

:root {
  --heat: #ff6a13;
  --hot: #ffb321;
  --ink: #141210;
  --paper: #f3efe8;
  --card: #fffdf9;
  --rust: #c7470a;
  --muted: #4a453f;
  --line-dark: #3a342e;
  --on-dark: #d8d1c7;
  --on-dark-muted: #bdb5ab;

  --pad-x: clamp(20px, 5vw, 72px);
  --max: 1180px;
  --rule: 1.5px solid var(--ink);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --sans: 'Archivo', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { margin: 0; background: var(--paper); }
body {
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--ink); }
input, textarea, button { font: inherit; color: inherit; }
::selection { background: var(--heat); color: var(--ink); }
:focus-visible { outline: 3px solid var(--heat); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-weight: 700;
}
.skip:focus { top: 16px; color: var(--paper); }

.wrap { max-width: var(--max); margin: 0 auto; }
.heat { color: var(--heat); }
.hot { color: var(--hot); }
.rust { color: var(--rust); }
.outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.mono { font-family: var(--mono); font-size: 12px; }

.display-1,
.display-2,
.faq__title {
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -.03em;
  line-height: .9;
}
.display-1 { font-size: clamp(44px, 5.4vw, 104px); line-height: .86; letter-spacing: -.035em; }
.display-2 { font-size: clamp(40px, 6vw, 92px); }

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 800;
  font-size: 17px;
  padding: 16px 24px;
  border-radius: 999px;
  border: var(--rule);
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background-color .15s, color .15s;
}
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--heat); color: var(--ink); }
.btn--heat { background: var(--heat); color: var(--ink); }
.btn--heat:hover { color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--lift { box-shadow: 4px 4px 0 var(--ink); }
.btn--lift:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn--block { display: block; width: 100%; font-size: 18px; padding: 18px; }

/* Header */
.bar {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(var(--max), calc(100% - 28px));
  display: flex; align-items: center; gap: 20px;
  padding: 10px 10px 10px 18px;
  background: rgba(243, 239, 232, .85);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: var(--rule); border-radius: 28px;
}
.bar__brand { display: flex; align-items: center; gap: 10px; color: var(--ink); margin-right: auto; }
.bar__brand:hover { color: var(--ink); }
.bar__brand img { height: 28px; width: auto; }
.bar__brand span { font-weight: 900; font-stretch: 125%; letter-spacing: .03em; font-size: 16px; }
.bar__nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 600; }
.bar__nav a { color: var(--ink); }
.bar__nav a:hover { color: var(--rust); }
.bar__nav-cta { display: none; }
.bar__cta { font-size: 15px; font-weight: 700; padding: 11px 18px; border-color: var(--ink); }
.bar__toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: var(--rule); background: transparent; cursor: pointer;
  place-items: center;
}
.bar__burger, .bar__burger::before, .bar__burger::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.bar__burger { position: relative; }
.bar__burger::before, .bar__burger::after { content: ''; position: absolute; left: 0; }
.bar__burger::before { top: -6px; }
.bar__burger::after { top: 6px; }
.bar[data-menu="open"] .bar__burger { background: transparent; }
.bar[data-menu="open"] .bar__burger::before { transform: translateY(6px) rotate(45deg); }
.bar[data-menu="open"] .bar__burger::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .bar { flex-wrap: wrap; gap: 10px; padding: 8px 8px 8px 16px; }
  .bar__toggle { display: grid; order: 3; }
  .bar__cta { order: 2; padding: 10px 16px; }
  .bar__nav {
    order: 4; flex-basis: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 0 4px; font-size: 20px; font-weight: 800;
  }
  .bar__nav a { padding: 14px 8px; border-top: 1px solid rgba(20, 18, 16, .15); }
  .bar[data-menu="open"] { background: var(--paper); }
  .bar[data-menu="open"] .bar__nav { display: flex; }
}
@media (max-width: 400px) {
  .bar__cta { display: none; }
  .bar__nav .bar__nav-cta { display: block; color: var(--rust); }
}

/* Hero */
.hero { height: 230vh; position: relative; }
.hero__frame {
  position: sticky; top: 0;
  height: 100vh; height: 100svh; min-height: 620px;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px 0 36px;
}
.hero__title {
  display: flex; flex-direction: column; gap: clamp(4px, 1vw, 14px);
  font-weight: 900; font-stretch: 125%;
  font-size: clamp(48px, 8.5vw, 150px);
  line-height: .86; letter-spacing: -.035em; white-space: nowrap;
}
.hero__line { display: block; will-change: transform; }
/* Each line slides from --from to --to as the hero scrolls. */
.hero__line--1 { --from: 4vw; --to: -20vw; }
.hero__line--2 { --from: -23vw; --to: 4vw; display: flex; align-items: center; gap: 2.5vw; }
.hero__line--3 { --from: 8vw; --to: -11vw; }
.hero__line { transform: translateX(calc(var(--from) + var(--p, 0) * (var(--to) - var(--from)))); }
.hero__mark {
  height: .7em; width: auto; flex: none;
  transform: rotate(calc(var(--p, 0) * 360deg)) scale(calc(1 + var(--p, 0) * .15));
}
.hero__foot {
  margin-top: clamp(28px, 5vh, 56px); padding: 0 var(--pad-x);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.hero__lede { max-width: 30em; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.45; text-wrap: pretty; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Phones: no long pinned scroll. The headline fits the screen and drifts as the hero scrolls away. */
@media (max-width: 760px) {
  .hero { height: auto; }
  .hero__frame {
    position: relative; height: auto; min-height: 0;
    justify-content: flex-start; padding: 128px 0 56px;
  }
  .hero__title { font-size: min(8.2vw, 60px); gap: 6px; padding: 0 var(--pad-x); }
  .hero__line--1 { --from: 0vw; --to: -10vw; }
  .hero__line--2 { --from: 0vw; --to: 8vw; }
  .hero__line--3 { --from: 0vw; --to: -6vw; }
  .hero__foot { margin-top: 36px; }
  .hero__actions .btn { padding: 14px 20px; font-size: 16px; }
}

/* Services */
.services { padding: clamp(60px, 8vw, 120px) var(--pad-x) 0; }
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 20px; margin-bottom: 48px;
}
.section-head p { max-width: 22em; font-size: 18px; line-height: 1.5; }
.stack { display: flex; flex-direction: column; gap: 28px; padding-bottom: 80px; }
.stack__card {
  position: sticky; top: 100px; min-height: 340px;
  border: var(--rule); border-radius: 32px;
  padding: clamp(28px, 4vw, 56px);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px;
}
.stack__card:nth-child(2) { top: 124px; }
.stack__card:nth-child(3) { top: 148px; }
.stack__card:nth-child(4) { top: 172px; }
.stack__card--ink { background: var(--ink); color: var(--paper); }
.stack__card--heat { background: var(--heat); }
.stack__card--hot { background: var(--hot); }
.stack__card--card { background: var(--card); }
.stack__num { font-weight: 900; font-stretch: 125%; font-size: clamp(80px, 12vw, 180px); line-height: .8; }
.stack__card--ink .stack__num { color: var(--heat); }
.stack__body { max-width: 30em; align-self: flex-end; }
.stack__body h3 { margin-bottom: 14px; font-weight: 900; font-stretch: 125%; font-size: clamp(28px, 3vw, 44px); line-height: 1; }
.stack__body p { font-size: 18px; line-height: 1.55; }
.stack__card--ink .stack__body p { color: var(--on-dark); }
.stack__card--card .stack__body p { color: var(--muted); }

/* Phones: cards sit one after another instead of stacking over each other. */
@media (max-width: 760px) {
  .section-head { margin-bottom: 28px; }
  .stack { gap: 16px; padding-bottom: 64px; }
  .stack__card,
  .stack__card:nth-child(n) {
    position: static; min-height: 0; border-radius: 24px;
    flex-direction: column; flex-wrap: nowrap; gap: 20px; padding: 28px 24px;
  }
  .stack__num { font-size: 64px; }
  .stack__body { align-self: auto; }
  .stack__body h3 { font-size: 28px; margin-bottom: 10px; }
  .stack__body p { font-size: 17px; }
}

/* Process */
.process { background: var(--ink); color: var(--paper); padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; }
.process__ticker {
  font-weight: 900; font-stretch: 125%; font-size: clamp(60px, 10vw, 160px);
  line-height: .9; letter-spacing: -.03em; white-space: nowrap;
  transform: translateX(calc(10vw - var(--p, .5) * 50vw));
  margin-bottom: clamp(48px, 6vw, 88px);
}
.process__steps {
  list-style: none; margin: 0 auto; padding: 0 var(--pad-x);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px;
}
.step {
  border: 1.5px solid var(--line-dark); border-radius: 24px; padding: 28px;
  transition: border-color .3s;
}
.step:hover { border-color: var(--heat); }
.step__i {
  width: 44px; height: 44px; border-radius: 50%; background: var(--heat); color: var(--ink);
  display: grid; place-items: center; font-weight: 900; font-size: 18px;
}
.step h3 { margin: 22px 0 10px; font-weight: 900; font-stretch: 125%; font-size: 26px; }
.step p { color: var(--on-dark-muted); font-size: 16px; line-height: 1.55; text-wrap: pretty; }

/* Reveal on scroll: JS sets --in to 0 for elements below the fold, then back to 1. */
[data-reveal] {
  opacity: var(--in, 1);
  translate: 0 calc((1 - var(--in, 1)) * 40px);
  transition: opacity .8s, translate .8s var(--ease), border-color .3s;
}
.plans [data-reveal]:nth-child(2), .process__steps [data-reveal]:nth-child(2) { transition-delay: .1s; }
.process__steps [data-reveal]:nth-child(3) { transition-delay: .2s; }
.process__steps [data-reveal]:nth-child(4) { transition-delay: .3s; }

/* Pricing */
.pricing { padding: clamp(80px, 10vw, 140px) var(--pad-x); }
.pricing .display-2 { margin-bottom: 16px; }
.pills { list-style: none; padding: 0; margin: 0 0 48px; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { border: var(--rule); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 15px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 28px; }
.plan {
  position: relative;
  border: var(--rule); border-radius: 32px; padding: 40px;
  display: flex; flex-direction: column; gap: 24px;
  box-shadow: 8px 8px 0 var(--ink);
}
.plan--anvil { background: var(--card); rotate: -1deg; }
.plan--forge { background: var(--heat); rotate: 1deg; }
.plan__flag {
  position: absolute; top: -22px; right: 24px;
  background: var(--hot); border: var(--rule); border-radius: 999px;
  padding: 8px 14px; font-weight: 900; font-size: 14px; rotate: 6deg;
}
.plan__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.plan__head h3 { font-weight: 900; font-stretch: 125%; font-size: 28px; }
.plan__head .mono { padding-top: 8px; text-align: right; }
.plan__price { display: flex; align-items: baseline; gap: 6px; font-size: 18px; font-weight: 600; }
.plan__price span { font-weight: 900; font-stretch: 125%; font-size: 88px; letter-spacing: -.04em; line-height: .9; }
.plan__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.plan__list li { display: flex; gap: 12px; }
.plan__list li::before { content: '✦'; font-weight: 900; }
.plan--anvil .plan__list li::before { color: var(--rust); }
.plan__cta { margin-top: auto; padding: 16px; }
.plan--forge .plan__cta:hover { background: var(--paper); color: var(--ink); }

@media (max-width: 760px) {
  .plan { padding: 28px 24px; border-radius: 24px; box-shadow: 6px 6px 0 var(--ink); }
  .plan__head { flex-direction: column; gap: 4px; }
  .plan__head .mono { padding-top: 0; text-align: left; }
  .plan__price span { font-size: 72px; }
}

/* FAQ */
.faq { padding: 0 var(--pad-x) clamp(80px, 10vw, 140px); }
.faq__grid { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 80px); }
.faq__title { flex: 1 1 280px; font-size: clamp(40px, 5vw, 76px); }
.faq__list { flex: 2 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.qa { border: var(--rule); border-radius: 24px; overflow: hidden; transition: background-color .2s; }
.qa.is-open { background: var(--card); }
.qa h3 { font-size: 19px; font-weight: 800; }
.qa button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 26px;
}
.qa button:focus-visible { outline: 3px solid var(--heat); outline-offset: -3px; border-radius: 24px; }
.qa__icon {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-size: 20px;
  transition: transform .3s;
}
.qa.is-open .qa__icon { transform: rotate(45deg); }
.qa__a p { padding: 0 26px 24px; font-size: 17px; line-height: 1.55; text-wrap: pretty; }

@media (max-width: 760px) {
  .faq__list { flex-basis: 100%; }
  .qa button { padding: 18px 20px; }
  .qa__a p { padding: 0 20px 20px; }
}

/* Start / enquiry */
.start { padding: 0 clamp(12px, 2vw, 28px) clamp(12px, 2vw, 28px); }
.start__panel {
  background: var(--heat); border: var(--rule); border-radius: 40px;
  padding: clamp(32px, 6vw, 96px) clamp(20px, 5vw, 72px);
  display: flex; flex-wrap: wrap; gap: clamp(40px, 5vw, 80px);
}
.start__intro { flex: 1 1 340px; min-width: 0; }
.start__intro p { margin-top: 24px; font-size: 19px; line-height: 1.5; max-width: 24em; }
.start__form { flex: 1.3 1 460px; min-width: 0; }

.form, .sent {
  background: var(--card); border: var(--rule); border-radius: 28px;
  box-shadow: 8px 8px 0 var(--ink);
}
.form { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; }
.field input, .field textarea {
  border: var(--rule); border-radius: 14px; padding: 14px 16px;
  font-size: 16px; font-weight: 400; background: var(--paper); outline: none;
  transition: box-shadow .15s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { box-shadow: 3px 3px 0 var(--heat); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.field input[aria-invalid="true"] { border-color: var(--rust); box-shadow: 3px 3px 0 var(--rust); }
.field__err { color: var(--rust); font-weight: 700; font-size: 14px; }
.field__err:empty { display: none; }

.chips { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.chips__set { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 9px 15px; border-radius: 999px;
  font-size: 15px; font-weight: 600; border: var(--rule);
  transition: background-color .15s, color .15s;
}
.chips label:hover span { background: rgba(20, 18, 16, .07); }
.chips input:checked + span { background: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 3px solid var(--heat); outline-offset: 2px; }

/* Turnstile stays zero-height unless it needs the visitor to click. */
.turnstile { display: flex; justify-content: center; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__alert {
  border: var(--rule); border-radius: 14px; padding: 14px 16px;
  background: #ffe3d2; font-size: 15px; line-height: 1.5; font-weight: 600;
}
.form__alert a { color: var(--ink); text-decoration: underline; }
.form [type="submit"][disabled] { opacity: .6; cursor: progress; }

.sent { padding: 48px 36px; }
.sent:focus { outline: none; }
.sent__title { font-weight: 900; font-stretch: 125%; font-size: 44px; line-height: 1; }
.sent p:not(.sent__title) { font-size: 18px; line-height: 1.55; margin: 18px 0 26px; }
.linkish { all: unset; cursor: pointer; font-weight: 800; text-decoration: underline; }
.linkish:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

@media (max-width: 760px) {
  .start__panel { border-radius: 28px; }
  .start__form { flex-basis: 100%; }
  .form, .sent { box-shadow: 5px 5px 0 var(--ink); border-radius: 22px; }
}

/* Footer */
.foot {
  padding: 40px var(--pad-x);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
}
.foot img { height: 42px; width: auto; }
.foot p { font-size: 14px; color: var(--muted); }

/* Reduced motion: hold everything still in a readable position. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero__frame { position: relative; }
  /* Headline sits still and sized to fit instead of sliding. */
  .hero__frame { min-height: 0; padding-top: 120px; }
  .hero__title { font-size: clamp(28px, 7vw, 130px); padding: 0 var(--pad-x); }
  .hero__line--1, .hero__line--2, .hero__line--3, .hero__mark { transform: none; }
  .process__ticker { --p: .3; }
  [data-reveal] { --in: 1; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
