/* ═══════════════════════════════════════════════════════════════════
   AKOMIC DESIGN STUDIO
   One stylesheet. No framework, no build.

   ⚠️ THE TYPOGRAPHY IS THE PORTFOLIO. A design studio with no client
   photography to show is judged on how it sets type and holds space —
   so the craft budget goes into scale, rhythm and restraint rather
   than into decoration that would need assets we do not have.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --ink: #0d0f14;
  --ink-2: #141822;
  --paper: #f7f5f1;
  --paper-dim: #cfd0d6;
  --muted: #8b8f9c;
  --line: #232838;
  /* Brass — one accent, used sparingly enough that it still means something. */
  --brass: #c9a227;
  --brass-soft: rgba(201, 162, 39, 0.14);

  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { max-width: 100%; height: auto; display: block; }

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

/* ── Skip link: the cheapest accessibility win there is ─────────── */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 0.75rem 1.25rem;
}
.skip:focus { left: 0; }

/* ── Header ─────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--ink) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; min-width: 0; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.1875rem; letter-spacing: 0.02em; white-space: nowrap;
}
.brand-name em { font-style: normal; color: var(--brass); }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  text-decoration: none; font-size: 0.9375rem; color: var(--paper-dim);
  transition: color 0.2s;
}
.nav a:hover { color: var(--paper); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--brass); color: var(--brass);
  text-decoration: none; font-size: 0.9375rem; white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}
.btn:hover { background: var(--brass); color: var(--ink); }
.btn-solid { background: var(--brass); color: var(--ink); }
.btn-solid:hover { background: #e0b62c; color: var(--ink); }

/* ── The mark ───────────────────────────────────────────────────── */
.mark { width: 34px; height: 34px; flex: 0 0 auto; }
.mark .ring { transform-origin: 50% 50%; animation: turn 42s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(5rem, 14vh, 9rem) 0 clamp(4rem, 10vh, 7rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 130%;
  background:
    radial-gradient(60% 50% at 20% 15%, rgba(201, 162, 39, 0.12), transparent 70%),
    radial-gradient(50% 45% at 85% 5%, rgba(90, 120, 220, 0.10), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brass); margin: 0 0 1.5rem;
}
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 1.4rem + 4.6vw, 5.1rem);
  line-height: 1.04; letter-spacing: -0.02em;
  margin: 0 0 1.5rem; max-width: 17ch;
}
h1 .accent { color: var(--brass); font-style: italic; }
.lede { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem); color: var(--paper-dim); max-width: 54ch; margin: 0 0 2.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ── Sections ───────────────────────────────────────────────────── */
section { padding: clamp(4rem, 9vh, 7rem) 0; }
.section-head { margin-bottom: clamp(2.5rem, 5vh, 4rem); }
.section-label {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 0.9rem;
}
h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.9rem);
  line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 1rem; max-width: 20ch;
}
h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3125rem; margin: 0 0 0.6rem; letter-spacing: -0.01em; }
p { max-width: var(--measure); }
.hairline { height: 1px; background: linear-gradient(90deg, var(--line), transparent); border: 0; margin: 0; }

/* ⚠️ `minmax(0, 1fr)` NOT `1fr` — a bare 1fr is min-content-floored, so one
   long unbroken word pushes the grid wider than the screen. Learned the
   expensive way on the sibling project. */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.card { border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.5rem, 3vw, 2rem); background: linear-gradient(160deg, var(--ink-2), var(--ink)); min-width: 0; }
.card p { color: var(--paper-dim); font-size: 0.9375rem; margin: 0; }
.card .num { font-family: var(--mono); font-size: 0.75rem; color: var(--brass); letter-spacing: 0.12em; display: block; margin-bottom: 1rem; }

/* ── Work ───────────────────────────────────────────────────────── */
.work { display: grid; gap: 1.25rem; }
.work-item {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  transition: border-color 0.3s;
}
.work-item:hover { border-color: color-mix(in oklab, var(--brass) 45%, transparent); }
@media (min-width: 860px) { .work-item { grid-template-columns: 1.05fr 1fr; align-items: center; } }
.work-body { padding: clamp(1.75rem, 4vw, 3rem); min-width: 0; }
.work-tag { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }
.work-body h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); margin: 0.75rem 0 0.75rem; }
.work-body p { color: var(--paper-dim); font-size: 0.9688rem; }
.work-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.chip { font-size: 0.75rem; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.work-visual { min-height: 240px; height: 100%; display: grid; place-items: center; padding: 1.5rem; background: radial-gradient(70% 70% at 50% 40%, rgba(201,162,39,0.07), transparent 75%); }

/* ── Approach list ──────────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.5rem); padding: clamp(1.5rem, 3vw, 2rem) 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-n { font-family: var(--mono); font-size: 0.75rem; color: var(--brass); padding-top: 0.35rem; letter-spacing: 0.12em; }
.step p { color: var(--paper-dim); font-size: 0.9375rem; margin: 0; }

/* ── Contact ────────────────────────────────────────────────────── */
.contact { text-align: left; }
.mailto {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1rem + 2.4vw, 2.75rem);
  color: var(--brass); text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--brass) 40%, transparent);
  word-break: break-word; display: inline-block; line-height: 1.25;
}
.mailto:hover { border-bottom-color: var(--brass); }

/* The same link inside a card is a detail, not the headline. At the hero size
   an address breaks across three lines in a 300px column and reads as broken
   layout, so specificity (0,2,0) deliberately overrides the rule above. */
.card .mailto { font-family: var(--sans); font-size: 0.875rem; line-height: 1.5; word-break: normal; overflow-wrap: anywhere; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); padding: 3rem 0 3.5rem; color: var(--muted); font-size: 0.8125rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.site-foot h4 { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-dim); margin: 0 0 0.85rem; font-weight: 600; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--paper); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.legal { margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); line-height: 1.7; }
.legal p { max-width: 70ch; margin: 0 0 0.35rem; }

/* ── Reveal on scroll ────────────────────────────────────────────
   🚨 THE HIDDEN STATE IS OPT-IN, AND THAT IS THE WHOLE FIX.
   The first version put `opacity: 0` on `.reveal` by default and relied on an
   IntersectionObserver to add `.in`. Measured in a real browser: the observer
   never fired and **fifteen of the page's eighteen blocks stayed invisible** —
   a hero, a void, and a footer. On any other site that is an ugly bug; on THIS
   one it recreates the exact near-empty page that got the Apple organisation
   enrolment rejected in the first place.
   So content is VISIBLE BY DEFAULT and only hides once `documentElement` has
   `.js`, which an inline script in <head> sets. No JS, blocked JS, a CSP, an
   observer that never fires — every one of those now degrades to the whole page
   being readable, which is the only outcome that matters. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}


/* ── Product marks ──────────────────────────────────────────────── */
/* One rule for every product mark. They are app icons with their own
   backgrounds, so they are presented as plates rather than floated on the
   page ground - which is what they are, and it stops the ones with a solid
   background reading as a mistake. */
.plogo {
  display: block; width: 72px; height: 72px; border-radius: 16px;
  margin-bottom: 1.1rem; object-fit: cover;
  border: 1px solid color-mix(in oklab, var(--brass) 22%, transparent);
  background: var(--ink);
}

/* ── Enquiry form ───────────────────────────────────────────────── */
.enquiry { display: grid; gap: 1.1rem; max-width: 44rem; margin: 0 0 3rem; }
.f-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.f { display: grid; gap: 0.45rem; }
.f > span {
  font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brass);
}
.f > span em { font-style: normal; color: var(--muted); letter-spacing: 0.06em; }
.f input, .f textarea {
  font: inherit; font-size: 0.9375rem; color: var(--paper);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.8rem 0.9rem; width: 100%; box-sizing: border-box;
}
.f textarea { resize: vertical; min-height: 7rem; }
.f input:focus-visible, .f textarea:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 1px; border-color: transparent;
}
.enquiry button { justify-self: start; cursor: pointer; font: inherit; border: 0; }
.f-note { color: var(--muted); font-size: 0.8125rem; margin: 0; max-width: 34rem; }

/* Off-screen rather than display:none - a bot reading the DOM cannot tell,
   and a screen reader is told to skip it by aria-hidden on the wrapper. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* ── What a venture specialises in ──────────────────────────────────── */
.sectors { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.sectors .chip { font-size: 0.6875rem; padding: 0.25rem 0.55rem; }

/* ── Registrations ──────────────────────────────────────────────────── */
.reg-grid {
  display: grid; gap: 1.25rem; margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.reg {
  border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem;
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
}
.reg-flag {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brass); margin: 0 0 0.5rem;
}
.reg-name {
  font-family: var(--serif); font-size: 1.0625rem; color: var(--paper);
  margin: 0 0 1rem;
}
/* A definition list, because that is what this is: a label and the fact it
   names. It also gives a screen reader the pairing for free. */
.reg dl { display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 1rem; margin: 0; }
.reg dt { color: var(--muted); font-size: 0.75rem; }
.reg dd { margin: 0; color: var(--paper-dim); font-size: 0.8125rem; line-height: 1.5; }
.reg dd strong { color: var(--brass); font-weight: 600; letter-spacing: 0.02em; }
.legal-line { margin-top: 1.75rem; color: var(--muted); font-size: 0.75rem; }
