/* Jake Cillay — forest & signal. Deep pine canvas, golden-hour accent, topo lines, mono instrument labels. */
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0c1a13;          /* deep forest */
  --bg-2: #10231a;        /* pine */
  --card: #15291f;        /* moss shade */
  --line: #24402f;
  --text: #eef0e6;        /* bone */
  --muted: #a6b8a9;       /* sage */
  --accent: #f0b44c;      /* golden hour */
  --accent-ink: #0c1a13;
  --lichen: #b9dc7a;      /* secondary: lichen green */
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 18px;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; } /* nothing can widen the page and cause sideways scrolling */
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--lichen); }
.eyebrow:not(:has(.dot))::before { content: "//"; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lichen); box-shadow: 0 0 0 0 rgba(185,220,122,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(185,220,122,0); } 100% { box-shadow: 0 0 0 0 rgba(185,220,122,0); } }
.h2 { font-size: clamp(36px, 5.6vw, 76px); font-weight: 600; line-height: 1.02; letter-spacing: -.03em; }
.h3 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.tag { font: 500 12.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--lichen); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 17px/1 var(--font); border: 2px solid transparent; cursor: pointer; transition: transform .3s var(--ease), background-color .25s, color .25s, border-color .25s; }
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #f6c875; }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--lichen); color: var(--lichen); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 18px; }
.link { display: inline-flex; gap: 6px; font-weight: 500; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.link:hover { color: var(--accent); }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform .4s var(--ease); }
.header::before { content: ""; position: absolute; inset: 0; background: rgba(12,26,19,.74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; z-index: -1; }
.header.is-scrolled::before { border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.brand__mark { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font: 700 14px/1 var(--mono); letter-spacing: .02em; overflow: hidden; }
.brand__mark::after { content: ""; position: absolute; inset: auto 0 0; height: 9px; background: var(--accent-ink); opacity: .22; clip-path: polygon(0 100%, 30% 20%, 48% 65%, 68% 0, 100% 100%); }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); font-size: 17px; }
.nav > a:not(.btn) { position: relative; padding: 8px 0; color: var(--muted); transition: color .2s; }
.nav > a:not(.btn):hover { color: var(--text); }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav > a:not(.btn):hover::after { transform: scaleX(1); }
.menu-btn { display: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line); background: none; color: var(--text); font: 600 16px var(--font); cursor: pointer; }
.menu-btn__close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: inline; }
.mobile-nav { display: none; }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .mobile-nav:not([hidden]) { display: flex; flex-direction: column; gap: 4px; padding: 8px var(--pad) 28px; background: rgba(12,26,19,.97); border-bottom: 1px solid var(--line); animation: drop .35s var(--ease); }
  .mobile-nav a:not(.btn) { padding: 14px 0; font-size: 26px; font-weight: 500; border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { margin-top: 18px; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* Hero */
.hero { position: relative; padding: clamp(140px, 18vw, 210px) 0 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("/assets/topo.svg") center / cover no-repeat; opacity: .22; -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%); mask-image: linear-gradient(180deg, #000 40%, transparent 100%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: -25% -10% auto auto; width: 62vw; height: 62vw; max-width: 860px; max-height: 860px; background: radial-gradient(closest-side, rgba(240,180,76,.16), transparent); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero__meta { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: clamp(36px, 5vw, 56px); text-align: center; overflow-wrap: anywhere; font: 400 13px/1.4 var(--mono); color: var(--muted); }
.hero__meta span { display: block; }
.hero__title { margin-top: 26px; font-size: clamp(48px, 9.4vw, 136px); font-weight: 600; line-height: .96; letter-spacing: -.045em; }
.hero__row { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 32px 48px; align-items: end; margin-top: clamp(32px, 5vw, 56px); }
.hero__lede { max-width: 560px; font-size: clamp(19px, 1.6vw, 22px); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .hero__row { grid-template-columns: 1fr; } }

.ticker { position: relative; z-index: 1; background: var(--bg); margin-top: clamp(64px, 9vw, 110px); border-block: 1px solid var(--line); overflow: hidden; }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker__track span { display: inline-flex; align-items: center; gap: 36px; padding: 22px 0 22px 36px; font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; white-space: nowrap; color: var(--muted); }
.ticker__track span::after { content: "▲"; color: var(--lichen); font-size: .55em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section--alt { position: relative; background: var(--bg-2); }
.section--alt::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px; opacity: .28; -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000, transparent); mask-image: radial-gradient(80% 60% at 50% 0%, #000, transparent); pointer-events: none; }
.section--alt > .wrap { position: relative; }
.section__head { display: grid; gap: 18px; margin-bottom: clamp(44px, 6vw, 80px); }

/* Case studies */
.case { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; padding-block: clamp(20px, 4vw, 48px); }
.case + .case { margin-top: clamp(60px, 9vw, 120px); }
.case--flip .case__visual { order: 2; }
.case__body { display: grid; gap: 18px; }
.case__body > p:not(.tag) { color: var(--muted); font-size: 19px; }
.case__links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 8px; }
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; }
  .case--flip .case__visual { order: 0; }
}

.case__visual { position: relative; }
.case__visual--hom { padding: 0 8% 12% 0; }
.browser { border-radius: 14px; overflow: hidden; background: #f8f6f2; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.06); transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transition: transform .8s var(--ease); }
.case:hover .browser { transform: perspective(1600px) rotateY(0) rotateX(0); }
.browser__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #e9e6df; }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfcac0; }
.browser__bar span { margin-inline: auto; padding: 3px 16px; border-radius: 6px; background: #f8f6f2; color: #5e6166; font-size: 12px; }
.browser__screen { position: relative; }
.mock-nav { position: absolute; inset: 0 0 auto; z-index: 1; display: flex; align-items: center; gap: 4%; height: 15%; padding: 0 4%; background: rgba(248,246,242,.75); color: #111821; font-size: clamp(8px, .85vw, 12px); }
.mock-nav img { width: 24%; margin-right: auto; }
.mock-nav b { padding: .5em 1.1em; border-radius: 999px; background: #111821; color: #f8f6f2; font-weight: 500; }
.browser__hero { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.case__float { position: absolute; right: 0; bottom: 0; width: 38%; border-radius: 12px; overflow: hidden; border: 6px solid var(--bg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); transform: translateY(var(--float, 0px)); }
.case__float img { aspect-ratio: 4 / 5; object-fit: cover; }

.case__visual--gf { display: flex; justify-content: center; align-items: center; min-height: 560px; padding: 40px 0; border-radius: var(--radius); background: url("/assets/topo.svg") center / cover no-repeat, radial-gradient(120% 90% at 30% 20%, #8a8a2a 0%, #4b4d1d 45%, #1e1f12 100%); background-blend-mode: soft-light, normal; overflow: hidden; }
.phone { position: relative; z-index: 2; width: min(42%, 250px); border-radius: 34px; padding: 8px; background: #0a0a0a; box-shadow: 0 40px 70px -20px rgba(0,0,0,.7); transform: translateY(var(--float, 0px)) rotate(3deg); }
.phone img { border-radius: 27px; }
.phone--back { z-index: 1; margin-right: -12%; transform: translateY(calc(var(--float, 0px) * -1 + 30px)) rotate(-6deg); opacity: .92; }
.case__logo { position: absolute; left: 22px; top: 22px; width: 64px; border-radius: 14px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service { display: grid; gap: 14px; align-content: start; padding: clamp(28px, 3vw, 40px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: background-color .35s, transform .4s var(--ease); }
.service:hover { transform: translateY(-4px); }
.service__num { font: 500 13px/1 var(--mono); color: var(--lichen); }
.service__num::before { content: "["; color: var(--muted); } .service__num::after { content: "]"; color: var(--muted); }
.service h3 { font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.service p { color: var(--muted); font-size: 17px; }
.service ul { display: grid; gap: 8px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; }
.service li::before { content: "✓"; margin-right: 10px; color: var(--lichen); font-weight: 700; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }

.care { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-top: 18px; padding: clamp(28px, 3vw, 40px); border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); }
.care h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.02em; }
.care p { max-width: 640px; margin-top: 6px; font-size: 18px; }
.care .btn--accent { background: var(--accent-ink); color: var(--accent); }
.care .btn--accent:hover { background: #1b3326; }
.care::before { content: ""; position: absolute; inset: 0; background: url("/assets/topo.svg") 70% 40% / 900px auto no-repeat; opacity: .35; filter: brightness(0); mix-blend-mode: multiply; pointer-events: none; }
.care > * { position: relative; }

/* Getting started */
.start { position: relative; overflow: hidden; text-align: center; }
.start::before { content: ""; position: absolute; inset: 0; background: url("/assets/topo.svg") center / cover no-repeat; opacity: .16; -webkit-mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent); pointer-events: none; }
.start__inner { position: relative; display: grid; justify-items: center; gap: 24px; max-width: 900px; }
.start__text { max-width: 620px; color: var(--muted); font-size: clamp(19px, 1.6vw, 22px); }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; }
.faq .section__head { align-content: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: clamp(19px, 1.7vw, 23px); font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); font-size: 22px; transition: transform .3s var(--ease), background-color .25s, color .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.faq details p { padding: 0 56px 26px 0; color: var(--muted); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 0; } }

/* Contact */
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__intro { display: grid; gap: 22px; }
.contact__intro > p:not(.eyebrow) { color: var(--muted); font-size: 19px; max-width: 420px; }
.contact__ways { display: grid; gap: 16px; margin-top: 10px; }
.contact__ways li { display: grid; gap: 2px; }
.contact__ways span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact__ways a { font-size: clamp(20px, 2vw, 26px); font-weight: 500; }
.contact__ways a:hover { color: var(--accent); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 18px; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > span, .field legend { font-size: 15px; font-weight: 500; color: var(--muted); }
.field legend { margin-bottom: 10px; padding: 0; }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--line); background: #0a1610; color: var(--text); font: 400 17px/1.4 var(--font); transition: border-color .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff7a6b; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { position: relative; cursor: pointer; }
/* Hidden checkbox sits exactly on its chip (an unanchored one stretched the page sideways on phones) */
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chips label span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line); font-size: 16px; font-weight: 500; transition: background-color .2s, border-color .2s, color .2s; }
.chips label:hover span { border-color: var(--muted); }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.form__status { min-height: 1.6em; font-size: 17px; }
.form__status.is-ok { color: var(--accent); }
.form__status.is-error { color: #ff9a8e; }

/* Footer */
.footer { position: relative; background: url("/assets/topo.svg") center 30% / cover no-repeat; padding: clamp(60px, 8vw, 100px) 0 40px; border-top: 1px solid var(--line); overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(12,26,19,.86) 60%, var(--bg) 100%); pointer-events: none; }
.footer > .wrap { position: relative; }
.footer__big { font-size: clamp(64px, 15vw, 220px); font-weight: 700; line-height: .85; letter-spacing: -.055em; color: transparent; -webkit-text-stroke: 1.5px #3d6a4c; }
.footer__meta p { font: 400 14px/1.5 var(--mono); }
.footer__meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: 16px; }

/* Scroll reveal (only when JS runs, so content never stays hidden) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .browser { transform: none; }
}

/* About */
.about { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 110px); align-items: center; }
.about__photos { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); aspect-ratio: 1 / 1.05; }
.about__photo { margin: 0; overflow: hidden; border-radius: 16px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.75); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__photo:hover img { transform: scale(1.04); }
.about__photo--main { grid-column: 1 / 5; grid-row: 1 / 7; }
.about__photo--a { grid-column: 4 / 7; grid-row: 1 / 4; margin: 10% 0 0 0; border: 6px solid var(--bg); z-index: 1; }
.about__photo--b { grid-column: 4 / 7; grid-row: 4 / 7; margin: 6% 0 8% 12%; border: 6px solid var(--bg); z-index: 1; }
.about__photo--a img { object-position: 50% 30%; }
.about__photo--b img { object-position: 50% 55%; }
.about__pin { position: absolute; left: 18px; bottom: 18px; z-index: 2; padding: 8px 14px; border-radius: 999px; background: rgba(12,26,19,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font: 500 13px/1 var(--mono); letter-spacing: .04em; color: var(--accent); }
.about__body { display: grid; gap: 20px; }
.about__body > p:not(.eyebrow) { color: var(--muted); font-size: 19px; max-width: 540px; }
.about__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 12px; border-top: 1px solid var(--line); }
.about__stats li { display: grid; gap: 6px; align-content: start; padding: 20px 18px 0 0; }
.about__stats li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.about__stats strong { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; color: var(--lichen); letter-spacing: -.01em; }
.about__stats span { font-size: 15px; color: var(--muted); line-height: 1.45; }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photos { max-width: 560px; }
}
@media (max-width: 520px) {
  .about__stats { grid-template-columns: 1fr; }
  .about__stats li, .about__stats li + li { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
