:root {
  color-scheme: light dark;
  --bg: #FBF5EA;
  --surface: #FFFDF8;
  --ink: #1E1A16;
  --ink-2: #5B5147;
  --line: #E8DCC6;
  --comb: #C8321B;
  --yolk: #F4B63F;
  --sky: #2F5D8A;
  --on-comb: #FFFDF8;
  --shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgb(60 40 20 / .35);
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16120F;
    --surface: #211B17;
    --ink: #F6EEE2;
    --ink-2: #BDAF9F;
    --line: #372E27;
    --comb: #FF6B4A;
    --yolk: #F6C35A;
    --sky: #8DB8E2;
    --on-comb: #16120F;
    --shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgb(0 0 0 / .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--comb); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.eyebrow {
  font: 500 13px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--comb);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 16px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { width: 80px; height: 80px; }
/* ponytail: logo has cream letters made for dark backgrounds; outline keeps it readable on light cream. Swap for a dark-letter logo variant when one exists. */
@media (prefers-color-scheme: light) {
  .brand img { filter: drop-shadow(0 0 .6px var(--ink)) drop-shadow(0 0 .6px var(--ink)) drop-shadow(0 2px 3px rgb(30 26 22 / .3)); }
}
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  text-decoration: none; font-weight: 500; color: var(--ink-2); border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav ul a:hover { color: var(--ink); background: var(--surface); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  transition: transform .2s var(--ease), background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--comb); border-color: var(--comb); color: var(--on-comb); }
.btn svg { width: 18px; height: 18px; }
.nav ul a, .nav .btn { white-space: nowrap; }
@media (max-width: 1000px) {
  .nav ul { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(48px, 8vw, 104px); font-weight: 800; letter-spacing: -.045em; margin: 20px 0 24px; }
.hero h1 em { font-style: normal; color: var(--comb); }
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 34ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.sun {
  position: relative; aspect-ratio: 1; width: 100%; max-width: 440px; justify-self: end;
  display: grid; place-items: center;
}
.sun::before {
  content: ""; position: absolute; inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, var(--yolk), color-mix(in srgb, var(--yolk) 30%, var(--bg)) 70%);
}
.sun::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--comb) 45%, transparent);
  animation: spin 60s linear infinite;
}
.sun img { position: relative; width: 88%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero .say {
  position: absolute; top: 8%; left: 0; z-index: 1;
  font: 800 20px/1 var(--display); background: var(--surface); color: var(--ink);
  padding: 12px 16px; border-radius: 16px 16px 16px 4px; box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .hero { padding: 40px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .sun { max-width: 320px; justify-self: center; order: -1; }
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.head h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; margin-top: 14px; }
.head p { color: var(--ink-2); max-width: 42ch; }

/* App cards */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card .shot {
  aspect-ratio: 4 / 3; display: grid; place-items: end center; overflow: hidden;
  background: var(--tint);
}
.phone {
  width: 46%; aspect-ratio: 9 / 17; margin-bottom: -18%;
  background: var(--ink); border-radius: 28px 28px 0 0; padding: 8px 8px 0;
  transition: transform .4s var(--ease);
}
.card:hover .phone { transform: translateY(-10px); }
.phone .screen {
  height: 100%; border-radius: 21px 21px 0 0; background: var(--bg);
  padding: 22px 12px; display: flex; flex-direction: column; gap: 8px;
}
.screen i { display: block; height: 10px; border-radius: 6px; background: var(--line); }
.screen i:nth-child(1) { width: 60%; height: 14px; background: var(--ink); opacity: .85; }
.screen i:nth-child(2) { height: 64px; background: var(--tint); }
.screen i:nth-child(3) { width: 80%; }
.screen i:nth-child(4) { width: 50%; }
.screen.pic { padding: 0; overflow: hidden; }
.screen.pic img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screen.splash { background: #070B1A; align-items: center; padding-top: 38%; } /* Orbly's splash colour */
.screen.splash img { width: 52%; height: auto; border-radius: 22%; }
.browser {
  width: 86%; aspect-ratio: 16 / 11; margin-bottom: -10%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px 12px 0 0;
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / .35);
  transition: transform .4s var(--ease);
}
.card:hover .browser { transform: translateY(-10px); }
.browser:has(> img) { overflow: hidden; }
.browser > img { width: 100%; height: auto; }
.browser b { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.browser b::before, .browser b::after, .browser b span { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.browser .page { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; }
.browser .page i { height: 12px; border-radius: 6px; background: var(--line); }
.browser .page i:first-child { grid-column: 1 / -1; width: 55%; height: 18px; background: var(--ink); opacity: .85; }
.browser .page i:nth-child(2), .browser .page i:nth-child(3) { height: 70px; background: var(--tint); }
.card .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 26px; font-weight: 700; }
.card p { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.tag { font: 500 12px/1 var(--mono); padding: 7px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); }
.card .more {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600;
  text-decoration: none; color: var(--comb);
}
.card .more::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card .more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.card:hover .more svg { transform: translateX(4px); }

.t-red { --tint: color-mix(in srgb, var(--comb) 22%, var(--bg)); }
.t-yolk { --tint: color-mix(in srgb, var(--yolk) 45%, var(--bg)); }
.t-sky { --tint: color-mix(in srgb, var(--sky) 22%, var(--bg)); }

/* Freelance */
.hire { --h-bg: #1E1A16; --h-fg: #FBF5EA; background: var(--h-bg); color: var(--h-fg); border: 1px solid var(--line); border-radius: 36px; margin: 0 12px; }
.hire .eyebrow { color: var(--yolk); }
@media (prefers-color-scheme: dark) { .hire { --h-bg: #251E19; } }
.hire .head p { color: color-mix(in srgb, var(--h-fg) 72%, var(--h-bg)); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: color-mix(in srgb, var(--h-fg) 18%, var(--h-bg)); border-radius: var(--radius); overflow: hidden; }
.service { background: var(--h-bg); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.service svg { width: 32px; height: 32px; color: var(--yolk); }
.service h3 { font-size: 24px; font-weight: 700; }
.service p { color: color-mix(in srgb, var(--h-fg) 72%, var(--h-bg)); }
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1.5px solid color-mix(in srgb, var(--h-fg) 25%, var(--h-bg)); padding-top: 18px; }
.steps li::before { content: "0" counter(s); font: 500 13px/1 var(--mono); color: var(--yolk); display: block; margin-bottom: 12px; }
.steps strong { display: block; font: 700 20px/1.2 var(--display); margin-bottom: 6px; }
.steps span { color: color-mix(in srgb, var(--h-fg) 72%, var(--h-bg)); font-size: 15px; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.stack .tag { background: transparent; border-color: color-mix(in srgb, var(--h-fg) 25%, var(--h-bg)); color: var(--h-fg); }
.hire .btn-primary { margin-top: 40px; }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .hire { margin: 0; border-radius: 28px; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* AI consulting and Why Kogo — reuse the Freelance blocks, recoloured for the light page */
.consult, .story { --h-bg: var(--surface); --h-fg: var(--ink); }
.consult .services, .story .services { background: var(--line); border: 1px solid var(--line); box-shadow: var(--shadow); }
.consult .services { grid-template-columns: repeat(2, 1fr); }
.consult .service svg, .story .service svg, .consult .steps li::before { color: var(--comb); }
.consult .btn-primary { margin-top: 40px; }
@media (max-width: 760px) { .consult .services { grid-template-columns: 1fr; } }

/* Story */
.story .intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.word {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 36px;
}
.word .entry { font: 800 clamp(56px, 8vw, 88px)/1 var(--display); letter-spacing: -.04em; }
.word .entry span { color: var(--comb); }
.word .pron { font: 500 14px/1 var(--mono); color: var(--ink-2); margin: 14px 0 24px; }
.word dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; }
.word dt { font: 500 12px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--comb); }
.word dd { margin: 0; }
.story h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; margin: 14px 0 24px; }
.story .copy p + p { margin-top: 16px; }
.story .copy p { color: var(--ink-2); font-size: 18px; max-width: 52ch; }
@media (max-width: 860px) { .story .intro { grid-template-columns: 1fr; gap: 40px; } }
.story .head { margin-top: 96px; }
.story .head h3 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-top: 14px; }
.stats { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; color: var(--ink-2); }
.stats li { border-top: 1.5px solid var(--line); padding-top: 18px; }
.stats strong { display: block; font: 800 clamp(40px, 5vw, 60px)/1 var(--display); letter-spacing: -.03em; color: var(--ink); margin-bottom: 8px; }
@media (max-width: 900px) { .story .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .story .services { grid-template-columns: 1fr; } }

/* Contact */
.contact { text-align: center; }
.contact h2 { font-size: clamp(44px, 8vw, 96px); font-weight: 800; letter-spacing: -.045em; margin: 16px auto 20px; max-width: 12ch; }
.contact p { color: var(--ink-2); max-width: 44ch; margin-inline: auto; }
.contact .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-2); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer nav { display: flex; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* Reveal on scroll — JS adds .js to <html>, so content stays visible without JS */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.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; }
}
