/* ============================================================
   ANVE — site v2  (direction B: full width, image-led)
   Paper surface for the company site. Black surface for Anyware.
   One display sans (Inter Tight), one italic accent (Fraunces),
   one mono (DM Mono), one accent colour (oxblood).
   Built by build/build.py — edit sources there, not the HTML.
   ============================================================ */

:root {
  --paper: #F4F3EF;
  --paper-2: #ECEBE6;
  --paper-3: #E4E3DD;
  --ink: #141412;
  --ink-2: rgba(20, 20, 18, .62);
  --ink-3: rgba(20, 20, 18, .40);
  --line: rgba(20, 20, 18, .12);
  --line-2: rgba(20, 20, 18, .22);
  --accent: #8B2E2E;
  --on-accent: #F4F3EF;
  --grain: .035;

  /* company colours */
  --c-studio: #C2553A;   /* ember */
  --c-labs:   #2F5D8A;   /* cobalt */
  --c-wear:   #B8892A;   /* ochre */
  --c-ha:     #3E6B4A;   /* moss */
  --c-notes:  #8B2E2E;   /* journal: notes = oxblood, brand = ochre, studio = ember */

  --sans: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --pad: clamp(24px, 3.4vw, 56px);
  --gap: 24px;
  --section: 128px;
  --ease: cubic-bezier(.2, .6, .2, 1);
}
@media (max-width: 800px) { :root { --section: 80px; } }

/* dark — follows the OS unless the toggle has set data-theme */
:root { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --paper: #0A0A0A;
  --paper-2: #151515;
  --paper-3: #1E1E1E;
  --ink: #F2F2ED;
  --ink-2: rgba(242, 242, 237, .64);
  --ink-3: rgba(242, 242, 237, .40);
  --line: rgba(242, 242, 237, .12);
  --line-2: rgba(242, 242, 237, .22);
  --accent: #C4463F;
  --on-accent: #fff;
  --grain: .06;
  --c-studio: #E07A5F;
  --c-labs:   #6F9FD0;
  --c-wear:   #E2B84A;
  --c-ha:     #7DB58C;
  --c-notes:  #C4463F;
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0A0A0A;
  --paper-2: #151515;
  --paper-3: #1E1E1E;
  --ink: #F2F2ED;
  --ink-2: rgba(242, 242, 237, .64);
  --ink-3: rgba(242, 242, 237, .40);
  --line: rgba(242, 242, 237, .12);
  --line-2: rgba(242, 242, 237, .22);
  --accent: #C4463F;
  --on-accent: #fff;
  --grain: .06;
  --c-studio: #E07A5F;
  --c-labs:   #6F9FD0;
  --c-wear:   #E2B84A;
  --c-ha:     #7DB58C;
  --c-notes:  #C4463F;
  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden; min-height: 100vh;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
main, header, footer, .menu { position: relative; z-index: 1; }

.wrap { padding: 0 var(--pad); }
.measure { max-width: 680px; }
.measure.center { margin: 0 auto; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(44px, 6.4vw, 92px); letter-spacing: -.035em; line-height: 1.0; }
h2 { font-size: clamp(30px, 3.4vw, 44px); }
h3 { font-size: 22px; font-weight: 500; letter-spacing: -.012em; line-height: 1.2; }
h4 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
em, .it { font-family: var(--serif); font-style: italic; font-weight: 400; font-variation-settings: 'opsz' 144, 'SOFT' 30; letter-spacing: -.01em; }
.lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.4; color: var(--ink-2); letter-spacing: -.01em; text-wrap: pretty; }
.meta { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.meta a:hover { color: var(--ink); }
.muted { color: var(--ink-2); }
.link { position: relative; font-weight: 500; }
.link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.link:hover::after { transform: scaleX(1); }
.arrow { display: inline-block; transition: transform .3s var(--ease); }
a:hover .arrow { transform: translateX(4px); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px; letter-spacing: -.01em; transition: background .2s, transform .2s var(--ease); }
.btn:hover { background: var(--accent); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- nav (default .nav-b floating pill; a/c/d/e kept as alternates) ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: 60px; display: flex; align-items: center; color: var(--ink); background: color-mix(in srgb, var(--paper) 84%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), height .3s var(--ease); }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; width: 100%; gap: 32px; }
.wordmark { font-weight: 700; font-size: 19px; letter-spacing: -.045em; line-height: 1; display: inline-flex; align-items: baseline; gap: 10px; }
.wordmark small { display: none; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; margin-left: auto; }
.nav-links a { color: var(--ink-2); transition: color .2s; }
.nav-links a small { display: none; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-right .cta { color: var(--paper); background: var(--ink); padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background .2s; }
.nav-right .cta:hover { color: var(--on-accent); background: var(--accent); }
.menu-btn { display: none; align-items: center; gap: 10px; height: 44px; width: 44px; padding: 0 4px; position: relative; font-size: 15px; font-weight: 500; color: var(--ink); }
.menu-btn .lbl { display: none; }
.menu-btn i { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); position: absolute; right: 4px; }
.menu-btn i:nth-child(2) { top: 17px; }
.menu-btn i:nth-child(3) { top: 26px; }
.menu-open .menu-btn i:nth-child(2) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-btn i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* overlay menu (mobile always; desktop for nav-d) */
.menu { position: fixed; inset: 60px 0 0 0; z-index: 40; background: var(--paper); display: none; padding: 32px var(--pad) 40px; overflow: auto; }
.menu-open .menu { display: block; }
.menu-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.menu nav a { display: block; font-size: 36px; font-weight: 600; letter-spacing: -.03em; line-height: 1.25; border-bottom: 1px solid var(--line); padding: 10px 0; }
.menu nav a.sub { font-size: 20px; font-weight: 500; color: var(--ink-2); padding: 8px 0 8px 16px; }
.menu-aside .meta { margin-bottom: 8px; }
.menu-aside .big { display: block; font-size: 20px; font-weight: 500; padding: 8px 0; border-bottom: 1px solid var(--line); }
.menu .theme-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 500; margin-top: 24px; }
.menu .theme-row .theme-btn { width: 44px; height: 44px; border: 1px solid var(--line-2); margin: 0; }
@media (min-width: 861px) {
  .menu { padding-top: 56px; }
  .menu-grid { grid-template-columns: 7fr 5fr; gap: 64px; max-width: 1400px; }
  .menu nav a { font-size: clamp(44px, 6vw, 88px); letter-spacing: -.04em; line-height: 1.1; padding: 14px 0; }
  .menu nav a.sub { display: none; }
  .menu-aside { padding-top: 12px; }
}

/* B - floating pill, centred */
.nav-b { height: 76px; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav-b.scrolled { border-bottom-color: transparent; background: transparent; }
.nav-b .nav-links { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; gap: 2px; padding: 5px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 88%, transparent); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 8px 30px rgba(0,0,0,.06); }
.nav-b .nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; }
.nav-b .nav-links a:hover, .nav-b .nav-links a.on { background: var(--paper-2); color: var(--ink); }
.nav-b .nav-right { margin-left: auto; }
.nav-b .wordmark, .nav-b .nav-right { position: relative; z-index: 1; }

/* C - editorial: three columns, mono uppercase links, rule always on */
.nav-c { height: 68px; border-bottom-color: var(--line); }
.nav-c .wrap { display: grid; grid-template-columns: 1fr auto 1fr; }
.nav-c .nav-links { margin: 0; gap: 36px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
.nav-c .nav-links a { position: relative; padding: 4px 0; }
.nav-c .nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-c .nav-links a:hover::after, .nav-c .nav-links a.on::after { transform: scaleX(1); }
.nav-c .nav-right { justify-self: end; }
.nav-c .nav-right .cta { background: transparent; color: var(--ink); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; padding: 9px 14px; }
.nav-c .nav-right .cta:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* D - minimal: wordmark + Menu; the overlay is the navigation */
.nav-d { height: 64px; }
.nav-d .nav-links { display: none; }
.nav-d .nav-right { margin-left: auto; }
.nav-d .menu-btn { display: flex; width: auto; padding-right: 32px; }
.nav-d .menu-btn .lbl { display: inline; }
.nav-d .nav-right .cta { display: none; }
.menu-open .nav-d .menu-btn .lbl { visibility: hidden; }

/* E - expanded: two-line entries under a rule, TE-style */
.nav-e { height: 84px; border-bottom-color: var(--line); background: var(--paper); }
.nav-e .wordmark { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 22px; }
.nav-e .wordmark small { display: block; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 12px; color: var(--ink-3); }
.nav-e .nav-links { margin-left: 48px; gap: 0; align-items: stretch; }
.nav-e .nav-links a { display: grid; gap: 4px; padding: 0 28px; border-left: 1px solid var(--line); font-size: 16px; font-weight: 500; color: var(--ink); }
.nav-e .nav-links a:first-child { border-left: 0; padding-left: 0; }
.nav-e .nav-links a small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; text-transform: none; }
.nav-e .nav-links a:hover, .nav-e .nav-links a.on { color: var(--accent); }
.nav-e .nav-right { margin-left: auto; }
.nav-e .nav-right .cta { border-radius: 4px; }

@media (max-width: 860px) {
  .nav, .nav-b, .nav-c, .nav-d, .nav-e { height: 60px; background: color-mix(in srgb, var(--paper) 84%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .nav .wrap, .nav-c .wrap { display: flex; }
  .nav-links, .nav-b .nav-links, .nav-c .nav-links, .nav-e .nav-links { display: none; }
  .nav-right { margin-left: auto; }
  .nav-right .cta, .nav-c .nav-right .cta { display: none; }
  .nav-right .theme-btn { display: none; }
  .menu-btn, .nav-d .menu-btn { display: flex; width: 44px; padding: 0; }
  .menu-btn .lbl, .nav-d .menu-btn .lbl { display: none; }
  .nav-e .wordmark { flex-direction: row; font-size: 19px; }
  .nav-e .wordmark small { display: none; }
}

/* ---------- sections ---------- */
section { padding: var(--section) 0; border-top: 1px solid var(--line); }
section.flush { border-top: 0; }
section.tight { padding-top: 0; }
.head { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); align-items: end; margin-bottom: 56px; }
.head .meta { margin-bottom: 20px; }
.head .side { justify-self: end; align-self: end; max-width: 40ch; }
.head .side.lede { font-size: 17px; }
@media (max-width: 800px) { .head { grid-template-columns: 1fr; gap: 20px; } .head .side { justify-self: start; } }

/* ---------- hero (statement + plate) ---------- */
.hero { padding: clamp(56px, 9vh, 112px) 0 0; border-top: 0; }
.hero .grid { display: grid; grid-template-columns: 8fr 4fr; gap: var(--gap); align-items: end; }
.hero h1 { max-width: 14ch; }
.hero.wide h1 { max-width: 20ch; font-size: clamp(40px, 5.4vw, 76px); }
.hero .side { max-width: 36ch; justify-self: end; padding-bottom: 6px; }
.hero .side p { margin-bottom: 24px; }
.hero .side .meta { margin-bottom: 14px; }
.hero .side .btn-row { margin-top: 0; }
.hero .end { padding-bottom: 64px; }
@media (max-width: 800px) { .hero .grid { grid-template-columns: 1fr; gap: 32px; } .hero .side { justify-self: start; } }

.plate { position: relative; overflow: hidden; border-radius: 10px; background: var(--ink); aspect-ratio: 21 / 9; margin-top: 56px; }
.plate.tall { aspect-ratio: 16 / 7; }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate .cap { position: absolute; left: 20px; bottom: 16px; right: 20px; display: flex; justify-content: space-between; gap: 24px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(242,242,237,.72); }
.plate.paper .cap { color: var(--ink-3); }
.plate .cap span { text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.plate.paper .cap span { text-shadow: none; }

.status { margin-top: 40px; padding: 20px 0 64px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 0; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ink-2); }
.status a { color: var(--ink-2); }
.status a:hover { color: var(--ink); }
.status .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 1px; animation: pulse 2.4s ease-in-out infinite; }
.status .sep { color: var(--ink-3); margin: 0 14px; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* ---------- ecosystem tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.tiles.two { grid-template-columns: repeat(2, 1fr); }
.tile { position: relative; display: block; border-radius: 10px; overflow: hidden; background: #141412; aspect-ratio: 4 / 5; color: #F2F2ED; }
.tiles.two .tile { aspect-ratio: 16 / 10; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s var(--ease); filter: saturate(.85); }
.tile:hover img { transform: scale(1.04); filter: saturate(1); }
.tile .in { position: absolute; inset: 0; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(180deg, rgba(10,10,10,.05) 40%, rgba(10,10,10,.72)); }
.tile .idx { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(242,242,237,.7); }
.tile h3 { font-size: clamp(22px, 1.9vw, 30px); font-weight: 600; letter-spacing: -.025em; }
.tile p { font-size: 14px; color: rgba(242,242,237,.72); margin-top: 6px; }
.tile .go { position: absolute; top: 18px; right: 20px; font-size: 20px; opacity: 0; transform: translate(-6px, 6px); transition: all .4s var(--ease); }
.tile:hover .go { opacity: 1; transform: none; }
.tile.paper { background: #ECEBE6; color: #141412; }
.tile.paper .in { background: linear-gradient(180deg, rgba(244,243,239,0) 40%, rgba(244,243,239,.85)); }
.tile.paper .idx, .tile.paper p { color: rgba(20,20,18,.62); }
@media (max-width: 1000px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles, .tiles.two { grid-template-columns: 1fr; } .tile { aspect-ratio: 16/10; } }

/* ---------- index rows ---------- */
.rows { border-top: 1px solid var(--line); }
.row-item { display: grid; grid-template-columns: 56px 3fr 2fr 5fr 40px; gap: var(--gap); align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding-left .35s var(--ease); }
.row-item:hover { padding-left: 8px; }
.row-item .idx { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.row-item .name { font-size: 26px; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.row-item .tag { font-size: 14px; color: var(--ink-2); }
.row-item .desc { font-size: 15.5px; color: var(--ink-2); line-height: 1.5; text-wrap: pretty; }
.row-item .go { justify-self: end; font-size: 20px; color: var(--ink-3); transition: transform .3s var(--ease), color .2s; }
.row-item:hover .go { transform: translateX(4px); color: var(--ink); }
@media (max-width: 900px) { .row-item { grid-template-columns: 40px 1fr 32px; grid-template-rows: auto auto auto; row-gap: 6px; } .row-item .idx { grid-row: 1; } .row-item .name { grid-column: 2; } .row-item .tag { grid-column: 2; grid-row: 2; } .row-item .desc { grid-column: 2; grid-row: 3; } .row-item .go { grid-column: 3; grid-row: 1; } .row-item:hover { padding-left: 0; } }

/* ---------- black band (Anyware feature on paper pages) ---------- */
.band { background: #141412; color: #F2F2ED; border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: 5fr 7fr; min-height: 560px; }
.band-copy { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; }
.band-copy .meta { color: rgba(242,242,237,.45); }
.band-copy h2 { margin: 24px 0 16px; font-size: clamp(32px, 3.6vw, 52px); }
.band-copy p { color: rgba(242,242,237,.68); max-width: 42ch; }
.band-copy .row { display: flex; gap: 28px; align-items: center; margin-top: 40px; font-weight: 500; flex-wrap: wrap; }
.band-shot { position: relative; min-height: 380px; }
.band-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-shot .shell { position: absolute; left: 10%; right: 0; bottom: 0; top: 18%; min-height: 0; border-radius: 10px 0 0 0; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; } }

/* editor shell mock */
.shell { width: 100%; height: 100%; min-height: 380px; background: #141414; border: 1px solid rgba(242,242,237,.12); border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; display: grid; grid-template-columns: 180px 1fr; grid-template-rows: 36px 1fr 120px; font-family: var(--mono); font-size: 11.5px; color: rgba(242,242,237,.4); overflow: hidden; }
.shell .bar { grid-column: 1 / -1; border-bottom: 1px solid rgba(242,242,237,.12); display: flex; align-items: center; padding: 0 14px; gap: 8px; }
.shell .bar i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(242,242,237,.12); }
.shell .bar b { margin-left: 10px; font-weight: 400; color: rgba(242,242,237,.64); }
.shell .tree { grid-row: 2 / 4; border-right: 1px solid rgba(242,242,237,.12); padding: 14px; line-height: 2; }
.shell .tree .on { color: #F2F2ED; }
.shell .tree .d { padding-left: 14px; }
.shell .code { padding: 14px 18px; line-height: 1.8; white-space: pre; overflow: hidden; }
.shell .code .k { color: rgba(242,242,237,.64); }
.shell .code .s { color: #C9A08A; }
.shell .code .c { opacity: .7; }
.shell .term { border-top: 1px solid rgba(242,242,237,.12); padding: 12px 18px; line-height: 1.8; color: rgba(242,242,237,.64); }
.shell .term .p { color: #E06A62; }
.shell .cursor { display: inline-block; width: 7px; height: 13px; background: #F2F2ED; vertical-align: -2px; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0 } }
@media (max-width: 600px) { .shell { grid-template-columns: 1fr; } .shell .tree { display: none; } }

/* ---------- journal: feature + list, grid, cards, archive ---------- */
.feature { display: grid; grid-template-columns: 8fr 4fr; gap: calc(var(--gap) * 2); }
.feature .big { display: block; }
.feature .big .img { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-2); }
.feature .big img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature .big:hover img { transform: scale(1.03); }
.feature .big h3 { font-size: clamp(28px, 3vw, 44px); font-weight: 600; letter-spacing: -.03em; margin-top: 22px; max-width: 24ch; }
.feature .big p { color: var(--ink-2); margin-top: 10px; max-width: 60ch; }
.feature .big .meta { margin-top: 14px; }
.side-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.side-list a { display: grid; grid-template-columns: 1fr 96px; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.side-list h4 { font-size: 17px; }
.side-list .meta { margin-top: 8px; font-size: 11px; }
.side-list .img { aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--paper-2); }
.side-list img { width: 100%; height: 100%; object-fit: cover; }
.side-list .all { margin-top: auto; padding-top: 24px; font-weight: 500; font-size: 15px; display: block; border: 0; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

.jgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px var(--gap); }
.jgrid.top { margin-top: 72px; }
.jcard { display: block; }
.jcard .img { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.jcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.jcard:hover img { transform: scale(1.03); }
.jcard .meta { margin-top: 16px; font-size: 11px; }
.jcard h4 { font-size: 21px; letter-spacing: -.02em; line-height: 1.15; margin-top: 8px; }
.jcard p { font-size: 15px; color: var(--ink-2); margin-top: 8px; }
.jcard[hidden] { display: none; }
@media (max-width: 900px) { .jgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .jgrid { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); align-items: center; }
.filters button { font-size: 13.5px; font-weight: 500; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); transition: all .2s; }
.filters button:hover { color: var(--ink); border-color: var(--ink); }
.filters button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters .count { margin-left: auto; }

.lead { display: grid; grid-template-columns: 8fr 4fr; gap: calc(var(--gap) * 2); padding: 48px 0; border-bottom: 1px solid var(--line); }
.lead .img { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.lead img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.lead a:hover img { transform: scale(1.03); }
.lead .txt { display: flex; flex-direction: column; justify-content: flex-end; }
.lead h2 { font-size: clamp(30px, 3.2vw, 46px); letter-spacing: -.03em; margin-top: 14px; }
.lead p { color: var(--ink-2); margin-top: 14px; max-width: 44ch; }
@media (max-width: 900px) { .lead { grid-template-columns: 1fr; } }

.kv { margin-top: 28px; }
.kv div { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding: 9px 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; }
.kv span:first-child { text-transform: uppercase; color: var(--ink-3); letter-spacing: .12em; }
.kv span:last-child { color: var(--ink); text-align: right; }

.archive { border-top: 1px solid var(--line); }
.archive a { display: grid; grid-template-columns: 120px 1fr 160px 90px; gap: 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; transition: padding-left .3s var(--ease); }
.archive a:hover { padding-left: 6px; }
.archive .meta { font-size: 11px; }
.archive .t { font-weight: 500; }
@media (max-width: 800px) { .archive a { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- post ---------- */
.phead { padding: clamp(48px, 8vh, 96px) 0 40px; border-top: 0; }
.phead .meta { margin-bottom: 20px; }
.phead h1 { font-size: clamp(38px, 5vw, 72px); max-width: 20ch; }
.phead .lede { margin-top: 24px; max-width: 48ch; }
.byline { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--ink-2); }
.byline span b { font-weight: 400; color: var(--ink-3); text-transform: uppercase; letter-spacing: .12em; margin-right: 8px; }
.hero-img { aspect-ratio: 21 / 9; border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-3); margin-top: 12px; }
.body { padding: 64px 0 0; }
.body p { font-size: 19px; line-height: 1.6; margin-bottom: 1.4em; text-wrap: pretty; }
.body h2 { font-size: 28px; margin: 2.2em 0 .7em; }
.body h3 { font-size: 21px; font-weight: 600; margin: 1.8em 0 .6em; }
.body ul, .body ol { margin: 0 0 1.4em 1.2em; font-size: 19px; line-height: 1.6; list-style: disc; }
.body ol { list-style: decimal; }
.body li { margin-bottom: .4em; }
.body a { border-bottom: 1px solid var(--line-2); }
.body a:hover { color: var(--accent); border-color: var(--accent); }
.body p.pull { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3vw, 40px); line-height: 1.2; letter-spacing: -.01em; margin: 2em 0; max-width: 24ch; font-variation-settings: 'opsz' 144, 'SOFT' 30; }
.body figure { margin: 3em 0; }
.body figure.wide { margin-left: calc(50% - 50vw + var(--pad)); margin-right: calc(50% - 50vw + var(--pad)); }
.body figure .img { border-radius: 8px; overflow: hidden; background: var(--paper-2); }
.body figure img { width: 100%; }
.body .two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.body .two .img { aspect-ratio: 4 / 3; }
.body .two img { height: 100%; object-fit: cover; }
.body pre { font-family: var(--mono); font-size: 13.5px; line-height: 1.7; background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; overflow-x: auto; margin: 0 0 1.6em; }
.body code { font-family: var(--mono); font-size: .9em; }
table.spec { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1em 0 2em; }
table.spec th, table.spec td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; }
table.spec td:first-child { font-weight: 600; width: 30%; padding-right: 16px; }
.end { display: flex; justify-content: space-between; align-items: baseline; margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: .06em; }
@media (max-width: 800px) { .body .two { grid-template-columns: 1fr; } }

/* ---------- statement + documents ---------- */
.statement { display: grid; grid-template-columns: 4fr 8fr; gap: 64px var(--gap); align-items: start; }
.statement .say { font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; text-wrap: pretty; max-width: 24ch; }
.docs { border-top: 1px solid var(--line); }
.docs a { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; letter-spacing: -.01em; transition: padding-left .3s var(--ease); }
.docs a:hover { padding-left: 6px; }
.docs a .meta { font-size: 11px; white-space: nowrap; }
@media (max-width: 900px) { .statement { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- company pages: capability columns, prose blocks ---------- */
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px var(--gap); }
.cols.three { grid-template-columns: repeat(3, 1fr); }
.col { border-top: 1px solid var(--line); padding-top: 20px; }
.col .meta { margin-bottom: 12px; }
.col h4 { font-size: 19px; margin-bottom: 12px; }
.col li { font-size: 15px; color: var(--ink-2); padding: 7px 0; border-top: 1px solid var(--line); }
.col li:first-child { border-top: 0; }
.col p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 900px) { .cols, .cols.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cols, .cols.three { grid-template-columns: 1fr; } }

.prose { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gap); }
.prose .measure p { font-size: 19px; line-height: 1.6; margin-bottom: 1.2em; text-wrap: pretty; }
.prose .measure p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .prose { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.split .img { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.split img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* numbered principles / phases */
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 80px 3fr 6fr 120px; gap: var(--gap); padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.step .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.step h4 { font-size: 22px; letter-spacing: -.02em; }
.step p { font-size: 15.5px; color: var(--ink-2); }
.step .state { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); justify-self: end; white-space: nowrap; }
.step.now .state { color: var(--accent); }
.step.now .state::before { content: '● '; }
@media (max-width: 800px) { .step { grid-template-columns: 48px 1fr; } .step p { grid-column: 2; } .step .state { grid-column: 2; justify-self: start; } }

/* roles */
.roles { border-top: 1px solid var(--line); }
.role { display: grid; grid-template-columns: 3fr 2fr 5fr 40px; gap: var(--gap); padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding-left .3s var(--ease); }
.role:hover { padding-left: 8px; }
.role h4 { font-size: 20px; }
.role .meta { font-size: 11px; }
.role p { font-size: 15px; color: var(--ink-2); }
.role .go { justify-self: end; color: var(--ink-3); }
@media (max-width: 800px) { .role { grid-template-columns: 1fr 32px; } .role .meta, .role p { grid-column: 1; } }

/* contact + forms */
.contact p { max-width: 42ch; color: var(--ink-2); margin-top: 16px; }
.contact .mail { display: inline-block; margin-top: 40px; font-size: clamp(28px, 4.6vw, 56px); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.contact .mail:hover { color: var(--accent); }
.sub { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gap); align-items: center; }
@media (max-width: 900px) { .sub { grid-template-columns: 1fr; } }

/* ---------- anyware: product shelf, phase table ---------- */
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.shelf .item { border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: var(--paper-2); display: flex; flex-direction: column; min-height: 220px; transition: border-color .2s; }
.shelf .item:hover { border-color: var(--line-2); }
.shelf .item .n { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; color: var(--ink-3); }
.shelf .item h4 { font-size: 20px; margin-top: 18px; }
.shelf .item p { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; }
.shelf .item .state { margin-top: auto; padding-top: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.shelf .item.now .state { color: var(--accent); }
@media (max-width: 900px) { .shelf { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .shelf { grid-template-columns: 1fr; } }

.diagram { border: 1px solid var(--line); border-radius: 12px; padding: clamp(24px, 3vw, 40px); background: var(--paper-2); font-family: var(--mono); font-size: 12.5px; line-height: 1.8; color: var(--ink-2); overflow-x: auto; }
.diagram b { color: var(--ink); font-weight: 500; }
.diagram pre { white-space: pre; }

.notice { border: 1px solid var(--line-2); border-radius: 10px; padding: 18px 20px; font-size: 15px; color: var(--ink-2); display: flex; gap: 14px; align-items: baseline; }
.notice .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; position: relative; top: -1px; }
.notice b { color: var(--ink); font-weight: 600; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding-top: 64px; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: var(--gap); }
.foot-grid h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; margin-bottom: 16px; }
.foot-grid li { margin-bottom: 9px; font-size: 14.5px; }
.foot-grid li a { color: var(--ink-2); }
.foot-grid li a:hover { color: var(--ink); }
.foot-grid .tag { font-size: 14.5px; color: var(--ink-2); max-width: 26ch; margin-top: 16px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 64px; padding: 20px 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--ink-3); }
.giant { font-weight: 700; letter-spacing: -.06em; line-height: .74; font-size: clamp(120px, 24vw, 340px); margin-top: 8px; margin-bottom: -.08em; color: var(--ink); user-select: none; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost .letters { font-size: clamp(120px, 26vw, 360px); font-weight: 700; letter-spacing: -.06em; line-height: .8; display: inline-flex; }
.lost .letters span { display: inline-block; animation: drop 1.4s var(--ease) forwards; }
.lost .letters span:nth-child(2) { animation-delay: .25s; }
.lost .letters span:nth-child(3) { animation-delay: .5s; }
.lost .letters span:nth-child(4) { animation-delay: .75s; }
@keyframes drop { 0% { transform: none; opacity: 1; } 60% { transform: none; opacity: 1; } 100% { transform: translateY(40vh) rotate(8deg); opacity: 0; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .06s; }
.reveal:nth-child(3) { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- theme toggle ---------- */
.theme-btn { width: 36px; height: 36px; border-radius: 999px; display: inline-grid; place-items: center; color: var(--ink-2); transition: color .2s, background .2s; }
.theme-btn:hover { color: var(--ink); background: var(--paper-2); }
.theme-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
.menu .theme-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 500; }
.menu .theme-row .theme-btn { width: 44px; height: 44px; border: 1px solid var(--line-2); margin: 0; }

/* dark-surface adjustments for things that are literally black on paper */
:root[data-theme="dark"] .band, :root[data-theme="dark"] .tile.paper { border: 1px solid var(--line); }

:root[data-theme="dark"] .shell { background: #0E0E0E; }
:root[data-theme="dark"] .plate.paper .cap { color: rgba(20,20,18,.55); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .band, :root:not([data-theme="light"]) .tile.paper { border: 1px solid var(--line); }
  :root:not([data-theme="light"]) .shell { background: #0E0E0E; }
}

/* ---------- colour, settled ---------- */
/* company colour lives in the plate; the page only borrows it for the italic word and the eyebrow */
.row-item .idx::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--c, var(--ink-3)); margin-right: 10px; vertical-align: 1px; }
.row-item[style*="--c"]:hover .name { color: var(--c); }
.company .hero .meta a { color: var(--c); }
.company .hero h1 em { color: var(--c); }
.company .head .meta { color: var(--c); }
.company .link:hover, .company .contact .mail:hover { color: var(--c); }

/* journal categories: one small dot */
.cat { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 0; background: var(--ink-3); }
.cat.notes { background: var(--c-notes); }
.cat.brand { background: var(--c-wear); }
.cat.studio { background: var(--c-studio); }
.cat.labs { background: var(--c-labs); }

/* brand page swatches */
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.swatches .sw { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.swatches .sw i { display: block; height: 120px; }
.swatches .sw div { padding: 12px 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 700px) { .swatches { grid-template-columns: 1fr 1fr; } }
