/* ownedai.dev — v2 stylesheet
   Brand: dark shell #0F172A + light content panel; Inter + JetBrains Mono;
   mark = outlined square + filled circle; "owned" navy / "ai" blue, weight 500. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --shell: #0F172A;
  --shell-2: #172038;
  --shell-line: #263149;
  --sheet: #F7F8FA;
  --sheet-2: #EEF1F5;
  --paper: #FFFFFF;
  --ink: #0F172A;
  --ink-2: #4B5568;
  --ink-3: #7B8497;
  --line: #D8DDE5;
  --accent: #2563EB;
  --accent-ink: #1D4ED8;
  --accent-soft: #DCE7FB;
  --accent-dark: #6D9BFF;       /* accent on the shell */
  --refuse: #9A3412;
  --refuse-soft: #FCE9DD;
  --on-shell: #E6EAF2;
  --on-shell-2: #A9B3C6;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1120px;
  --gutter: clamp(20px, 4vw, 48px);
  --frame: clamp(0px, 2vw, 22px);   /* dark margin around the sheet */
  --radius: 5px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--shell);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01", "calt";
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; }
h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.025em; }
h2 { font-size: clamp(24px, 3vw, 30px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
strong { font-weight: 600; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

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

/* Header on the shell */
.top { color: var(--on-shell); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.brand .mark { width: 22px; height: 22px; display: block; }
.brand .ai { color: var(--accent-dark); }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { color: var(--on-shell-2); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--on-shell); }
.nav a[aria-current="page"] { color: var(--on-shell); border-bottom-color: var(--accent-dark); }
.nav-toggle { display: none; background: none; border: 1px solid var(--shell-line); color: var(--on-shell); border-radius: 4px; padding: 6px 10px; font: inherit; font-size: 14px; }

/* Hero on the shell */
.hero { color: var(--on-shell); padding: clamp(40px, 7vw, 96px) 0 clamp(36px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--on-shell-2); max-width: 44ch; margin-top: 22px; line-height: 1.5; }
.hero .tag { font-family: var(--mono); font-size: 13px; color: var(--accent-dark); margin-top: 28px; }
.hero .tag .cursor { display: inline-block; width: 7px; height: 14px; background: var(--accent-dark); vertical-align: -2px; margin-left: 4px; animation: blink 1.1s steps(1) infinite; }
.hero .actions { margin-top: 32px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 4px; font-weight: 500; font-size: 15px; line-height: 1; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { border-color: var(--shell-line); color: var(--on-shell); }
.btn-ghost:hover { border-color: var(--on-shell-2); }
.hero-side { color: var(--on-shell-2); font-size: 15px; line-height: 1.55; border-left: 1px solid var(--shell-line); padding-left: 24px; }
.hero-side p { margin: 0 0 10px; }
.hero-side p:last-child { margin: 0; }
.hero-side b { color: var(--on-shell); font-weight: 500; }

.page-hero { padding-bottom: clamp(28px, 4vw, 48px); }
.page-hero .wrap { display: block; }
.page-hero h1 { font-size: clamp(30px, 4vw, 42px); }
.page-hero .lede { margin-top: 16px; }

/* The sheet: light content panel inset in the dark shell */
.sheet {
  background: var(--sheet);
  margin: 0 var(--frame);
  border-radius: var(--radius) var(--radius) 0 0;
  min-height: 40vh;
}
.sheet > section { padding: clamp(40px, 6vw, 80px) 0; }
.sheet > section + section { border-top: 1px solid var(--line); }
.sheet.tight > section:first-child { padding-top: clamp(28px, 4vw, 56px); }

.section-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: start; }
.section-head h2 { max-width: 18ch; }
.section-head .lead { color: var(--ink-2); font-size: 17px; max-width: 60ch; }
.section-head .lead p:last-child { margin: 0; }
.stack { max-width: 66ch; }
.stack p, .stack li { color: var(--ink); }
.muted { color: var(--ink-2); }

/* Specimen: the one memorable element */
.specimen { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specimen-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--sheet); gap: 12px; flex-wrap: wrap; }
.specimen-bar .hint { font-size: 13px; color: var(--ink-3); }
.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--paper); }
.tabs button { font: inherit; font-size: 13.5px; padding: 6px 12px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.tabs button + button { border-left: 1px solid var(--line); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.specimen-body { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.specimen-col { padding: 26px 28px 28px; min-width: 0; }
.specimen-col + .specimen-col { border-left: 1px solid var(--line); background: #FBFCFD; }
.spec-label { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.spec-q { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 22px; }
.spec-a { font-size: 16.5px; line-height: 1.6; }
.spec-a .cite { display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--accent-ink); background: var(--accent-soft); padding: 1px 6px; border-radius: 3px; margin-left: 4px; vertical-align: 1px; }
.spec-a.refused { color: var(--refuse); }
.spec-a.refused .cite { color: var(--refuse); background: var(--refuse-soft); }
.spec-src { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); margin-bottom: 12px; }
.spec-doc { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.spec-doc mark { background: var(--accent-soft); color: var(--ink); padding: 1px 2px; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.spec-doc.empty { color: var(--ink-3); font-style: italic; }
.spec-link { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.spec-link path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 600; stroke-dashoffset: 600; }
.specimen.ready .spec-link path { animation: draw 900ms cubic-bezier(.4,0,.2,1) 250ms forwards; }
.spec-link circle { fill: var(--accent); opacity: 0; }
.specimen.ready .spec-link circle { animation: pop 300ms ease-out 1050ms forwards; }
.spec-panel[hidden] { display: none; }
.specimen-foot { padding: 10px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

/* Services on Home */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.offer { padding: 24px 0 0; border-top: 2px solid var(--ink); }
.offer h3 { margin-bottom: 8px; }
.offer p { color: var(--ink-2); font-size: 15.5px; }
.offer .who { display: flex; align-items: center; gap: 14px; }
.offer .who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.offer a.more { color: var(--accent-ink); font-weight: 500; font-size: 15px; }
.offer a.more:hover { text-decoration: underline; }

/* Rules on Home */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; counter-reset: rule; }
.rule { padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.rule::before { counter-increment: rule; content: counter(rule); display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }
.rule h3 { margin-bottom: 6px; }
.rule p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* Services page */
.service { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; }
.service .intro h2 { margin-bottom: 14px; }
.service .intro p { color: var(--ink-2); }
.service .detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; }
.service .detail h4 { font-size: 14px; color: var(--ink-3); font-weight: 500; margin-bottom: 8px; }
.service .detail ul li { position: relative; padding-left: 16px; margin-bottom: 6px; font-size: 15.5px; }
.service .detail ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 1px; background: var(--ink-3); }
.service .detail p { font-size: 15.5px; }
.service .detail .full { grid-column: 1 / -1; }
.service .cta { margin-top: 8px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1E2A44; }
.deploy { margin-top: 8px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 20px 20px 12px; }
.deploy svg { width: 100%; height: auto; display: block; }
.deploy .cap { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; }
.prep { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; }
.prep ul li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.prep ul li:last-child { border-bottom: 1px solid var(--line); }
.prep ul li b { font-weight: 500; display: block; }
.prep ul li span { color: var(--ink-2); }

/* Approach page */
.rules-long { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 36px; counter-reset: rule; }
.rules-long .rule p { font-size: 15.5px; }
.bounds { max-width: 66ch; }
.bounds li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
.bounds li:last-child { border-bottom: 1px solid var(--line); }
.public { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.links { display: grid; gap: 10px; }
.links a { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 500; font-size: 15px; }
.links a span { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.links a:hover { border-color: var(--ink-3); }
.note { border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; color: var(--ink-2); max-width: 66ch; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); gap: 56px; align-items: start; }
.about .stack p { font-size: 17px; }
.portrait { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 12px; }
.portrait img { width: 100%; height: auto; display: block; border-radius: 3px; background: var(--sheet-2); }
.portrait .cap { margin: 10px 2px 0; font-size: 14px; color: var(--ink-2); }
.portrait .cap b { display: block; color: var(--ink); font-weight: 500; }
.think { margin-top: 24px; max-width: 66ch; }
.think li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.think li:last-child { border-bottom: 1px solid var(--line); }
.think li b { font-weight: 500; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
.email { font-size: clamp(22px, 3vw, 30px); font-weight: 500; letter-spacing: -0.02em; color: var(--accent-ink); display: inline-block; margin: 6px 0 18px; }
.email:hover { text-decoration: underline; }
.contact .else a { display: block; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 500; }
.contact .else a:last-child { border-bottom: 1px solid var(--line); }
.contact .else a span { color: var(--ink-3); font-weight: 400; font-family: var(--mono); font-size: 12.5px; margin-left: 10px; }

/* Legal */
.legal .stack { max-width: 70ch; }
.legal h2 { margin: 28px 0 10px; font-size: 22px; }

/* Footer on the shell */
.foot { color: var(--on-shell-2); padding: 36px 0 40px; font-size: 14px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot .brand { font-size: 16px; color: var(--on-shell); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a:hover { color: var(--on-shell); }

@keyframes blink { 50% { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hero .tag .cursor { animation: none; }
  .spec-link path { animation: none !important; stroke-dashoffset: 0; }
  .spec-link circle { animation: none !important; opacity: 1; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--shell-line); padding-top: 20px; }
  .section-head, .service, .prep, .public, .about, .contact { grid-template-columns: 1fr; gap: 20px; }
  .offers, .rules, .rules-long { grid-template-columns: 1fr; }
  .service .detail { grid-template-columns: 1fr; }
  .specimen-body { grid-template-columns: 1fr; }
  .specimen-col + .specimen-col { border-left: 0; border-top: 1px solid var(--line); }
  .spec-link { display: none; }
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; }
}
@media (max-width: 680px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--shell-2); border-top: 1px solid var(--shell-line); border-bottom: 1px solid var(--shell-line); padding: 12px var(--gutter) 16px; flex-direction: column; gap: 4px; z-index: 40; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 0; }
  .nav a[aria-current="page"] { color: var(--accent-dark); }
  .nav-toggle { display: inline-block; }
  .top { position: relative; }
  .hero h1 { max-width: none; }
}

/* OwnedPulse page */
.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 36px; }
.feat .f { padding: 22px 0; border-top: 1px solid var(--line); }
.feat .f h3 { margin-bottom: 8px; }
.feat .f p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 36px; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.shot figcaption { font-size: 14px; color: var(--ink-2); margin-top: 10px; line-height: 1.5; }
.video { display: block; position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--shell); }
.video img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .92; }
.video span { position: absolute; left: 14px; bottom: 14px; background: #fff; color: var(--ink); font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: 4px; }
.video:hover span { background: var(--accent); color: #fff; }
@media (max-width: 900px) { .feat, .shots { grid-template-columns: 1fr; } }

/* Projects */
.crumb { font-size: 14px; color: var(--on-shell-2); margin: 0 0 14px; }
.crumb a { color: var(--accent-dark); }
.indev { margin: 36px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.indev a { color: var(--accent-ink); font-weight: 500; }
.indev a:hover { text-decoration: underline; }
.proj { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.proj:first-of-type { margin-top: 28px; }
.proj + .proj { margin-top: 0; }
.proj h3 { font-size: 22px; margin-bottom: 10px; }
.proj h3 a:hover { color: var(--accent-ink); }
.proj p { color: var(--ink-2); font-size: 15.5px; max-width: 62ch; }
.proj .more { color: var(--accent-ink); font-weight: 500; }
.proj .more:hover { text-decoration: underline; }
.proj dl { margin: 4px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14.5px; }
.proj dt { color: var(--ink-3); }
.proj dd { margin: 0; }
.proj dd a { color: var(--accent-ink); font-weight: 500; }
@media (max-width: 900px) { .proj { grid-template-columns: 1fr; gap: 12px; } }

/* Screenshot zoom */
.shot .zoom { display: block; position: relative; border-radius: var(--radius); overflow: hidden; }
.shot .zoom img { transition: opacity .15s ease; }
.shot .zoom:hover img, .shot .zoom:focus-visible img { opacity: .82; }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; background: var(--paper); color: var(--ink); font-size: 12.5px; font-weight: 500; padding: 5px 9px; border-radius: 3px; border: 1px solid var(--line); opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.shot .zoom:hover .zoom-hint, .shot .zoom:focus-visible .zoom-hint { opacity: 1; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(9, 14, 28, .93); }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: calc(100vh - 96px); display: block; border-radius: 4px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.lb-close { position: absolute; top: 16px; right: 18px; background: none; border: 1px solid var(--shell-line); color: var(--on-shell); font: inherit; font-size: 14px; padding: 7px 12px; border-radius: 4px; cursor: pointer; }
.lb-close:hover { border-color: var(--on-shell-2); }
.lb-cap { position: absolute; left: 24px; bottom: 18px; right: 120px; color: var(--on-shell-2); font-size: 13.5px; }
@media (max-width: 680px) { .zoom-hint { opacity: 1; } .lb { padding: 12px; } .lb-cap { display: none; } }
