/* Hexagon Studio — shared styles for every page */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/newsreader.woff2') format('woff2-variations'), url('fonts/newsreader.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('fonts/dm-sans.woff2') format('woff2-variations'), url('fonts/dm-sans.woff2') format('woff2');
}

:root {
  /* colour */
  --mist:       #EEF1F4;   /* page background */
  --paper:      #FFFFFF;   /* raised surfaces */
  --line:       #D6DCE3;   /* hairlines */
  --ink:        #14243A;   /* headings, primary text */
  --ink-soft:   #4E5B6E;   /* body text */
  --ink-faint:  #6F7B8C;   /* captions */
  --navy:       #0F1D30;   /* dark sections */
  --navy-line:  #24354D;
  --bronze:     #9A6532;   /* accent on light */
  --bronze-lt:  #D3A26C;   /* accent on dark */
  --bronze-wash:#F4ECE2;

  /* type */
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* layout */
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
p, li, .step-note, .step-title { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 4px; }

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

/* ── Type ── */
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 460;
  letter-spacing: -0.015em;
  line-height: 1.08;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--ink-soft); max-width: 36em; }
.small { font-size: 0.9rem; color: var(--ink-faint); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 1rem; font-weight: 550;
  padding: 14px 26px; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1F3452; }
.btn-quiet { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-quiet:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bronze-wash); }

/* ── Logo ── */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo img { width: 44px; height: 44px; display: block; }
.logo span { font-family: var(--serif); font-size: 1.3rem; font-weight: 520; letter-spacing: -0.01em; }

/* ── Header / nav ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 241, 244, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; font-size: 0.95rem; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links .btn { padding: 10px 20px; font-size: 0.93rem; }
.nav-links a.btn, .nav-links a.btn:hover, .nav-links a.btn[aria-current] { color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ── Sections ── */
.section { padding: clamp(80px, 11vw, 136px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 + p { margin-top: 18px; }

/* hexagon bullet used across the site */
.hex-list { list-style: none; }
.hex-list li { position: relative; padding-left: 22px; margin: 8px 0; }
.hex-list li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 9px; height: 10px; background: var(--bronze);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* ── Hero ── */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(80px, 10vw, 128px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { max-width: 11em; }
.hero .lede { margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.assurances { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 32px; font-size: 0.93rem; color: var(--ink-faint); }
.assurances li { margin: 0; }

/* The system drawing — the one memorable moment */
.system {
  background: var(--paper);
  border-radius: 22px;
  padding: 30px 30px 24px;
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(20, 36, 58, 0.28);
}
.system-caption { font-size: 0.88rem; color: var(--ink-faint); margin-bottom: 22px; }
.system-caption strong { color: var(--ink); font-weight: 600; }
.steps-drawn { list-style: none; position: relative; }
.steps-drawn::before {
  content: ''; position: absolute; z-index: 0; left: 17px; top: 31px; bottom: 31px; width: 2px;
  background: var(--line);
}
.steps-drawn::after {
  content: ''; position: absolute; z-index: 0; left: 17px; top: 31px; width: 2px; height: calc(100% - 62px);
  background: var(--bronze); transform-origin: top; transform: scaleY(0);
  animation: drawLine 2.2s cubic-bezier(.6,.1,.3,1) .4s forwards;
}
.steps-drawn li {
  position: relative; z-index: 1; display: grid; grid-template-columns: 36px 1fr; gap: 16px;
  align-items: start; padding: 11px 0;
  opacity: 0; animation: nodeIn .5s ease forwards;
}
.steps-drawn li:nth-child(1) { animation-delay: .3s; }
.steps-drawn li:nth-child(2) { animation-delay: .8s; }
.steps-drawn li:nth-child(3) { animation-delay: 1.3s; }
.steps-drawn li:nth-child(4) { animation-delay: 1.8s; }
.steps-drawn li:nth-child(5) { animation-delay: 2.3s; }
.node {
  width: 36px; height: 40px; display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--paper);
}
.node svg { width: 36px; height: 40px; }
.node-hex { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; }
.node-dot { fill: var(--bronze); }
.steps-drawn li:last-child .node-hex { fill: var(--ink); stroke: var(--ink); }
.steps-drawn li:last-child .node-dot { fill: var(--bronze-lt); }
.step-title { color: var(--ink); font-weight: 600; font-size: 1rem; line-height: 1.35; padding-top: 2px; }
.step-note { display: block; font-size: 0.9rem; color: var(--ink-faint); line-height: 1.45; margin-top: 2px; }

@keyframes drawLine { to { transform: scaleY(1); } }
@keyframes nodeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Services ── */
.offer { border-top: 1px solid var(--line); }
.offer-row {
  display: grid; grid-template-columns: 0.9fr 1.3fr 1fr; gap: clamp(24px, 4vw, 56px);
  padding: 40px 0; border-bottom: 1px solid var(--line);
}
.offer-row .scale { font-size: 0.93rem; color: var(--ink-faint); margin-top: 6px; }
.offer-row .tag { margin-top: 14px; }
.offer-row p { max-width: 34em; }
.offer-row .hex-list { font-size: 0.95rem; margin-top: -6px; }

.tag {
  display: inline-block; font-family: var(--sans); font-size: 0.78rem; font-weight: 600;
  color: var(--bronze); background: var(--bronze-wash);
  padding: 3px 10px; border-radius: 999px; letter-spacing: 0.01em;
}

.ai-note {
  display: grid; grid-template-columns: 0.9fr 1.3fr 1fr; gap: clamp(24px, 4vw, 56px);
  padding: 40px 0; border-bottom: 1px solid var(--line);
}
.ai-note .hex-list { font-size: 0.95rem; margin-top: -6px; }

/* ── Work ── */
.work-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: stretch; }
.work {
  border-radius: 20px; padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column;
}
.work h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: 14px; }
.work .kind { font-size: 0.9rem; margin-bottom: 18px; }
.work .hex-list { margin-top: 20px; font-size: 0.95rem; }
.work .built-with { margin-top: auto; padding-top: 28px; font-size: 0.88rem; }
.work-dark { background: var(--navy); color: #B9C4D2; }
.work-dark h3 { color: #fff; }
.work-dark .kind { color: var(--bronze-lt); }
.work-dark .hex-list li::before { background: var(--bronze-lt); }
.work-dark .built-with { color: #8C99AB; border-top: 1px solid var(--navy-line); margin-top: 28px; }
.work-dark .licence { font-size: 0.88rem; color: #8C99AB; margin-top: 14px; }
.work-light { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.work-light .kind { color: var(--bronze); }
.work-light .btn { align-self: flex-start; margin-top: 28px; }
.work-after { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.work-after p { color: var(--ink); font-family: var(--serif); font-size: 1.35rem; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.price {
  background: var(--paper); border-radius: 20px; padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 1px 0 var(--line);
}
.price .from { font-size: 0.95rem; color: var(--ink-faint); }
.price .figure { font-family: var(--serif); font-size: clamp(3.6rem, 7vw, 5.2rem); color: var(--ink); line-height: 1; margin: 8px 0 18px; font-weight: 430; letter-spacing: -0.03em; }
.price p { font-size: 0.97rem; }
.price .hex-list { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.95rem; }
.pricing-text p + p { margin-top: 16px; }
.pricing-text h3 { margin-bottom: 18px; }

/* ── Process ── */
.process { --g: clamp(20px, 3vw, 40px); list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--g); counter-reset: step; position: relative; }
.process::before { content: ''; position: absolute; z-index: 0; top: 24px; left: 22px; right: calc((100% - 3 * var(--g)) / 4 - 22px); height: 1px; background: var(--line); }
.process li { position: relative; z-index: 1; counter-increment: step; }
.process .num {
  width: 44px; height: 48px; display: grid; place-items: center; margin-bottom: 22px; position: relative;
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink); font-weight: 500;
}
.process .num::before {
  content: ''; position: absolute; inset: 0; background: var(--paper);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  z-index: -1;
}
.process .num::after { content: counter(step); }
.process h3 { font-size: 1.25rem; margin-bottom: 10px; }
.process p { font-size: 0.96rem; }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.about-text p { margin-top: 18px; max-width: 34em; }
.about-text h2 { margin-bottom: 6px; }
.principles { list-style: none; border-top: 1px solid var(--line); }
.principles li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.principles strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 520; color: var(--ink); margin-bottom: 4px; }
.principles span { font-size: 0.96rem; }

/* ── Closing call to action ── */
.closing { background: var(--navy); color: #B9C4D2; padding: clamp(80px, 11vw, 128px) 0; }
.closing h2 { color: #fff; max-width: 14em; }
.closing p { margin-top: 20px; max-width: 34em; font-size: 1.1rem; }
.closing .btn { margin-top: 34px; }

/* ── Footer ── */
.site-footer { background: var(--navy); color: #8C99AB; padding: 0 0 40px; font-size: 0.92rem; }
.footer-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 36px 0; border-top: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line);
}
.site-footer .logo { color: #fff; }
.site-footer .logo .mark-outer { stroke: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; }
.footer-links a { text-decoration: none; color: #B9C4D2; }
.footer-links a:hover { color: #fff; }
.legal { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding-top: 28px; line-height: 1.7; }
.legal a { color: #B9C4D2; }

/* ── Page header (contact, privacy) ── */
.page-head { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 64px); }
.page-head p { margin-top: 20px; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: start; padding-bottom: clamp(80px, 10vw, 128px); }
.contact-details { list-style: none; border-top: 1px solid var(--line); }
.contact-details li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-details .label { display: block; font-size: 0.88rem; color: var(--ink-faint); margin-bottom: 2px; }
.contact-details .value { color: var(--ink); font-size: 1.05rem; }
.contact-details a.value { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-details a.value:hover { border-bottom-color: var(--ink); }
.contact-side p.small { margin-top: 24px; }

.form-card { background: var(--paper); border-radius: 22px; padding: clamp(28px, 4vw, 48px); box-shadow: 0 1px 0 var(--line), 0 30px 60px -36px rgba(20, 36, 58, 0.3); }
.form-card h2 { font-size: 1.9rem; }
.form-card .intro { margin: 8px 0 30px; font-size: 0.97rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.93rem; font-weight: 550; color: var(--ink); margin-bottom: 8px; }
.field .optional { font-weight: 400; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--mist); border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 13px 15px; transition: border-color .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234E5B6E' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; cursor: pointer;
}
.field textarea { min-height: 140px; resize: vertical; }
.field [aria-invalid="true"] { border-color: #B3412E; background: #fff; }
.field .error { display: none; color: #A33A28; font-size: 0.88rem; margin-top: 6px; }
.field .error.show { display: block; }
.form-card .btn { width: 100%; margin-top: 6px; padding: 16px; }
.form-card .btn[disabled] { opacity: .6; cursor: wait; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); background: #FBEDEA; color: #8A3121; font-size: 0.95rem; }
.form-status.show { display: block; }
.form-note { margin-top: 16px; font-size: 0.88rem; color: var(--ink-faint); text-align: center; }
.form-note a { color: var(--ink-soft); }
.form-done { display: none; padding: 20px 0 8px; }
.form-done.show { display: block; }
.form-done svg { width: 40px; height: 44px; margin-bottom: 20px; }
.form-done p { margin-top: 10px; }

/* Hidden spam trap: people never see it, bots fill it in */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ── Privacy ── */
.policy { max-width: 44rem; padding-bottom: clamp(80px, 10vw, 128px); }
.policy section { padding: 36px 0; border-top: 1px solid var(--line); }
.policy h2 { font-size: 1.7rem; margin-bottom: 16px; }
.policy h3 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; margin: 22px 0 6px; }
.policy p + p { margin-top: 14px; }
.policy .hex-list { margin: 12px 0 14px; }
.policy strong { color: var(--ink); font-weight: 600; }
.policy a { color: var(--ink); }
.policy .note { background: var(--paper); border-radius: var(--radius-sm); padding: 18px 20px; margin-top: 18px; font-size: 0.96rem; }
.policy address { font-style: normal; background: var(--paper); border-radius: var(--radius-sm); padding: 22px 24px; margin-top: 18px; line-height: 1.8; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid, .pricing-grid, .about-grid, .contact-grid, .work-grid { grid-template-columns: 1fr; }
  .offer-row, .ai-note { grid-template-columns: 1fr; gap: 16px; }
  .offer-row .hex-list, .ai-note .hex-list { margin-top: 4px; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .process::before { display: none; }
  .system { max-width: 560px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--mist); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 18px; }
  .nav-links a { display: block; padding: 15px 0; font-size: 1.05rem; }
  .nav-links .btn { display: flex; padding: 14px 20px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .process { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .legal { grid-template-columns: 1fr; }
  .system { padding: 24px 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .steps-drawn li { opacity: 1; animation: none; }
  .steps-drawn::after { animation: none; transform: scaleY(1); }
}
