/* PCB Creatives — design rules live in CLAUDE.md
   One typeface (Outfit, the logo's), two colours (slate and sand), no black, no serif. */

:root {
  --slate: #4E6672;
  --slate-deep: #3D515B;
  --slate-darker: #33454E;
  --slate-ink: #3D515B;      /* headings on sand: deep slate, never black */
  --sand: #F4EFE6;
  --sand-line: #D6CDBD;
  --ink-2: #4E6672;          /* body text on sand */
  --ink-3: #62798A;          /* small labels on sand */
  --mist: #DDE4E6;           /* secondary text on slate */
  --line: rgba(244, 239, 230, 0.16);

  --sans: "Outfit", "Century Gothic", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --gutter: 20px;
  --max: 1240px;
  --bar: 76px;               /* top bar height */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--slate);
  color: var(--sand);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 3px; }

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

.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: absolute; left: 12px; top: -48px; z-index: 50;
  padding: 10px 14px; background: var(--sand); color: var(--slate-ink);
  border-radius: 6px; text-decoration: none; font-size: 14px;
}
.skip:focus { top: 12px; }

h2 { font-weight: 300; letter-spacing: -0.035em; line-height: 1.04; }

/* ---------- Logo: "pcb creatives", real text in Outfit (sharpest on screen). Files in /assets are the same letters as shapes. ---------- */
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--sand);
  text-decoration: none;
  white-space: nowrap;
}
.logo b { font-weight: 500; }
.logo span { font-weight: 200; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--sand);
  color: var(--slate-ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, transform .25s var(--ease), box-shadow .25s ease;
}
.btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35); }
.btn-small { padding: 10px 20px; font-size: 15px; }
.btn-dark { background: var(--slate-deep); color: var(--sand); }
.btn-dark:hover { background: var(--slate); }

/* ---------- Top bar ----------
   At the top of the page it has no background of its own, so it sits in the same light as the headline (no seam).
   Once the page scrolls beneath it, it turns solid slate with a hairline. */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: rgba(78, 102, 114, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .35s ease, border-color .35s ease;
}
.topbar.is-scrolled { background: var(--slate); border-bottom-color: var(--line); }
.topbar-row { display: flex; align-items: center; justify-content: space-between; height: var(--bar); }
.topnav { display: flex; align-items: center; gap: 28px; }

/* ---------- Opening ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner { position: relative; padding-top: calc(var(--bar) + 72px); padding-bottom: 88px; }

/* Warm light drifting across the slate, like late sun on a wall. Sand only: no new colours. */
.hero-light { position: absolute; inset: 0; pointer-events: none; }
.hero-light i { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.hero-light .l1 { width: 62vw; height: 62vw; right: -18vw; top: -30vw; background: rgba(244, 239, 230, 0.20); animation: drift1 22s ease-in-out infinite alternate; }
.hero-light .l2 { width: 44vw; height: 44vw; right: 12vw; bottom: -30vw; background: rgba(244, 239, 230, 0.12); animation: drift2 28s ease-in-out infinite alternate; }
.hero-light .l3 { width: 30vw; height: 30vw; left: -14vw; bottom: -18vw; background: rgba(61, 81, 91, 0.55); animation: drift1 34s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(-6vw, 5vw, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(7vw, -4vw, 0) scale(0.92); } }

.hero h1 {
  font-weight: 200;
  font-size: clamp(22px, 6.7vw, 44px);   /* phones: sized so line 2 fits on one line */
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.hero h1 .line { display: block; white-space: nowrap; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 em { font-style: normal; font-weight: 500; }   /* the logo's own medium + light pairing */
.hero-actions { margin-top: 36px; }

/* Headline lines rise out from behind their own baseline on load */
.js .hero h1 .line > span { transform: translateY(110%); animation: lineUp 1.1s var(--ease) forwards; }
.js .hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.js .hero-actions { opacity: 0; animation: fadeUp .9s var(--ease) .5s forwards; }
@keyframes lineUp { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Scroll-in motion (only when JavaScript is on) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- The method: pcb opens into plan / clarify / build ----------
   script.js plays this once, on its own clock, when the section comes into view. The finished state is the default. */
.method { background: var(--sand); color: var(--slate-ink); overflow: hidden; }
.method-pin { padding: 96px 0 104px; }
.method-grid { display: grid; gap: 44px; }
.m-word {
  font-size: clamp(56px, 17vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 200;
  white-space: nowrap;
}
.m-word b { font-weight: 500; display: inline-block; transform-origin: 50% 60%; will-change: transform; backface-visibility: hidden; }
.m-rest { display: inline-block; will-change: clip-path, opacity, transform; }
.m-text { margin-top: 16px; color: var(--ink-2); max-width: 22em; }

/* ---------- What we help with: the nucleus ----------
   "Your property" at the centre, six points wired to it, pulses moving along the wires. Drawn by script.js. */
.services { background: var(--slate-deep); padding: 64px 0 72px; overflow: hidden; }
.nucleus { max-width: 940px; margin: 0 auto; }
.nucleus-list { border-top: 1px solid var(--line); }
.nucleus-list li { padding: 18px 0 20px; border-bottom: 1px solid var(--line); font-size: 26px; letter-spacing: -0.03em; line-height: 1.15; }
.js .nucleus.is-drawn .nucleus-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nucleus svg { display: block; width: 100%; height: auto; overflow: visible; }
.nu-orbit { fill: none; stroke: rgba(244, 239, 230, 0.16); stroke-width: 1; }
.nu-wire { stroke: rgba(244, 239, 230, 0.30); stroke-width: 1; transition: stroke .35s ease, stroke-width .35s ease; }
.nu-pulse { fill: var(--sand); }
.nu-core { fill: rgba(244, 239, 230, 0.06); stroke: var(--sand); stroke-width: 1.5; }
.nu-beat { fill: none; stroke: var(--sand); stroke-width: 1; }
.nu-core-brand { fill: var(--sand); font-family: var(--sans); font-weight: 500; letter-spacing: -0.025em; text-anchor: middle; dominant-baseline: central; }   /* the logo's "pcb" */
.nu-node { cursor: default; }
.nu-ring { fill: var(--slate-deep); stroke: rgba(244, 239, 230, 0.55); stroke-width: 1; transition: stroke .35s ease, r .35s var(--ease); }
.nu-dot { fill: var(--sand); transition: r .35s var(--ease); }
.nu-label { fill: var(--mist); font-family: var(--sans); font-weight: 300; text-anchor: middle; dominant-baseline: central; transition: fill .35s ease; }
.nu-hit { fill: transparent; }
/* the point under the pointer (or the one the drawing is highlighting) lights up with its wire */
.nu-node.is-hot .nu-ring { stroke: var(--sand); }
.nu-node.is-hot .nu-label { fill: var(--sand); }
.nu-wire.is-hot { stroke: var(--sand); stroke-width: 1.5; }

/* ---------- Contact ---------- */
.contact { padding: 72px 0; }
.contact-panel {
  background: var(--sand);
  color: var(--slate-ink);
  border-radius: 24px;
  padding: 40px 28px;
  display: grid;
  gap: 36px;
}
.contact h2 { font-size: 40px; }
.contact-intro { margin-top: 18px; color: var(--ink-2); max-width: 22em; }

/* The form: a label and one line per field. No boxes. */
.contact-form { display: grid; gap: 26px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 26px; }
.field label { font-size: 14px; font-weight: 400; color: var(--ink-3); }
.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #B9AE9B;
  border-radius: 0;
  background: transparent;
  padding: 6px 0 10px;
  font: inherit;
  font-size: 19px;
  font-weight: 300;
  color: var(--slate-ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 5.2em; line-height: 1.5; }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--slate); box-shadow: 0 1px 0 0 var(--slate); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.form-foot .btn { padding: 15px 36px; }
.form-foot .btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.form-status { font-size: 15px; font-weight: 400; color: var(--ink-2); }
.form-status.is-error { color: #8A3B2E; }
.contact-done { outline: none; }
.done-title { font-size: 32px; font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; color: var(--slate-ink); }
.done-note { margin-top: 10px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.footer { background: var(--slate-darker); color: var(--mist); font-size: 15px; font-weight: 400; }
.footer-top { display: grid; gap: 36px; padding-top: 56px; padding-bottom: 56px; }
.footer-legal { margin-top: 18px; font-size: 14px; color: #B9C5CA; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-head { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand); margin-bottom: 4px; }
.footer-product { font-size: 30px; font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; color: var(--sand); margin-top: 2px; }
.footer-desc { color: #B9C5CA; max-width: 20em; line-height: 1.5; }
.footer-link { align-self: flex-start; margin-top: 10px; color: var(--sand); font-weight: 500; border-bottom: 1px solid rgba(244, 239, 230, 0.5); padding-bottom: 3px; transition: border-color .2s ease; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--sand); }
.footer-link:hover { border-bottom-color: var(--sand); }

/* =================== Tablet =================== */
@media (min-width: 760px) {
  :root { --gutter: 40px; }
  .logo { font-size: 32px; }
  .hero-inner { padding-top: calc(var(--bar) + 104px); padding-bottom: 120px; }
  .hero h1 { font-size: 6.3vw; }
  .hero-actions { margin-top: 48px; }
  .method-pin { padding: 112px 0 120px; }
  .method-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .m-word { font-size: clamp(44px, 6.1vw, 110px); }
  .contact-panel { padding: 56px; }
  .contact h2 { font-size: 56px; }
  .footer-top { grid-template-columns: 2fr 1.4fr 1fr; }
}

/* =================== Desktop =================== */
@media (min-width: 1080px) {
  :root { --gutter: 56px; --bar: 92px; }

  /* The opening fills the first screen */
  .hero-inner { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--bar) + 24px); padding-bottom: 96px; }
  .hero h1 { font-size: clamp(60px, 5.5vw, 92px); line-height: 1.02; }
  .hero-actions { margin-top: 56px; }

  .method-pin { min-height: 86vh; display: grid; align-items: center; padding: 120px 0; }
  .method-grid { gap: 48px; }
  .m-text { margin-top: 24px; font-size: 18px; }

  .services { padding: 88px 0 96px; }

  .contact { padding: 128px 0; }
  .contact-panel { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; gap: 80px; padding: 80px; border-radius: 28px; }
  .contact h2 { font-size: 64px; }
  .field-row { grid-template-columns: 1fr 1fr; gap: 32px; }

  .footer-top { padding-top: 80px; padding-bottom: 80px; }
}

/* =================== Wide screens =================== */
@media (min-width: 1500px) {
  :root { --max: 1360px; }
}

/* =================== Motion off =================== */
@media (prefers-reduced-motion: reduce) {
  .hero-light i { animation: none; }
  .js .hero h1 .line > span, .js .hero-actions { animation: none; transform: none; opacity: 1; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
