/* THE PALETTE (Anthony, 2026-09-18: "quite a few variations in colour … it should
   all be very consistent"). Every colour on the site is one of these ten, or one
   of them at an opacity:
     #ffffff  #f5f5f5  #ebebeb  #dedede  #cccccc      the light half
     #444444  #333333  #2a2a2a  #1c1c1c  #111111      the dark half
   #111111 is the only black — the ink, the solid pill, Get in touch's card AND
   the dark theme's ground (which was #121212, a second black one step off).
   Near-twins were folded into their neighbour: #f2f2f2 → #f5f5f5, #dcdcdc and
   #d6d6d6 → #dedede, #c9c9c9 and #cbcbcb → #cccccc, #343434 and #383838 → #333,
   #424242 and #484848 → #444, #2c2c2c → #2a2a2a, #1e1e1e → #1c1c1c.
   Outside the scale, each for one job: #eeeeee is the blend ink (exclusion with
   #fff gives exactly #111 — see .blend-ink), the error red #d33636 (both themes; was the peach pair #e08b74 / #a2412a),
   and Apple green #34c759 for Low-res. */
/* see `booting` in index.html: the unstyled first pass on an iPhone reload
   must not animate into the styled page */
.booting *,.booting *::before,.booting *::after{transition:none!important}

:root{
  --card-w:400px;
  --card-h:500px;
  --gap:20px;
  --pad:20px;
  --strip-gap:20px;   /* between the strip's cards: 10 on a laptop (TIGHTER, AFTER BLOND) */
  --fs-s:14px;     /* the small size: 14 (13 was tried 2026-10-28 and turned down — "a touch too small"); the scale is 14 / 16 / 20 */
  --box-r:8px;     /* a text button or field: see THE SHAPE SYSTEM at the end. 8 on a 32 box, a quarter of its height (5 read blocky; SPACE10's boxes are a third, Blond's a fifth) */
  --radius:10px;   /* 10 everywhere since 2026-10-28 (was 20): the laptop took it first, a phone followed in the sweep */
  --caption-h:40px;
  --header-h:70px;
  /* CONTROL HEIGHT (Anthony, 2026-09-21): text buttons, fields, switches and
     the menu's rows. 36 on a laptop (40 read as an accessibility size beside
     a pointer), 40 on a phone for the thumb; pills are half. The header row
     and the round icon chips stay 30 on both. */
  --ctl-h:32px;   /* 36 for an hour (2026-09-21): "too big… lets try 30ish, maybe 32" */
  --ctl-r:16px;
  /* WORDS SIT 14 IN FROM A FIELD'S OR A FULL-WIDTH ROW'S EDGE (2026-11-16, his note:
     "the padding on the left is too much… condense that a bit"; was 20). Fields,
     the menu's rows, Get in touch, Send and the checkout's rows all read it. */
  --word-x:14px;
  /* EVERY CONTROL IS ONE HEIGHT ON A LAPTOP (Anthony, 2026-09-21: "it's just
     freaking me out sometimes that I see some being 30 and then the others
     being 36"). --chip-h is the header row, the round icon chips, Buy, the
     switches and the cursor badge; on a laptop it is --ctl-h. A phone keeps
     its 30px header row and chips (and 40 for everything else). */
  --chip-h:var(--ctl-h);
  --chip-r:var(--ctl-r);
  --syn-gap:40px;

  --zoom-hover:420px;   /* +20px — just enough to read as "this can open" */
  --zoom-max:624px;     /* the committed size */

  --bg:#ffffff;
  --surface:#f5f5f5;
  --skel-sheen:rgba(255,255,255,.7);   /* the sweep across a picture still loading (02-strip.css) */
  /* the open journal entry's frosted surface — the menu panel's alpha, so a
     story stays legible over a photograph. /?jr=solid paints --surface flat. */
  --jr-frost:rgba(245,245,245,.72);
  /* The Start a project form, which sits on the panel's own surface rather
     than on the contact block's counter-coloured card — see .jr-form. Written
     out per theme like every other colour here; a quiet grey for the
     placeholders, and a Send one clear step above the fields. */
  --jr-ph:rgba(17,17,17,.4);
  --jr-note:rgba(17,17,17,.55);
  /* SEND IS THE ONE SOLID THING IN THE FORM (Anthony, 2026-09-18: "make it a
     black for it to stand out in the light mode and the opposite for dark"). On
     the panel it is the Buy / Get in touch pill; on the counter-coloured contact
     card it is that pill from the other theme. It was a grey one step off the
     fields and read as a fifth field. */
  --jr-send:#111111;
  --jr-send-hover:#333333;
  --jr-send-ink:#ffffff;
  --btn:#ebebeb;
  --btn-hover:#dedede;
  --chip:rgba(235,235,235,.6);
  --chip-hover:rgba(204,204,204,.85);
  --seg-glide:#ffffff;  /* one step lighter than the chip it slides in */
  --ink:#111111;

  /* The two inks, named by the backdrop they belong on rather than by theme.
     They are the light and dark themes' own --ink, and the wordmark picks
     between them from what is measured underneath it (see "the wordmark's ink
     is measured, not blended" in app.js) — a dark photograph scrolling under
     the wordmark on a light page takes --ink-on-dark, and nothing else on the
     page changes. Absolute: these two do not flip with the theme. */
  --ink-on-light:#111111;
  --ink-on-dark:#dedede;

  /* The contact block runs counter to the page: a dark shape on the light
     theme, a light one on the dark theme, so it always reads as the primary
     action. Dark-mode values mirror the light ones by lightness. */
  --contact-pill:#111111;
  /* THE SOLID PILL'S HOVER IS A VISIBLE STEP (Anthony, 2026-09-18: Send "should
     have some kind of animation when you hover, aligned with the rest of the
     website"). It went #111 -> #000, which nobody can see; the grey buttons step
     #ebebeb -> #dcdcdc. Black cannot get darker, so the step is towards the
     ground: #333 on light, #d6d6d6 on dark. Every solid pill shares it — Buy,
     Send, the closed Get in touch, the chosen menu row, the checkout wallet. */
  --contact-pill-hover:#333333;
  --contact-card:#111111;   /* the pill it grows out of — one black, not two (2026-09-18 sweep) */
  --contact-field:#2a2a2a;
  --contact-field-focus:#333333;
  --contact-send:#f5f5f5;          /* on the black card: the pill, the other way round */
  --contact-send-hover:#dedede;
  --contact-send-ink:#111111;
  --contact-ink:#ffffff;
  --contact-ph:rgba(255,255,255,.4);
  --contact-ph-soft:rgba(255,255,255,.4);   /* = --contact-ph: one placeholder strength (2026-09-18 sweep) */
  --contact-ring:rgba(255,255,255,.35);
  --contact-note:rgba(255,255,255,.55);    /* .55 = every other secondary line */
  --contact-error:#d33636;   /* Anthony, 2026-09-19: a real red, not the peach it was (#e08b74) */
  --chevron:url("/assets/svg/chevron-down.svg");
  /* The same pair, picked the other way round: --chevron is chosen for the
     contact block, which runs COUNTER to the page, so anything drawing a select
     on the page's own surface (the Start a project panel) needs the opposite
     glyph. Two tokens rather than one negated at the point of use, because a
     background image cannot inherit a colour and there is nothing else to
     reason from. */
  --chevron-on-surface:url("/assets/svg/chevron-down-dark.svg");
  --arrow:url("/assets/svg/arrow.svg");

  /* ONE MOTION LANGUAGE (2026-10-30): every curve on the site is the card's
     expo-out (--card-ease), answering at once and settling softly like the
     smooth scroll. --ease / --glide / --co-ease / --seg-ease keep their names
     so each use still says what kind of move it is. Was .22,.61,.36,1. */
  --ease:cubic-bezier(.16,1,.3,1);
  /* TRAVEL, AS OPPOSED TO RESPONSE (2026-09-21). --ease leaves at full speed,
     which suits a hover answering the pointer or a fade; for a surface that
     moves a long way — a card opening, the journal growing, the menu's card
     unfolding — it read as a jump ("sudden"). --glide starts soft and lands
     long, so the eye picks the motion up before it covers ground. Everything
     that moves together on one move (the journal's box, its counter-moved
     contents, the flier, the closing hole) shares it, or they drift apart. */
  --glide:cubic-bezier(.16,1,.3,1);   /* was .45,0,.15,1 */
  /* rides along with the finger's own scroll (the phone's caption handover,
     2026-09-30): starts and ends at rest like --glide but with half its peak
     speed, so it adds to a scroll without ever kicking it */
  --drift:cubic-bezier(.37,0,.63,1);
  /* two lengths: 420 for a response, 780 for travel (were 340 / 620) */
  --lift:420ms;
  --open:780ms;
  /* A CARD MOVES LIKE THE SCROLL (2026-10-28, his note: after the smooth
     scrolling, the card's open felt stiff and the hover a touch laggy). The
     strip's cards open, close and lift on an exponential ease-out — they answer
     at once and settle softly, the shape of the wheel's own glide — on a
     slightly longer clock than --open so the landing has room. */
  --card-open:780ms;
  --card-ease:cubic-bezier(.16,1,.3,1);
  /* THE RISE INTO AN OPEN CARD (2026-11-13, his note: "it jumps up", then the text
     comes in). On the expo-out above the card covered ~80% of the way in its first
     150ms and drifted the rest: a jump, then a settle. The in-out of September read
     as stiff. This sits between: it answers at once but spreads the travel, about
     half the way in the first fifth, and lands long, so image, caption and text
     read as one push. Only the open's rise uses it. */
  --card-rise:850ms;
  --card-rise-ease:cubic-bezier(.25,.75,.25,1);
  /* the content rising in under it (02-strip.css case-rise) */
  --case-rise:700ms;    /* faster (2026-11-16, his call: "make it faster and see how that feels"; was 1100) */
  /* A SHORT TAIL (2026-11-16, his note: it's the text "getting into place" that feels
     off). Text is drawn on whole pixels, so the last stretch of a long ease-out moves it
     in uneven 1px steps. This curve crawls under a pixel a frame for ~70ms, not ~150,
     and peaks at ~16px a frame, not ~27. */
  --case-rise-ease:cubic-bezier(.35,.6,.45,1);
  --card-lift:420ms;
  /* The contact card alone, and slower than --open on purpose (Anthony,
     2026-09-17): it travels from a 30px row to a full card, several times the
     distance anything else on --open covers, and at 620 the growth was over
     before it could be watched. The index pill keeps --open — it is a short
     move, and matching durations across very different distances is what makes
     the big one feel rushed. */
  --contact-open:860ms;
  /* the journal panel's growth, on the same reasoning as --contact-open: a card
     becoming a full panel is the longest distance anything on the site travels,
     and at 620 it read as a pop rather than as the card growing */
  --jr-open:720ms;   /* 760 until 2026-09-21 (he asked for it a touch slower), 880, then 800 once the words waited for it to land, then 720: "snappier" (2026-09-26). At 620 it read as a pop. */
  /* THE CLOSE IS FASTER THAN THE OPEN, and deliberately so (Anthony,
     2026-09-18). Everything the close animates is aimed at a rectangle in the
     feed, and the feed is held still for as long as it runs — so the shorter it
     is, the shorter the hold. Opening is the thing you came for and can take
     its time; closing is the thing you do on your way somewhere else. */
  --jr-close:420ms;
  /* A CARD IN THE STRIP CLOSES ON A PROJECT CARD'S CLOCK (2026-11-16, his note: a
     journal or Contact card "just kind of closes", where a project closes smoothly).
     --jr-close above is the full panel's, kept short so the feed isn't held; a card
     that closes where it stands holds nothing, so it takes the project close's 780. */
  --read-close:780ms;
  /* the card's own words rising again as the panel lands on it and goes */
  --jr-face:300ms;
  /* the entry filling with its words, once the shape has landed */
  --jr-fill:280ms;   /* 460, then 400, 360 once the fill waited for the box to land, then 280: "snappier" (all 2026-09-26) */

  /* The swell needs an ease-IN: the shared --ease starts fast, so after the
     settle pause the motion began with a visible step. Easing in means the
     first couple of hundred milliseconds move sub-pixel, which reads as one
     continuous ramp rather than a delay followed by an animation. */
  --swell:1000ms;
  --swell-ease:cubic-bezier(.62,0,.3,1);

  /* The project page's column growth. Eased at BOTH ends, so hovering reads as
     a drift rather than a jump that then creeps — and the same curve and
     duration for the hover and the click, so going from one to the other is
     one continuous movement instead of two animations meeting. */
  --grow:900ms;
  --grow-ease:cubic-bezier(.42,0,.25,1);

  /* PAGES FADE LIKE BLOND'S (2026-10-30, his call: the 16px lift read generic).
     Measured on blond.cc: the old page fades out over ~300ms, eased at both
     ends, a ~70ms empty beat, then the new one fades in the same way. No
     movement, no overlap. Their own curve. */
  /* every button-type control answers a hover or a press on one clock
     (2026-10-30, step 6: they ran 200, 220 and 260). Text links stay at 200,
     a touch quicker on purpose; the slider labels ride --seg-t with their highlight. */
  --hover:220ms;
  --fade:300ms;
  --fade-ease:cubic-bezier(.77,0,.175,1);
  --fade-gap:360ms;     /* out, then the beat */
  --swap:260ms;         /* header controls arrive once the leaving ones are gone */
  --co-t:780ms;         /* the site sliding off the checkout, and back */
  --co-ease:cubic-bezier(.16,1,.3,1);   /* was .62,0,.3,1 */
  --co-out:var(--co-t);  /* the way back; the same as the way in, by choice */
  --co-out-ease:var(--co-ease);
  --seg-t:420ms;         /* segmented controls: the highlight and its words */
  --seg-ease:cubic-bezier(.16,1,.3,1);   /* was .65,0,.35,1 */
  --behind:#111111;     /* under the site: the OTHER theme's ground, for contrast (the same theme was tried 2026-09-25 while Safari's bar flipped; the root fix made that unnecessary) */
  --seam:100px;         /* the break between two projects in the stream */
  /* Project page split. At 1400 it is exactly Figma's 555 / 20 / 785. Wider
     than that, the extra goes MOSTLY TO THE TEXT (--text-share) so the images
     grow more slowly than the page does — a wide measure costs less than an
     upscaled photograph. Narrower, both shrink in proportion. */
  --extra:max(0px, 100vw - 1400px);
  --text-share:.6;
  --copy-w:calc(555px + var(--extra) * var(--text-share));
  --open-top:20px;      /* an open column clears the top edge by one gutter */
  --panel-w:280px;      /* menu; the same width with Get in touch open. 280 since 2026-10-28 (was 300: "overbearing… off scale"); 240 and 260 clipped the form's "How can we help you?" and wrapped "Low-res images" */
  --scrim:rgba(255,255,255,.1);   /* the wash over the blur behind the form */
}

/* DARK MODE MIRRORS LIGHT MODE'S STEPS, NOT ITS NUMBERS (2026-09-15). Never
   pure black — #121212 stays the ground (Anthony's call; SUPERSEDED 2026-09-18 — the ground is #111111, the site's one black: see THE PALETTE). What changed is the
   ladder above it. Measured in perceived lightness (L*), light mode's card
   sits 3.5 below its ground, a button 7 below, a chip 3.6; the old dark
   values (#2a2a2a cards, #565656 buttons, a #3b3b3b chip) sat 11, 31 and 19
   ABOVE theirs — every surface shouting three to four times as loud as its
   light twin, which is what read as "too light" (Anthony). Now each step is
   about 1.5x its light twin, the most a dark step needs to stay visible:
     ground  #121212  L* 5
     card    #1c1c1c  L* 11   (light: 3.5 below the ground)
     button  #2a2a2a  L* 17   (light: 7)
     chip    #222 over the ground, a darker glass over pictures
   And the ink is #dedede, not #f2f2f2: what the exclusion-blended wordmark and
   footer already come out as on #121212 (#eee excluded with #121212), so body
   copy and the chrome are finally one white, and the glare of near-white on
   near-black (halation) goes. Get in touch keeps its bright pill — the one
   high-contrast element. Picked on his phone over the old ladder. */
[data-theme="dark"]{
  --bg:#111111;
  --behind:#ffffff;
  --surface:#1c1c1c;
  --skel-sheen:rgba(255,255,255,.05);
  --jr-frost:rgba(28,28,28,.72);
  --jr-ph:rgba(222,222,222,.4);
  --jr-note:rgba(222,222,222,.55);
  --jr-send:#f5f5f5;
  --jr-send-hover:#dedede;
  --jr-send-ink:#111111;
  --btn:#2a2a2a;
  --btn-hover:#333333;
  --chip:rgba(42,42,42,.6);
  --chip-hover:rgba(68,68,68,.85);
  --seg-glide:#333333;
  --ink:#dedede;

  --contact-pill:#f5f5f5;
  --contact-pill-hover:#dedede;
  --contact-card:#f5f5f5;   /* = --contact-pill */
  --contact-field:#dedede;
  --contact-field-focus:#cccccc;
  --contact-send:#111111;
  --contact-send-hover:#333333;
  --contact-send-ink:#ffffff;
  --contact-ink:#111111;
  --contact-ph:rgba(17,17,17,.4);
  --contact-ph-soft:rgba(17,17,17,.4);
  --contact-ring:rgba(17,17,17,.35);
  --contact-note:rgba(17,17,17,.55);
  --contact-error:#d33636;   /* one red in both themes (was #a2412a) */
  --chevron:url("/assets/svg/chevron-down-dark.svg");   /* light fields need a dark glyph */
  --chevron-on-surface:url("/assets/svg/chevron-down-ink-dark.svg");   /* the dark ink, #dedede, not white */
  --arrow:url("/assets/svg/arrow-dark.svg");            /* a dark chip needs a light glyph */
  --scrim:rgba(17,17,17,.18);        /* a dark ground needs darkening, not a white wash */
}

*{box-sizing:border-box}

html,body{margin:0;padding:0}
/* Touch polish. No grey flash over whatever was tapped — every control here
   already answers a press itself. */
html{-webkit-tap-highlight-color:transparent}
/* 14 means 14 on an iPhone too: turned sideways, Safari otherwise inflates text
   by its own rule (2026-09-24, "make sure those are all 14"). Pinch still zooms. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
p{margin:0}

/* html carries the background too. With it only on body it propagates to the
   canvas and body paints nothing, leaving the exclusion-blended chrome with an
   empty backdrop to blend against. */
/* The root's background changes INSTANTLY; the visible fade belongs to
   .page-ground below. On a phone project page nothing else paints a ground —
   the root does — and iPhone Safari does not always repaint a root background
   that transitions: switching to Light left the page black under dark text
   until something else forced a repaint (Anthony's recording, 2026-09-15). */
html{background:var(--bg)}
/* The page's ground: one still, screen-sized layer under everything, fading
   its own colour with the theme like any other element. The checkout's
   .co-ground (-2) and .checkout (-1) sit above it. */
.page-ground{position:fixed;inset:0;z-index:-3;background:var(--bg);transition:background-color 420ms var(--ease);pointer-events:none}

/* TIGHTER, AFTER BLOND (2026-10-28, his call; laptop only — a phone keeps its
   own). Kept from the label trials: the page's margins and the strip's gaps go
   from 20 to 10, every --radius corner (pictures, cards, panels) from 20 to 10,
   and an open card's pictures sit 10 apart, as do a project page's. Padding
   INSIDE cards and panels stays 20. The labels themselves were dropped: the
   caption under a lifted card is back as it was. */
@media (min-width:769px){
  /* THE PAGE'S EDGE BACK TO 20 (Anthony, 2026-11-14: the header, the footer and
     the text on the Index and project pages felt "way too tight" at 10). The
     strip's gaps, the open column's top and the corners stay 10. */
  :root{--pad:20px;--strip-gap:10px;--open-top:10px;--strip-pad:10px}
  /* ...but the home strip keeps a 10 margin (his note, same day): at 20 the
     card before the first one showed as a sliver in the gap at the left. */
  /* :root out-ranks the base rules further down (without it these lost, and
     a text card's copy sat 10 from its edge — "no space for breathing") */
  :root .surface-card,
  :root .panel-inner,
  :root .jr-doc,
  :root .pl-card,
  :root .svc-card{padding:20px}
  :root .co-inner{padding-top:20px;padding-left:20px;padding-right:20px}
  :root .proj-index{padding-left:20px;padding-right:20px}
  :root .idx-desc{padding:0 20px}
  :root .slide .shots,
  :root .proj-part .part-shots{gap:10px}
  /* A TEXT CARD'S BUTTON (2026-10-28, his call, after Blond's tags): a 5
     corner and 10 side padding. Its box keeps the copy's 20 from the card's
     edges — tried 10 in, off the copy, and he wanted it on the copy's line. */
  :root .surface-card .btn{padding:0 20px}   /* 20 each side: more room inside (2026-10-28); its corner is in THE SHAPE SYSTEM at the end */
}

/* Figma trims every text box to cap-height/alphabetic, so its gaps are measured
   between letterforms rather than line boxes. Without this the 20px gaps render
   as 53px. */
.trim{text-box:trim-both cap alphabetic}

body{
  background:var(--bg);
  font-family:"Inter Tight",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:var(--fs-s);
  line-height:normal;
  overflow:hidden;
  transition:background 420ms var(--ease);
  /* THE BLEND GROUP IS BODY, NOT THE ROOT (2026-09-17). WebKit does not
     reliably blend an element against the root's own canvas: when the
     compositor decides the backdrop is "the page background" rather than a
     painted layer, the blend is skipped and the #eee shows as itself.
     Isolating body makes body the group the blended chrome works within — and
     everything it should blend against (the page ground, .blurwrap, the strip,
     every page) is a child of body, so nothing is lost. This was one of three
     attempts to make the WORDMARK blend on a phone, none of which held; its
     ink is measured now (see .wordmark). The footer, which never misbehaved,
     is still blended, and keeps this. Header and footer carry no z-index. */
  isolation:isolate;
}

.ink{color:var(--ink)}
a{text-decoration:none;color:inherit}

/* Exclusion-blended chrome. Two details keep it from reading heavier than the
   rest of the type:
   - #eee rather than #fff, so over the light ground it resolves to #111 (the
     same value the other text uses) instead of pure black.
   - a blended element is composited into its own layer, which drops macOS
     subpixel antialiasing for grayscale and thickens the stems; `antialiased`
     puts the weight back where it was. */
.blend-ink{
  color:#eee;
  mix-blend-mode:exclusion;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

@supports (text-box:trim-both cap alphabetic){
  :root{--caption-h:max(32px, var(--chip-h))}   /* the two lines, or the chips beside them */
}
