/* ==========================================================================
   brettcalzada.com (v3)
   Less, but better. One stylesheet for every page.
   Breakpoints: mobile ≤768px · tablet 769–1279px · desktop ≥1280px
   ========================================================================== */

/* ---------- Fonts (IBM Plex Sans JP, Latin subsets only) ---------- */
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url("assets/fonts/ibm-plex-sans-jp-regular-english.woff2") format("woff2"); unicode-range: U+0000-00A0, U+00A2-00A9, U+00AC-00AE, U+00B0-00B7, U+00B9-00BA, U+00BC-00BE, U+00D7, U+00F7, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-21BB, U+2212, U+2215, U+F8FF, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url("assets/fonts/ibm-plex-sans-jp-regular-rest-latin.woff2") format("woff2"); unicode-range: U+00A1, U+00AA-00AB, U+00AF, U+00B8, U+00BB, U+00BF-00D6, U+00D8-00F6, U+00F8-00FF, U+0131, U+0152-0153, U+02B0-02FF; }
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url("assets/fonts/ibm-plex-sans-jp-regular-latin-extended-a.woff2") format("woff2"); unicode-range: U+0100-0130, U+0132-0151, U+0154-017F; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url("assets/fonts/ibm-plex-sans-jp-medium-english.woff2") format("woff2"); unicode-range: U+0000-00A0, U+00A2-00A9, U+00AC-00AE, U+00B0-00B7, U+00B9-00BA, U+00BC-00BE, U+00D7, U+00F7, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-21BB, U+2212, U+2215, U+F8FF, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url("assets/fonts/ibm-plex-sans-jp-medium-rest-latin.woff2") format("woff2"); unicode-range: U+00A1, U+00AA-00AB, U+00AF, U+00B8, U+00BB, U+00BF-00D6, U+00D8-00F6, U+00F8-00FF, U+0131, U+0152-0153, U+02B0-02FF; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url("assets/fonts/ibm-plex-sans-jp-medium-latin-extended-a.woff2") format("woff2"); unicode-range: U+0100-0130, U+0132-0151, U+0154-017F; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url("assets/fonts/ibm-plex-sans-jp-semibold-english.woff2") format("woff2"); unicode-range: U+0000-00A0, U+00A2-00A9, U+00AC-00AE, U+00B0-00B7, U+00B9-00BA, U+00BC-00BE, U+00D7, U+00F7, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-21BB, U+2212, U+2215, U+F8FF, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url("assets/fonts/ibm-plex-sans-jp-semibold-rest-latin.woff2") format("woff2"); unicode-range: U+00A1, U+00AA-00AB, U+00AF, U+00B8, U+00BB, U+00BF-00D6, U+00D8-00F6, U+00F8-00FF, U+0131, U+0152-0153, U+02B0-02FF; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url("assets/fonts/ibm-plex-sans-jp-semibold-latin-extended-a.woff2") format("woff2"); unicode-range: U+0100-0130, U+0132-0151, U+0154-017F; }

/* ---------- Typefaces to try (\ settings). All self-hosted, Latin + Latin Extended.
   Browsers only download a face when the page uses it, so only the active one loads. ---------- */
/* Hanken Grotesk italic (true italic, for emphasis and titles of works) */
@font-face { font-family: "Hanken Grotesk"; font-style: italic; font-weight: 300 600; font-display: swap; src: url("assets/fonts/hanken-grotesk-italic-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: italic; font-weight: 300 600; font-display: swap; src: url("assets/fonts/hanken-grotesk-italic-latin.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; }
/* Source Serif 4: display serif for the story and page titles (Hanken + Source Serif option).
   Variable weight and optical size, so it draws its display cut automatically at large sizes. */
@font-face { font-family: "Source Serif 4"; font-weight: 200 900; font-display: swap; src: url("assets/fonts/source-serif-4-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-weight: 200 900; font-display: swap; src: url("assets/fonts/source-serif-4-latin.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: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("assets/fonts/source-serif-4-italic-latin.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; }
/* Text faces from Typewolf's Google Fonts picks: Latin only, each downloads only when its option is picked */
@font-face { font-family: "DM Sans"; font-weight: 100 1000; font-display: swap; src: url("assets/fonts/web/dm-sans-latin-opsz-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: "DM Sans"; font-style: italic; font-weight: 100 1000; font-display: swap; src: url("assets/fonts/web/dm-sans-latin-opsz-italic.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: "Space Grotesk"; font-weight: 300 700; font-display: swap; src: url("assets/fonts/web/space-grotesk-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: "Work Sans"; font-weight: 100 900; font-display: swap; src: url("assets/fonts/web/work-sans-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: "Work Sans"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("assets/fonts/web/work-sans-latin-wght-italic.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: "Karla"; font-weight: 200 800; font-display: swap; src: url("assets/fonts/web/karla-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: "Karla"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("assets/fonts/web/karla-latin-wght-italic.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: "Open Sans"; font-weight: 300 800; font-display: swap; src: url("assets/fonts/web/open-sans-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: "Open Sans"; font-style: italic; font-weight: 300 800; font-display: swap; src: url("assets/fonts/web/open-sans-latin-wght-italic.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: "Source Sans 3"; font-weight: 200 900; font-display: swap; src: url("assets/fonts/web/source-sans-3-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: "Source Sans 3"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("assets/fonts/web/source-sans-3-latin-wght-italic.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: "Domine"; font-weight: 400 700; font-display: swap; src: url("assets/fonts/web/domine-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: "Merriweather Sans"; font-weight: 300 800; font-display: swap; src: url("assets/fonts/web/merriweather-sans-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: "Merriweather Sans"; font-style: italic; font-weight: 300 800; font-display: swap; src: url("assets/fonts/web/merriweather-sans-latin-wght-italic.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: "Merriweather"; font-weight: 300 900; font-display: swap; src: url("assets/fonts/web/merriweather-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: "Merriweather"; font-style: italic; font-weight: 300 900; font-display: swap; src: url("assets/fonts/web/merriweather-latin-wght-italic.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: "Roboto Slab"; font-weight: 100 900; font-display: swap; src: url("assets/fonts/web/roboto-slab-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: "Roboto"; font-weight: 100 900; font-display: swap; src: url("assets/fonts/web/roboto-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: "Roboto"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("assets/fonts/web/roboto-latin-wght-italic.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: "Geist"; font-weight: 300 600; font-display: swap; src: url("assets/fonts/geist-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-weight: 300 600; font-display: swap; src: url("assets/fonts/geist-latin.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: "Schibsted Grotesk"; font-weight: 400 600; font-display: swap; src: url("assets/fonts/schibsted-grotesk-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400 600; font-display: swap; src: url("assets/fonts/schibsted-grotesk-latin.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: "Hanken Grotesk"; font-weight: 300 600; font-display: swap; src: url("assets/fonts/hanken-grotesk-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-weight: 300 600; font-display: swap; src: url("assets/fonts/hanken-grotesk-latin.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; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Color: warm paper, near-black ink, one signal color */
  --paper: #f4f4f1;
  --raised: #ffffff;
  --ink: #141413;
  --ink-2: rgba(20, 20, 19, 0.62);   /* secondary text (about 5:1 on paper) */
  --ink-3: rgba(20, 20, 19, 0.24);   /* past statements, disabled */
  --line: rgba(20, 20, 19, 0.1);     /* hairlines */
  --hover: rgba(20, 20, 19, 0.035);  /* row hover */
  --signal: var(--ink);              /* the one accent: none by default, text color (set in \ settings) */
  --on-signal: var(--paper);         /* text on top of the accent */

  /* Space */
  --margin: 40px;
  --gap: 24px;
  --max: 1200px;
  --header-h: 80px;
  /* 8px rhythm: every line height is a whole number of 8px steps and every vertical space a multiple of 8.
     Line heights keep each typeface's tuned ratio, rounded to the nearest step:
     --lh-body  body text (24px for every Latin face; 32px in Japanese)
     --lh-title 21px titles, links, service names and case study paragraphs (32px) */
  --bl: 8px;
  --lh-body: round(nearest, calc(var(--body) * var(--body-lh)), var(--bl));
  --lh-title: round(up, calc(var(--title) * 1.3), var(--bl));

  /* Type */
  --display: calc(clamp(1.75rem, 1.05rem + 2.6vw, 3rem) * var(--dk));    /* 28 → 48px, scaled per typeface */
  --title: calc(clamp(1.125rem, 1rem + 0.35vw, 1.3125rem) * var(--tk));  /* 18 → 21px, scaled per typeface */
  --small: 0.8125rem;                                   /* 13px */

  /* Motion: fast, crisp, one curve */
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --t-fast: 140ms;
  --t: 240ms;
  --t-slow: 360ms;
}

/* Theme: dark by default, light from the \ settings panel */
:root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #121211;
    --raised: #1b1b1a;
    --ink: #ecebe6;
    --ink-2: rgba(236, 235, 230, 0.58);
    --ink-3: rgba(236, 235, 230, 0.22);
    --line: rgba(236, 235, 230, 0.12);
    --hover: rgba(236, 235, 230, 0.045);
}

/* Accent: one color for arrows, the last story link, clock second hands,
   focus rings and selection. Set from the \ settings panel.
   Swiss / Braun palette: signal red, poster orange, equals-key yellow, power-light green, ultramarine.
   Each has a light-theme value (deep enough to read on paper) and a dark-theme value
   (lifted so it reads on near-black without glowing). */
:root {
  --acc-red: #d4291f;          /* Swiss signal red */
  --acc-yellow: #c99a06;       /* Braun ET66 equals key, deepened to hold up on paper */
  --acc-orange: #dc6408;      /* Swiss poster orange (Pantone 021 family), deepened to hold up on paper */
  --acc-green: #2e7a3e;        /* Braun power light */
  --acc-ultramarine: #1f3fa8;
}
:root[data-theme="dark"] {
  --acc-red: #ef4b40;
  --acc-yellow: #f3cd3a;
  --acc-orange: #ff8a2a;
  --acc-green: #5cbd6e;
  --acc-ultramarine: #7a93f5;
}
:root[data-accent="red"]         { --signal: var(--acc-red);         --on-signal: #ffffff; }
:root[data-accent="yellow"]      { --signal: var(--acc-yellow);      --on-signal: #141413; }
:root[data-accent="orange"]      { --signal: var(--acc-orange);      --on-signal: #ffffff; }
:root[data-accent="green"]       { --signal: var(--acc-green);       --on-signal: #ffffff; }
:root[data-accent="ultramarine"] { --signal: var(--acc-ultramarine); --on-signal: #ffffff; }
:root[data-theme="dark"]:not([data-accent="none"]) { --on-signal: #121211; }   /* dark theme: the lifted colors take dark text */
:root[data-accent="none"]   { --signal: var(--ink); --on-signal: var(--paper); }

/* Typeface: set from the \ settings panel. Every face gets its own tuning (Typography Checklist
   rules 14-16, 56-57, 60, 82, 92), worked out from its measured x-height and width:
   --body     body size, so every face shows about the same 8.4px x-height (16px minimum)
   --body-lh  body line height: taller x-heights and serif text get more
   --read-lh  line height for the 21px case-study paragraphs
   --tk, --dk scale for the 21px titles and the 48px display type, so big type looks the same size
   --display-* weight, line height and tracking for the story statements and page titles
   --title-ls tracking for 21px titles (half the display tracking); --name-ls for "Brett Calzada"
   Pairings: --font-display and --font-head carry the first face (big type and titles), --font the second. */
:root { --font-display: var(--font); --font-head: var(--font); --font-ja: var(--jp-sans); --font-display-ja: var(--jp-sans);
  /* Japanese uses the system's own fonts (nothing to download): Hiragino on Apple, Yu Gothic or
     Meiryo on Windows, Noto on Android. Latin letters still come from the chosen typeface. */
  --jp-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic", YuGothic, "Noto Sans CJK JP", "Noto Sans JP", Meiryo, sans-serif;
  --jp-serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif CJK JP", "Noto Serif JP", serif;
  --display-wt: 300; --name-wt: 400; --small: 13px;   /* name at regular: light-on-dark already reads heavier */
  --story-lh: 1.15;   /* story statements: 4-6 lines at headline size read like a lead paragraph (rule 94), so
                         they get more air than one- or two-line titles (rule 92, which --display-lh follows) */ }
:root[data-font="pair-domine-open-sans"], :root[data-font="pair-source"], :root[data-font="pair-roboto"] { --story-lh: 1.2; }   /* serif display */
:root { --font: "Hanken Grotesk";
  --body: 17px; --body-lh: 1.42; --read-lh: 1.5; --tk: 1.0; --title-ls: -0.013em;
  --dk: 1.0; --display-wt: 300; --display-lh: 1.08; --display-ls: -0.026em; --name-ls: -0.03em; }
:root[data-font="schibsted-grotesk"] { --font: "Schibsted Grotesk";
  --body: 16px; --body-lh: 1.47; --read-lh: 1.55; --tk: 0.94; --title-ls: -0.011em;
  --dk: 0.94; --display-wt: 400; --display-lh: 1.08; --display-ls: -0.022em; --name-ls: -0.026em; }
:root[data-font="geist"] { --font: "Geist";
  --body: 16px; --body-lh: 1.47; --read-lh: 1.55; --tk: 0.93; --title-ls: -0.015em;
  --dk: 0.93; --display-wt: 300; --display-lh: 1.08; --display-ls: -0.03em; --name-ls: -0.034em; }
:root[data-font="plex"] { --font: "Plex"; --name-wt: 400;   /* fixed weights only: 450 would round up to 500 */
 
  --body: 16px; --body-lh: 1.49; --read-lh: 1.57; --tk: 0.92; --title-ls: -0.01em;
  --dk: 0.91; --display-wt: 400; --display-lh: 1.1; --display-ls: -0.02em; --name-ls: -0.024em; }
:root[data-font="dm-sans"] { --font: "DM Sans";
  --body: 16px; --body-lh: 1.46; --read-lh: 1.54; --tk: 0.94; --title-ls: -0.004em;
  --dk: 0.94; --display-wt: 300; --display-lh: 1.08; --display-ls: -0.008em; --name-ls: -0.012em; }
:root[data-font="space-grotesk"] { --font: "Space Grotesk";
  --body: 17px; --body-lh: 1.41; --read-lh: 1.49; --tk: 1.01; --title-ls: -0.016em;
  --dk: 1.01; --display-wt: 300; --display-lh: 1.06; --display-ls: -0.032em; --name-ls: -0.036em; }
:root[data-font="work-sans"] { --font: "Work Sans";
  --body: 16.5px; --body-lh: 1.43; --read-lh: 1.51; --tk: 0.99; --title-ls: -0.014em;
  --dk: 0.99; --display-wt: 300; --display-lh: 1.08; --display-ls: -0.028em; --name-ls: -0.032em; }
:root[data-font="source-sans"] { --font: "Source Sans 3";
  --body: 17.5px; --body-lh: 1.4; --read-lh: 1.48; --tk: 1.03; --title-ls: -0.006em;
  --dk: 1.03; --display-wt: 300; --display-lh: 1.1; --display-ls: -0.012em; --name-ls: -0.016em; }
:root[data-font="karla"] { --font: "Karla";
  --body: 17.5px; --body-lh: 1.4; --read-lh: 1.48; --tk: 1.03; --title-ls: -0.013em;
  --dk: 1.03; --display-wt: 300; --display-lh: 1.08; --display-ls: -0.025em; --name-ls: -0.029em; }
:root[data-font="open-sans"] { --font: "Open Sans";
  --body: 16px; --body-lh: 1.48; --read-lh: 1.56; --tk: 0.92; --title-ls: -0.01em;
  --dk: 0.92; --display-wt: 300; --display-lh: 1.1; --display-ls: -0.02em; --name-ls: -0.024em; }
:root[data-font="pair-domine-open-sans"] { --font: "Open Sans"; --font-display: "Domine"; --font-head: "Domine"; --font-display-ja: var(--jp-serif);
  --body: 16px; --body-lh: 1.48; --read-lh: 1.56; --tk: 0.92; --title-ls: -0.004em;
  --dk: 0.91; --display-wt: 400; --display-lh: 1.15; --display-ls: -0.008em; --name-ls: -0.02em; }
:root[data-font="pair-source"] { --font: "Source Sans 3"; --font-display: "Source Serif 4"; --font-head: "Source Serif 4"; --font-display-ja: var(--jp-serif);
  --body: 17.5px; --body-lh: 1.4; --read-lh: 1.48; --tk: 1.04; --title-ls: -0.003em;
  --dk: 1.04; --display-wt: 300; --display-lh: 1.12; --display-ls: -0.006em; --name-ls: -0.02em; }
:root[data-font="pair-merriweather"] { --font: "Merriweather"; --font-display: "Merriweather Sans"; --font-head: "Merriweather Sans"; --font-ja: var(--jp-serif);
  --body: 16px; --body-lh: 1.53; --read-lh: 1.61; --tk: 0.92; --title-ls: -0.006em;
  --dk: 0.9; --display-wt: 300; --display-lh: 1.1; --display-ls: -0.012em; --name-ls: -0.02em; }
:root[data-font="pair-roboto"] { --font: "Roboto"; --font-display: "Roboto Slab"; --font-head: "Roboto Slab"; --font-display-ja: var(--jp-serif);
  --body: 16px; --body-lh: 1.47; --read-lh: 1.55; --tk: 0.93; --title-ls: -0.007em;
  --dk: 0.93; --display-wt: 300; --display-lh: 1.12; --display-ls: -0.015em; --name-ls: -0.02em; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font), var(--font-ja), ui-sans-serif, system-ui, sans-serif;
  font-size: var(--body);
  line-height: var(--lh-body);
  letter-spacing: 0;                                   /* body text is never letterspaced */
  font-kerning: normal;
  font-variant-ligatures: common-ligatures contextual;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; padding-top: var(--header-h); padding-bottom: 120px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; font: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video, svg { display: block; max-width: 100%; }
::selection { background: var(--signal); color: var(--on-signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--margin) * 2);
  margin-inline: auto;
  padding-inline: var(--margin);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}
.label {
  font-size: 14px;   /* one step up from --small so section labels hold their place */
  line-height: var(--lh-body);
  letter-spacing: 0.01em;                              /* small text opens up slightly */
  color: var(--ink-2);
}
.num { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;    /* at the very top: no layer at all, so nothing can differ from the page */
}
/* Frosted glass once the page scrolls (site.js sets .is-scrolled). Safari draws blurred layers through
   a slightly different color path, which showed as a faint band at the top of an unscrolled page;
   turning the glass on only after scrolling keeps the effect and removes the band at rest. */
.is-scrolled .site-header {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
}
/* Hairline fades in as soon as the page scrolls (no JavaScript) */
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
}
@supports (animation-timeline: scroll()) {
  .site-header::after {
    animation: hairline linear both;
    animation-timeline: scroll(root);
    animation-range: 0 48px;
  }
}
@supports not (animation-timeline: scroll()) {
  .site-header::after { opacity: 1; }
}
@keyframes hairline { to { opacity: 1; } }

.site-header .wrap {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: baseline;    /* name, Home hint and nav on one baseline */
  align-content: center;
}
.site-name { grid-column: 1 / span 6; grid-row: 1; justify-self: start; white-space: nowrap; }

/* Name hover: the same underline as the nav, so it reads as a link home.
   No effect on the home page itself. */
.site-name { position: relative; }
.site-name::after {
  content: "";
  position: absolute;
  inset: auto 0 -6px 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.site-name:not([aria-current]):hover::after { transform: scaleX(1); }
.site-name {
  font-size: 30px;
  font-weight: var(--name-wt);
  line-height: 32px;
  letter-spacing: var(--name-ls);
}

.site-nav { display: contents; }
.site-nav a { justify-self: start; }
.site-nav a { grid-row: 1; }
.site-nav a:nth-child(1) { grid-column: 11; }   /* nav on the last two columns */
.site-nav a:nth-child(2) { grid-column: 12; }
/* Case studies: "← All projects" replaces Projects, right-aligned to column 11
   so it sits one gutter from Contact */
.site-nav a.nav-back { grid-column: 10 / span 2; justify-self: end; gap: 6px; }
/* Arrow and words share one line of text, so the arrow centers on the lowercase letters
   (vertical-align: middle) and moves with the words when they snap to the baseline grid */
.site-nav a.nav-back { display: block; }
.nav-back .i { display: inline-block; vertical-align: middle; margin-right: 6px; width: 14px; height: 14px; transition: transform var(--t) var(--ease); }
.nav-back:hover .i { transform: translateX(-3px); }
.nav-back .short { display: none; }
/* Underline the words only, not the arrow */
.site-nav a.nav-back::after { display: none; }
.nav-back span { position: relative; }
.nav-back span::after {
  content: "";
  position: absolute;
  inset: auto 0 -6px 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.nav-back:hover span::after { transform: scaleX(1); }
/* Narrower screens: columns are too slim for one link each, so the nav
   starts on a column and the links sit one gutter apart */
@media (max-width: 1047px) {
  .site-nav { display: flex; align-items: baseline; gap: var(--gap); grid-column: 10 / -1; justify-self: start; }
  .site-nav a:nth-child(n) { grid-column: auto; }
  .site-nav:has(.nav-back) { grid-column: 9 / -1; }   /* longer link: start one column earlier */
}
.site-nav a {
  position: relative;
  display: flex;
  align-items: baseline;   /* the words set the baseline, so the nav shares the name's baseline */
  padding-block: 8px;
  font-size: var(--body);
  color: var(--ink);                                   /* clickable links never look grayed out */
  transition: color var(--t-fast) var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 2px 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }   /* current page: underlined */

/* ---------- Footer: clocks on the right; on case studies, the way back on the left ---------- */
.site-footer .wrap { padding-block: 24px 32px; }
.site-footer .grid { border-top: 1px solid var(--line); padding-top: 23px; }
.site-footer .grid { row-gap: 16px; align-items: center; }
.clock {
  grid-column: 9 / span 2;
  display: flex;
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  font-size: var(--small);
  letter-spacing: 0;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.clock + .clock { grid-column: 11 / span 2; }
.clock-city { display: flex; align-items: center; gap: 8px; }
.foot-back { grid-column: 1 / span 3; justify-self: start; white-space: nowrap; color: var(--ink-2); }
.foot-back:hover { color: var(--ink); }
/* Language toggle, bottom right on every page: EN / JA, both always visible so it reads as a
   choice. The current language is underlined; the other is a link like "All projects". */
.foot-lang { grid-column: 12; grid-row: 1; justify-self: end; display: flex; align-items: baseline; white-space: nowrap; }
.foot-lang .cur { position: relative; color: var(--ink); }
.foot-lang .cur::after { content: ""; position: absolute; inset: auto 0 -4px 0; height: 1px; background: currentColor; }
.foot-lang .sep { padding-inline: 0.35em; color: var(--ink-3); }
.foot-lang a { color: var(--ink-2); transition: color var(--t-fast) var(--ease); }
.foot-lang a:hover { color: var(--ink); }
/* Settings: Language toggle (on by default). With nothing left in it, the footer goes away. */
:root[data-langs="off"] .foot-lang { display: none; }
:root[data-langs="off"][data-clocks="off"] .site-footer:not(:has(.foot-back)) { display: none; }
/* Case studies end on the gallery: the footer sits right under it */
main.case { padding-bottom: 0; }

.clock-time { color: var(--ink); }
/* Dial: a faint disc in the text color (white at 12% on dark, black on light) with two
   hands of the same weight, like the macOS menu bar clock. Faint thin second hand. */
.dial { width: 26px; height: 26px; flex: none; overflow: visible; }
.dial .face { fill: color-mix(in srgb, var(--ink) 12%, transparent); stroke: none; }
/* Settings: Clock style "Ring" swaps the disc for a thin outline */
:root[data-dial="ring"] .dial .face { fill: none; stroke: var(--ink); stroke-width: 0.6; }
/* Settings: Footer clocks (off by default). With no clocks and no way back, no footer at all. */
:root[data-clocks="off"] .clock,
:root[data-clocks="off"] .setting[data-setting="dial"] { display: none; }
:root[data-grid="off"] .setting[data-setting="gridview"] { display: none; }   /* grid choices only while the grid is on */   /* no Clock style menu without clocks */
.dial line { stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; }
.dial .s { stroke-width: 0.5; opacity: 0.3; }

/* ---------- Shared pieces ---------- */
.page-head { padding-block: 96px 56px; }
.page-title {
  font-family: var(--font-display), var(--font-display-ja), var(--font), serif;
  font-size: var(--display);
  font-weight: var(--display-wt);                      /* big type, lighter weight where the face has one */
  line-height: round(nearest, calc(var(--display) * (var(--display-lh) + 0.02)), var(--bl));
  letter-spacing: var(--display-ls);
  text-wrap: balance;
}
.page-head .label { margin-top: 16px; }

/* Arrow link: arrow nudges on hover */
.arrow-link {
  display: inline-block;
  transition: color var(--t-fast) var(--ease);
}
.arrow-link .i { display: inline-block; vertical-align: middle; margin-right: 8px; transition: transform var(--t) var(--ease); }   /* centered on the lowercase letters, like the header link */
.arrow-link:hover .i { transform: translateX(3px); }
.arrow-link.back:hover .i { transform: translateX(-3px); }

/* ==========================================================================
   Home
   ========================================================================== */
.intro { padding-block: round(nearest, clamp(56px, 10vh, 120px), var(--bl)) 96px; }
.intro .grid { align-items: start; }

/* Statements sit directly on the page grid, one per row */
.story, .story-text { display: contents; }
.statement { grid-column: 1 / span 10; }
/* "2 of 4": a folio, like a page number. Right edge of the grid, on the same baseline as the
   link, from the first click on. Quieter than any label on the page. */
.folio {
  grid-column: 11 / -1;
  grid-row: auto;
  justify-self: end;
  align-self: baseline;
  margin-top: 48px;                                    /* same as the link, so the baselines meet */
  font-size: var(--small);
  letter-spacing: 0.01em;
  line-height: 1;                                      /* a small box inside the link's line, so baseline alignment adds no height */
  white-space: nowrap;
  color: color-mix(in srgb, var(--ink) 32%, transparent);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.folio.is-on { opacity: 1; }
.folio.is-entering { animation: rise var(--t-slow) var(--ease) both; }
.statement {
  font-family: var(--font-display), var(--font-display-ja), var(--font), serif;
  font-size: var(--display);
  font-weight: var(--display-wt);
  line-height: round(nearest, calc(var(--display) * var(--story-lh)), var(--bl));   /* lead paragraphs: a little more than headlines, on the 8px rhythm */
  letter-spacing: calc(var(--display-ls) * 0.6);       /* and less tightening: 60% of the headline tracking */
  text-wrap: pretty;
  transition: opacity var(--t-slow) var(--ease), filter var(--t-slow) var(--ease);
}
.statement + .statement { margin-top: round(nearest, 0.75em, var(--bl)); }
.statement[hidden] { display: none; }
/* Earlier statements step back: dimmed and softly out of focus */
.statement.is-past { opacity: 0.22; filter: blur(2.5px); }
.statement.is-entering { animation: rise var(--t-slow) var(--ease) both; }

/* Story control: an underlined text link, nothing else */
.cta { grid-column: 1 / span 10; margin-top: 48px; align-self: baseline; }
.more {
  font-size: var(--title);
  line-height: var(--lh-title);
  letter-spacing: var(--title-ls);
  text-align: left;
  transition: color var(--t-fast) var(--ease);
}
.more-label {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 10px;
  text-decoration-color: var(--ink-3);
  transition: text-decoration-color var(--t-fast) var(--ease);
}
.more:hover .more-label { text-decoration-color: currentColor; }
.cta.is-last .more { color: var(--signal); }
.more-label { display: inline-block; }
.more-label.is-entering { animation: rise var(--t) var(--ease) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Services + experience */
.facts .fact + .fact { padding-top: 112px; }   /* same space above Select experience as above Services */
.fact { padding-block: 24px 8px; align-items: baseline; }
.fact > .label { grid-column: 1 / span 2; }
.fact > .body { grid-column: 3 / span 10; }

.services { box-shadow: 0 -1px 0 var(--line); }   /* top rule drawn outside the box, so it doesn't push the rows off the 8px rhythm */
.service { position: relative; isolation: isolate; box-shadow: inset 0 -1px 0 var(--line); cursor: pointer; }   /* rule drawn inside the row, no extra height */
/* Whole row tints on hover, same as the Contact rows */
.service::before {
  content: "";
  position: absolute;
  inset: -1px -12px 0;
  z-index: -1;
  background: var(--hover);
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}
.service:hover::before { opacity: 1; }
@media (hover: none) { .service::before { display: none; } }   /* no sticky tint on touch screens */
.service-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding-block: 16px;        /* 16 + 32 + 16 = 64px rows: 8 steps */
  font-family: var(--font-head), var(--font-display-ja), var(--font), serif;
  font-size: var(--title);
  line-height: var(--lh-title);
  letter-spacing: var(--title-ls);
  text-align: left;
  transition: color var(--t-fast) var(--ease);
}
/* Plus becomes minus */
.service-name { display: block; }
.pm { position: relative; width: 12px; height: 12px; flex: none; }

/* Drawn on whole pixels (12px box, 2px lines at 5px) so it stays crisp on every screen.
   Opening rotates the vertical bar a quarter turn onto the horizontal one: plus becomes minus. */
.pm::before, .pm::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.pm::before { left: 0; right: 0; top: 5px; height: 2px; }
.pm::after { top: 0; bottom: 0; left: 5px; width: 2px; transition: transform var(--t) var(--ease); }
[aria-expanded="true"] .pm::after { transform: rotate(90deg); }
/* Height animates via grid rows: smooth in every browser */
.service-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-slow) var(--ease);
}
.service-panel > div { overflow: hidden; }
.service-panel p {
  max-width: 38em;
  padding-bottom: 24px;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.service.is-open .service-panel { grid-template-rows: 1fr; }
.service.is-open .service-panel p { opacity: 1; transform: none; transition-delay: 60ms; }

.clients {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(6, auto);
  /* each list is 2 grid columns wide: lists start on columns 3, 5 and 7 */
  grid-template-columns: repeat(3, calc((100% - 9 * var(--gap)) / 10 * 2 + var(--gap)));
  column-gap: var(--gap);
  padding-bottom: 24px;
}
.clients li { padding-block: 4px; white-space: nowrap; }   /* 24 + 8 = 32px rows */

/* ==========================================================================
   Projects
   ========================================================================== */
.ptable { padding-bottom: 24px; }
.prow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: baseline;
  padding-block: 15px 16px;   /* 1px rule + 15 above, 16 below: text lines stay on the 8px rhythm */
  border-top: 1px solid var(--line);
}
.prow.head {
  position: sticky;
  top: var(--header-h);
  z-index: 2;
  padding-block: 16px 7px;    /* 16 + 24px line + 7 + the 1px rule = 48px, labels on the rhythm */
  background: var(--paper);
  border-top: 0;
  border-bottom: 1px solid var(--line);
}
.prow.head + .prow { border-top: 0; padding-top: 16px; }   /* no rule of its own (the header row has one): 16px keeps it on the rhythm */
.prow .year { grid-column: 1 / span 2; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.prow .title { grid-column: 3 / span 4; font-family: var(--font-head), var(--font-display-ja), var(--font), serif; font-size: var(--title); line-height: var(--lh-title); letter-spacing: var(--title-ls); }
.prow .client { grid-column: 7 / span 2; }
.prow .role { grid-column: 9 / span 4; color: var(--ink-2); padding-right: 32px; }
.prow .role .d { white-space: nowrap; }   /* a discipline never breaks in the middle; lines break between them */
/* Desktop: every row is two lines tall, so a title or discipline list that wraps once doesn't make its row taller */
@media (min-width: 1280px) {
  .prow:not(.head) :is(.title, .role) { min-height: 2lh; }
}
.prow.head > * { font-size: var(--small); color: var(--ink-2); letter-spacing: 0.01em; line-height: var(--lh-body); }

/* Linked rows: the whole row is the link */
a.prow::before {
  content: "";
  position: absolute;
  inset: -1px calc(var(--margin) * -0.5);
  border-radius: 0;
  background: var(--hover);
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}
a.prow:hover::before { opacity: 1; }
a.prow .go {
  position: absolute;
  right: 0;
  top: calc(18px + var(--title) * 1.3 / 2);            /* centered on the first line of the row, not the whole row */
  margin-top: -8px;
  color: var(--signal);
  transition: transform var(--t) var(--ease);
}
a.prow:hover .go { transform: translateX(3px); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { align-items: start; }
.contact-list { --n: 5; grid-column: 1 / span 5; box-shadow: 0 -1px 0 var(--line); }   /* rule outside the box: rows stay on the rhythm */
.contact-list li { border-bottom: 1px solid var(--line); }
.crow {
  position: relative;
  display: grid;
  /* label takes 2 of the list's grid columns, value starts on the next */
  grid-template-columns: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n) * 2 + var(--gap)) 1fr auto;
  align-items: baseline;
  column-gap: var(--gap);
  padding-block: 16px 15px;   /* + the 1px rule: 64px rows */
}
.crow .value { font-size: var(--title); line-height: var(--lh-title); letter-spacing: var(--title-ls); overflow-wrap: anywhere; }
.crow .i { align-self: center; color: var(--ink-2); transition: transform var(--t) var(--ease), color var(--t-fast) var(--ease); }
a.crow::before {
  content: "";
  position: absolute;
  inset: -1px -12px;
  border-radius: 0;
  background: var(--hover);
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}
a.crow:hover::before { opacity: 1; }
a.crow:hover .i { color: var(--signal); transform: translateX(3px); }
a.crow[target]:hover .i { transform: translate(2px, -2px); }
/* Email and phone rows: no arrow (they open mail or a call, not a page). On a computer a click copies. */
.crow .label.is-copied { color: var(--ink); animation: rise var(--t) var(--ease) both; }   /* "Copied" replaces the label briefly */

/* The circle centers on the middle of the contact rows: its holder has no height
   and sits at the rows' vertical center, so the circle extends equally above and below */
.contact-photo {
  grid-column: 7 / span 6;
  align-self: center;
  height: 0;
  display: flex;
  align-items: center;
}
.contact-media {
  flex: none;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: var(--line);
}

/* ==========================================================================
   Case study (TDA)
   ========================================================================== */
.case-head { padding-block: 96px 56px; }
.case-head .page-title { max-width: 18em; }

.case-facts { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 15px; }
.case-facts div:nth-child(1) { grid-column: 1 / span 2; }
.case-facts div:nth-child(2) { grid-column: 3 / span 4; }   /* lines up with the body copy below */
.case-facts div:nth-child(3) { grid-column: 7 / span 2; }
.case-facts dt { margin-bottom: 0; }

.case-copy { padding-block: 39px 40px; border-top: 1px solid var(--line); align-items: baseline; }   /* label shares the first line's baseline */
.case-copy > .label { grid-column: 1 / span 2; }
.case-copy > .body { grid-column: 3 / span 7; }
.case-copy p { font-size: var(--title); line-height: var(--lh-title); letter-spacing: 0; }   /* 21px lead text on 32px lines (the 8px step nearest its tuned 1.45) */
:root[data-theme="dark"] .case-copy p { font-weight: 350; }   /* light on dark reads heavier: one step lighter keeps it even with the 300 headline */
.case-copy p + p { margin-top: 24px; }   /* about one text size (rule 28), on the 8px rhythm */

/* Full-bleed images: edge to edge at every width, aspect ratio fixed by the image.
   The second one sits directly on the dark gallery band below. */
.case-figure { margin: 40px 0 0; }
.case-figure img { width: 100%; height: auto; }
/* The white space under the device image is part of the image's white, as on the original site */
.case-figure + .case-figure { margin-top: 0; }
/* The two case images share one height: 56% of the screen width (25:14), at every size.
   Device image on a white field: the file is 2600 x 1193 with 74px of white above the
   devices and 104px below, so the top padding gets 30/2600 more: white above the devices
   always equals white below. Padding in % is a share of the width, so it scales with it. */
.case-figure:first-of-type { padding: 5.637% 0 4.483%; background: #fff; }
/* Book photo: the gray above and below is cropped to the same 25:14 height. The book sits
   slightly below the middle of the file, so the crop is centered on it (52% down). */
.case-figure:nth-of-type(2) img { aspect-ratio: 25 / 14; object-fit: cover; object-position: 50% 52%; }

.gallery {
  margin-top: 0;
  padding-block: var(--margin) 96px;   /* top matches the side margin */
}
.gallery .wrap { max-width: none; }   /* spreads use the full screen width, page margin around them */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.gallery img { width: 100%; height: auto; border-radius: 2px; }


/* ==========================================================================
   Motion
   ========================================================================== */

/* Page enter: content settles in quickly; header stays put */
main > * { animation: rise var(--t-slow) var(--ease) both; }
main > :nth-child(2) { animation-delay: 50ms; }
main > :nth-child(3) { animation-delay: 100ms; }
main > :nth-child(n+4) { animation-delay: 140ms; }

/* Page leave: quick fade before the next page loads */
html.is-leaving main, html.is-leaving .site-footer {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

/* Scroll reveal (only when JavaScript is running) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: calc(var(--i, 0) * 30ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Settings panel (press \ to open, Esc or \ to close)
   ========================================================================== */
.settings {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-height: calc(100vh - 40px);                     /* long Typeface list scrolls inside the panel */
  overflow-y: auto;
  z-index: 200;
  width: 300px;
  padding: 16px;
  background: var(--raised);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  font-family: "Plex", ui-sans-serif, system-ui, sans-serif;
  font-size: var(--small);
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t) var(--ease);
}
.settings.is-open { opacity: 1; transform: none; pointer-events: auto; }
.settings { line-height: 1.4; }   /* the panel is UI, not page text: compact leading */
.settings-head { display: flex; justify-content: space-between; margin-bottom: 16px; color: var(--ink-2); }
.settings-head kbd { font: inherit; padding: 0 5px; border: 1px solid var(--line); }
.setting + .setting { margin-top: 14px; }
.setting > p { margin-bottom: 6px; color: var(--ink-2); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line); }
.seg.stack { grid-auto-flow: row; max-height: 238px; overflow-y: auto; overscroll-behavior: contain; }   /* about 7 typefaces visible; the list scrolls */
.seg button {
  padding: 7px 10px;
  text-align: left;
  color: var(--ink-2);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.seg button + button { border-left: 1px solid var(--line); }
.seg.stack button + button { border-left: 0; border-top: 1px solid var(--line); }
.seg button:hover { color: var(--ink); background: var(--hover); }
.seg button[aria-pressed="true"] { color: var(--paper); background: var(--ink); }
.seg.stack button { display: flex; justify-content: space-between; font-size: 14px; }
.seg.stack button small { font-size: 11px; opacity: 0.6; }
.setting > p [data-current] { color: var(--ink); margin-left: 6px; }
.seg.swatches button { display: grid; place-items: center; padding: 9px 0; }
.sw { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
.seg.swatches button[aria-pressed="true"] { background: var(--hover); }
.seg.swatches button[aria-pressed="true"] .sw { box-shadow: 0 0 0 2px var(--raised), 0 0 0 3px var(--ink); }
.settings-reset {
  width: 100%;
  margin-top: 18px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  text-align: left;
  color: var(--ink-2);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.settings-reset:hover { color: var(--ink); background: var(--hover); }
.settings-reset.is-done { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.settings-reset .i { width: 14px; height: 14px; animation: rise var(--t) var(--ease) both; }
.settings-save, .settings-pass { margin-top: 8px; }
.settings-link { display: flex; align-items: center; justify-content: space-between; color: var(--ink); }
.settings-link .i { width: 14px; height: 14px; }
.setting-switch { display: flex; align-items: center; justify-content: space-between; }
.setting-switch > p { margin: 0; }
.switch { position: relative; width: 34px; height: 20px; border-radius: 10px; background: var(--line); transition: background var(--t-fast) var(--ease); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-2); transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"]::after { transform: translateX(14px); background: var(--paper); }
.settings-pass { display: block; background: transparent; color: var(--ink); font: inherit; outline: none; border-color: var(--ink-2); }
.settings-pass::placeholder { color: var(--ink-2); }

/* ---------- Layout grid overlay (toggle in \ settings) ---------- */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  display: none;
}
:root[data-grid="on"] .grid-overlay { display: block; }
:root[data-gridview="baseline"] .grid-overlay { display: none; }   /* baseline only: no columns */
.grid-overlay .grid { height: 100%; }
/* Baseline grid: a line every 8px down the whole page (scrolls with it), shifted so body text sits on the lines.
   Pages with their own rhythm (the CV, 11px) set --bl-show. */
body { position: relative; }
.baseline-overlay {
  position: absolute;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  display: none;
  background-image: repeating-linear-gradient(to bottom,
    transparent 0 calc(var(--bl-show, var(--bl)) - 1px),
    color-mix(in srgb, var(--signal) 26%, transparent) calc(var(--bl-show, var(--bl)) - 1px) var(--bl-show, var(--bl)));
  background-position: 0 0;   /* lines at every 8px step from the top of the page; site.js snaps text onto them */
}
:root[data-grid="on"]:is([data-gridview="baseline"], [data-gridview="both"]) .baseline-overlay { display: block; }
.grid-overlay span {
  background: color-mix(in srgb, var(--signal) 7%, transparent);
  border-inline: 1px solid color-mix(in srgb, var(--signal) 28%, transparent);
}

/* ==========================================================================
   Tablet  (769–1279px)
   ========================================================================== */
@media (max-width: 1279px) {
  :root { --margin: 32px; }


  .fact > .label { grid-column: 1 / -1; padding: 0 0 16px; }
  .fact > .body { grid-column: 1 / -1; }
  .clients { grid-template-columns: repeat(3, calc((100% - 11 * var(--gap)) / 12 * 3 + 2 * var(--gap))); }   /* lists on columns 1, 4, 7 */

  .prow .year { grid-column: 1 / span 2; }
  .prow .title { grid-column: 3 / span 6; }
  .prow .client { grid-column: 3 / span 6; grid-row: 2; color: var(--ink-2); margin-top: 0; }
  .prow .role { grid-column: 9 / span 4; grid-row: 1 / span 2; }
  .prow.head .client { display: none; }

  .contact-list { --n: 6; grid-column: 1 / span 6; }
  .contact-photo { grid-column: 8 / span 5; }

  .case-copy > .label { grid-column: 1 / -1; padding: 0 0 16px; }
  .case-copy > .body { grid-column: 1 / span 10; }

}

/* ==========================================================================
   Mobile  (≤768px)
   ========================================================================== */
@media (max-width: 768px) {
  :root { --margin: 20px; --gap: 16px; --header-h: 64px; }

  .site-name { font-size: 22px; }   /* phones: a clear step below the 28px statement */
  .site-nav, .site-nav:has(.nav-back) { grid-column: 4 / -1; grid-row: 1; justify-self: end; }   /* phones: nav ends on the right margin, same row as the name */
  body { font-size: calc(var(--body) - 1px); }          /* phones: body one pixel smaller (rule 14) */
  .site-nav a { font-size: calc(var(--body) - 1px); }
  .site-nav, .site-nav:has(.nav-back) { gap: 28px; }   /* phones: links wider apart than the 16px gutter, so they read as separate */

  .intro { padding-block: 40px 64px; }
  .facts .fact + .fact { padding-top: 80px; }   /* phones: matches the smaller space above Services */
  .statement { grid-column: 1 / -1; }
  .cta { grid-column: 1 / span 9; margin-top: 40px; }
  .folio { grid-column: 10 / -1; margin-top: 40px; }

  .clients { grid-template-rows: repeat(9, auto); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Long names (The City of New Orleans) may wrap instead of running off the screen; tighter lines
     inside a name, more space between names, so a wrapped name still reads as one (checklist rule 51) */
  .clients li { white-space: normal; padding-block: 4px; }

  .page-head { padding-block: 48px 32px; }

  .prow.head { display: none; }
  .prow { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding-block: 16px; }
  .prow.head + .prow { border-top: 1px solid var(--line); }
  .prow .title { grid-column: 1; grid-row: 1; }
  .prow .year { grid-column: 2; grid-row: 1; white-space: nowrap; font-size: var(--small); }
  .prow .client { grid-column: 1 / -1; grid-row: 2; margin-top: 0; color: var(--ink); }   /* client full strength, discipline gray, as on desktop */
  .prow .role { grid-column: 1 / -1; grid-row: 3; padding: 0; }
  /* Phones: arrow sits bottom right so the years stay aligned with the other rows */
  a.prow .go { top: auto; bottom: 18px; margin-top: 0; }
  a.prow .role { padding-right: 28px; }
  a.prow::before { inset: -1px -10px; }

  .contact { row-gap: 48px; }
  .contact-list, .contact-photo { grid-column: 1 / -1; }
  .contact-photo { height: auto; display: block; }
  .crow { grid-template-columns: 1fr auto; gap: 0 16px; }
  .crow .label { grid-column: 1 / -1; }
  .crow .i { grid-column: 2; grid-row: 2; }

  .case-head { padding-top: 48px; }
  .nav-back .long { display: none; }
  .nav-back .short { display: inline; }
  .case-facts div:nth-child(n) { grid-column: 1 / -1; padding-block: 8px; }
  .case-copy > .body { grid-column: 1 / -1; }
  .gallery { padding-block: var(--margin) 56px; }
  .gallery-grid { grid-template-columns: 1fr; }   /* phones: book spreads in one column */
  /* Phones: no clocks. The footer only appears where it has something else (case studies) */
  .clock { display: none; }
  :root[data-langs="off"] .site-footer:not(:has(.foot-back)) { display: none; }   /* phones have no clocks */
  .case-figure { margin-top: 24px; }
  .case-figure + .case-figure { margin-top: 0; }
}

/* Narrow tablets: keep the email on one line */
@media (min-width: 769px) and (max-width: 899px) {
  .contact-list { --n: 7; grid-column: 1 / span 7; }
  .contact-photo { grid-column: 9 / span 4; }
}
/* Narrow tablets: Client needs a third column so "TD Ameritrade" fits */
@media (min-width: 769px) and (max-width: 899px) {
  .case-facts div:nth-child(1) { grid-column: 1 / span 3; }
  .case-facts div:nth-child(2) { grid-column: 4 / span 5; }
  .case-facts div:nth-child(3) { grid-column: 9 / span 4; }
}
/* Small tablets in portrait: photo centered on columns 3 to 10 */
@media (min-width: 561px) and (max-width: 768px) {
  .contact-photo { grid-column: 3 / span 8; }
}
/* Phones: clocks a touch smaller so both fit on one row */
@media (max-width: 560px) {
  .clock { font-size: 11px; gap: 6px; }
  .clock-city { gap: 6px; }
  .dial { width: 20px; height: 20px; }
}

/* ---------- Reduced motion: everything appears instantly ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* Narrow phones: the nav needs tighter spacing (and no back arrow) to clear the name */
@media (max-width: 389px) {
  .site-nav, .site-nav:has(.nav-back) { gap: 24px; }
  .site-nav a.nav-back .i { display: none; }       /* no room for the arrow; the word says it */
}
@media (max-width: 359px) {
  .site-name { font-size: 20px; }
  .site-nav, .site-nav:has(.nav-back) { gap: 20px; }
}

/* ==========================================================================
   Japanese (ja/ pages). Latin letters stay in the chosen typeface; Japanese
   characters fall through to the system's Japanese gothic (or mincho next to a serif).
   Japanese is set looser and taller than English: kana and kanji fill the whole
   em, so lines need more air (1.8), and the text gets a little tracking.
   ========================================================================== */
:root:lang(ja) {
  --body: 16px; --body-lh: 1.85; --read-lh: 1.95;
  --tk: 0.95;                 /* kanji look larger than Latin at the same size */
  --dk: 0.82;
  --display-lh: 1.45;
  --story-lh: 1.45;
  --display-ls: 0.02em;
  --title-ls: 0.02em;
}
:root:lang(ja) body { letter-spacing: 0.03em; }
:root:lang(ja) .statement { letter-spacing: var(--display-ls); }   /* Japanese keeps its own +0.02em */
:root:lang(ja) .label { letter-spacing: 0.06em; }
:root:lang(ja) :is(.statement, .page-title, .service-name, .prow .title, .more) {
  font-feature-settings: "palt";          /* proportional kana for display sizes */
  word-break: auto-phrase;                /* break between phrases, not mid-word */
  line-break: strict;
}
:root:lang(ja) :is(p, li, dd) { line-break: strict; text-autospace: normal; hanging-punctuation: allow-end; }
:root:lang(ja) .site-name, :root:lang(ja) [lang="en"] { letter-spacing: var(--name-ls); }
:root:lang(ja) [lang="en"]:not(.site-name) { letter-spacing: 0; }
:root:lang(ja) .clients li { letter-spacing: 0; }

/* Japanese font matching. Each typeface gets its own Japanese partner from the system fonts
   (nothing to download), chosen by style and scaled to sit right next to its Latin letters:
   - Style: geometric and grotesque faces with Hiragino Sans (constructed), humanist faces with
     Toppan Bunkyu Gothic on Apple / Yu Gothic on Windows (softer, more written), serifs with
     mincho (Hiragino Mincho, Yu Mincho; heavier W6 next to Domine's sturdy display weight).
   - Size: kanji are scaled to about 1.18 times the typeface's capital height (never below 92%),
     so a Latin word inside a Japanese sentence doesn't look shrunken or oversized.
   - Weight, checked on a Mac: Hiragino W4 with 400 text, W3 with 300 display; on Windows
     Yu Gothic Medium and Regular.
   Only Japanese characters use these faces; if a named font is missing, the system stack takes over. */
@font-face { font-family: "JP hanken-grotesk text"; font-weight: 100 349; src: local("HiraginoSans-W3"), local("Hiragino Sans W3"), local("YuGothic-Regular"), local("Yu Gothic Regular"); size-adjust: 93.5%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP hanken-grotesk text"; font-weight: 350 900; src: local("HiraginoSans-W4"), local("Hiragino Sans W4"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("Meiryo"); size-adjust: 93.5%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP hanken-grotesk display"; font-weight: 100 349; src: local("HiraginoSans-W3"), local("Hiragino Sans W3"), local("YuGothic-Regular"), local("Yu Gothic Regular"); size-adjust: 93.5%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP hanken-grotesk display"; font-weight: 350 900; src: local("HiraginoSans-W4"), local("Hiragino Sans W4"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("Meiryo"); size-adjust: 93.5%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP schibsted-grotesk text"; font-weight: 100 349; src: local("HiraginoSans-W3"), local("Hiragino Sans W3"), local("YuGothic-Regular"), local("Yu Gothic Regular"); size-adjust: 94.3%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP schibsted-grotesk text"; font-weight: 350 900; src: local("HiraginoSans-W4"), local("Hiragino Sans W4"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("Meiryo"); size-adjust: 94.3%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP schibsted-grotesk display"; font-weight: 100 349; src: local("HiraginoSans-W3"), local("Hiragino Sans W3"), local("YuGothic-Regular"), local("Yu Gothic Regular"); size-adjust: 94.3%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP schibsted-grotesk display"; font-weight: 350 900; src: local("HiraginoSans-W4"), local("Hiragino Sans W4"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("Meiryo"); size-adjust: 94.3%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP geist text"; font-weight: 100 349; src: local("HiraginoSans-W3"), local("Hiragino Sans W3"), local("YuGothic-Regular"), local("Yu Gothic Regular"); size-adjust: 95.2%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP geist text"; font-weight: 350 900; src: local("HiraginoSans-W4"), local("Hiragino Sans W4"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("Meiryo"); size-adjust: 95.2%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP geist display"; font-weight: 100 349; src: local("HiraginoSans-W3"), local("Hiragino Sans W3"), local("YuGothic-Regular"), local("Yu Gothic Regular"); size-adjust: 95.2%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP geist display"; font-weight: 350 900; src: local("HiraginoSans-W4"), local("Hiragino Sans W4"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("Meiryo"); size-adjust: 95.2%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP plex text"; font-weight: 100 349; src: local("HiraginoSans-W3"), local("Hiragino Sans W3"), local("YuGothic-Regular"), local("Yu Gothic Regular"); size-adjust: 98.3%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP plex text"; font-weight: 350 900; src: local("HiraginoSans-W4"), local("Hiragino Sans W4"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("Meiryo"); size-adjust: 98.3%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP plex display"; font-weight: 100 349; src: local("HiraginoSans-W3"), local("Hiragino Sans W3"), local("YuGothic-Regular"), local("Yu Gothic Regular"); size-adjust: 98.3%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP plex display"; font-weight: 350 900; src: local("HiraginoSans-W4"), local("Hiragino Sans W4"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("Meiryo"); size-adjust: 98.3%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP dm-sans text"; font-weight: 100 349; src: local("HiraginoSans-W3"), local("Hiragino Sans W3"), local("YuGothic-Regular"), local("Yu Gothic Regular"); size-adjust: 93.9%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP dm-sans text"; font-weight: 350 900; src: local("HiraginoSans-W4"), local("Hiragino Sans W4"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("Meiryo"); size-adjust: 93.9%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP dm-sans display"; font-weight: 100 349; src: local("HiraginoSans-W3"), local("Hiragino Sans W3"), local("YuGothic-Regular"), local("Yu Gothic Regular"); size-adjust: 93.9%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP dm-sans display"; font-weight: 350 900; src: local("HiraginoSans-W4"), local("Hiragino Sans W4"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("Meiryo"); size-adjust: 93.9%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP space-grotesk text"; font-weight: 100 349; src: local("HiraginoSans-W3"), local("Hiragino Sans W3"), local("YuGothic-Regular"), local("Yu Gothic Regular"); size-adjust: 93.9%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP space-grotesk text"; font-weight: 350 900; src: local("HiraginoSans-W4"), local("Hiragino Sans W4"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("Meiryo"); size-adjust: 93.9%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP space-grotesk display"; font-weight: 100 349; src: local("HiraginoSans-W3"), local("Hiragino Sans W3"), local("YuGothic-Regular"), local("Yu Gothic Regular"); size-adjust: 93.9%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP space-grotesk display"; font-weight: 350 900; src: local("HiraginoSans-W4"), local("Hiragino Sans W4"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("Meiryo"); size-adjust: 93.9%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP work-sans text"; font-weight: 100 349; src: local("HiraginoSans-W3"), local("Hiragino Sans W3"), local("YuGothic-Regular"), local("Yu Gothic Regular"); size-adjust: 92.0%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP work-sans text"; font-weight: 350 900; src: local("HiraginoSans-W4"), local("Hiragino Sans W4"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("Meiryo"); size-adjust: 92.0%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP work-sans display"; font-weight: 100 349; src: local("HiraginoSans-W3"), local("Hiragino Sans W3"), local("YuGothic-Regular"), local("Yu Gothic Regular"); size-adjust: 92.0%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP work-sans display"; font-weight: 350 900; src: local("HiraginoSans-W4"), local("Hiragino Sans W4"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("Meiryo"); size-adjust: 92.0%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP source-sans text"; font-weight: 100 349; src: local("ToppanBunkyuGothicPr6N-Regular"), local("YuGothic-Regular"), local("Yu Gothic Regular"), local("HiraginoSans-W3"); size-adjust: 92.0%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP source-sans text"; font-weight: 350 900; src: local("ToppanBunkyuGothicPr6N-Regular"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("HiraginoSans-W4"), local("Meiryo"); size-adjust: 92.0%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP source-sans display"; font-weight: 100 349; src: local("ToppanBunkyuGothicPr6N-Regular"), local("YuGothic-Regular"), local("Yu Gothic Regular"), local("HiraginoSans-W3"); size-adjust: 92.0%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP source-sans display"; font-weight: 350 900; src: local("ToppanBunkyuGothicPr6N-Regular"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("HiraginoSans-W4"), local("Meiryo"); size-adjust: 92.0%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP karla text"; font-weight: 100 349; src: local("ToppanBunkyuGothicPr6N-Regular"), local("YuGothic-Regular"), local("Yu Gothic Regular"), local("HiraginoSans-W3"); size-adjust: 92.0%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP karla text"; font-weight: 350 900; src: local("ToppanBunkyuGothicPr6N-Regular"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("HiraginoSans-W4"), local("Meiryo"); size-adjust: 92.0%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP karla display"; font-weight: 100 349; src: local("ToppanBunkyuGothicPr6N-Regular"), local("YuGothic-Regular"), local("Yu Gothic Regular"), local("HiraginoSans-W3"); size-adjust: 92.0%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP karla display"; font-weight: 350 900; src: local("ToppanBunkyuGothicPr6N-Regular"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("HiraginoSans-W4"), local("Meiryo"); size-adjust: 92.0%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP open-sans text"; font-weight: 100 349; src: local("ToppanBunkyuGothicPr6N-Regular"), local("YuGothic-Regular"), local("Yu Gothic Regular"), local("HiraginoSans-W3"); size-adjust: 95.7%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP open-sans text"; font-weight: 350 900; src: local("ToppanBunkyuGothicPr6N-Regular"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("HiraginoSans-W4"), local("Meiryo"); size-adjust: 95.7%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP open-sans display"; font-weight: 100 349; src: local("ToppanBunkyuGothicPr6N-Regular"), local("YuGothic-Regular"), local("Yu Gothic Regular"), local("HiraginoSans-W3"); size-adjust: 95.7%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP open-sans display"; font-weight: 350 900; src: local("ToppanBunkyuGothicPr6N-Regular"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("HiraginoSans-W4"), local("Meiryo"); size-adjust: 95.7%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP pair-domine-open-sans text"; font-weight: 100 349; src: local("ToppanBunkyuGothicPr6N-Regular"), local("YuGothic-Regular"), local("Yu Gothic Regular"), local("HiraginoSans-W3"); size-adjust: 95.7%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP pair-domine-open-sans text"; font-weight: 350 900; src: local("ToppanBunkyuGothicPr6N-Regular"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("HiraginoSans-W4"), local("Meiryo"); size-adjust: 95.7%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP pair-domine-open-sans display"; font-weight: 100 349; src: local("HiraMinProN-W3"), local("Hiragino Mincho ProN W3"), local("YuMincho-Regular"), local("Yu Mincho Regular"); size-adjust: 96.5%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP pair-domine-open-sans display"; font-weight: 350 900; src: local("HiraMinProN-W6"), local("Hiragino Mincho ProN W6"), local("YuMincho-Demibold"), local("Yu Mincho Demibold"); size-adjust: 96.5%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP pair-source text"; font-weight: 100 349; src: local("ToppanBunkyuGothicPr6N-Regular"), local("YuGothic-Regular"), local("Yu Gothic Regular"), local("HiraginoSans-W3"); size-adjust: 92.0%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP pair-source text"; font-weight: 350 900; src: local("ToppanBunkyuGothicPr6N-Regular"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("HiraginoSans-W4"), local("Meiryo"); size-adjust: 92.0%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP pair-source display"; font-weight: 100 349; src: local("HiraMinProN-W3"), local("Hiragino Mincho ProN W3"), local("YuMincho-Regular"), local("Yu Mincho Regular"); size-adjust: 92.0%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP pair-source display"; font-weight: 350 900; src: local("HiraMinProN-W3"), local("Hiragino Mincho ProN W3"), local("YuMincho-Medium"), local("Yu Mincho Medium"); size-adjust: 92.0%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP pair-merriweather text"; font-weight: 100 349; src: local("HiraMinProN-W3"), local("Hiragino Mincho ProN W3"), local("YuMincho-Regular"), local("Yu Mincho Regular"); size-adjust: 99.6%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP pair-merriweather text"; font-weight: 350 900; src: local("HiraMinProN-W3"), local("Hiragino Mincho ProN W3"), local("YuMincho-Medium"), local("Yu Mincho Medium"); size-adjust: 99.6%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP pair-merriweather display"; font-weight: 100 349; src: local("ToppanBunkyuGothicPr6N-Regular"), local("YuGothic-Regular"), local("Yu Gothic Regular"), local("HiraginoSans-W3"); size-adjust: 99.6%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP pair-merriweather display"; font-weight: 350 900; src: local("ToppanBunkyuGothicPr6N-Regular"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("HiraginoSans-W4"), local("Meiryo"); size-adjust: 99.6%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP pair-roboto text"; font-weight: 100 349; src: local("HiraginoSans-W3"), local("Hiragino Sans W3"), local("YuGothic-Regular"), local("Yu Gothic Regular"); size-adjust: 95.3%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP pair-roboto text"; font-weight: 350 900; src: local("HiraginoSans-W4"), local("Hiragino Sans W4"), local("YuGothic-Medium"), local("Yu Gothic Medium"), local("Meiryo"); size-adjust: 95.3%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP pair-roboto display"; font-weight: 100 349; src: local("HiraMinProN-W3"), local("Hiragino Mincho ProN W3"), local("YuMincho-Regular"), local("Yu Mincho Regular"); size-adjust: 95.3%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
@font-face { font-family: "JP pair-roboto display"; font-weight: 350 900; src: local("HiraMinProN-W3"), local("Hiragino Mincho ProN W3"), local("YuMincho-Medium"), local("Yu Mincho Medium"); size-adjust: 95.3%; unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF; }
:root:lang(ja) { --font-ja: "JP hanken-grotesk text", var(--jp-sans); --font-display-ja: "JP hanken-grotesk display", var(--jp-sans); }
:root:lang(ja)[data-font="schibsted-grotesk"] { --font-ja: "JP schibsted-grotesk text", var(--jp-sans); --font-display-ja: "JP schibsted-grotesk display", var(--jp-sans); }
:root:lang(ja)[data-font="geist"] { --font-ja: "JP geist text", var(--jp-sans); --font-display-ja: "JP geist display", var(--jp-sans); }
:root:lang(ja)[data-font="plex"] { --font-ja: "JP plex text", var(--jp-sans); --font-display-ja: "JP plex display", var(--jp-sans); }
:root:lang(ja)[data-font="dm-sans"] { --font-ja: "JP dm-sans text", var(--jp-sans); --font-display-ja: "JP dm-sans display", var(--jp-sans); }
:root:lang(ja)[data-font="space-grotesk"] { --font-ja: "JP space-grotesk text", var(--jp-sans); --font-display-ja: "JP space-grotesk display", var(--jp-sans); }
:root:lang(ja)[data-font="work-sans"] { --font-ja: "JP work-sans text", var(--jp-sans); --font-display-ja: "JP work-sans display", var(--jp-sans); }
:root:lang(ja)[data-font="source-sans"] { --font-ja: "JP source-sans text", var(--jp-sans); --font-display-ja: "JP source-sans display", var(--jp-sans); }
:root:lang(ja)[data-font="karla"] { --font-ja: "JP karla text", var(--jp-sans); --font-display-ja: "JP karla display", var(--jp-sans); }
:root:lang(ja)[data-font="open-sans"] { --font-ja: "JP open-sans text", var(--jp-sans); --font-display-ja: "JP open-sans display", var(--jp-sans); }
:root:lang(ja)[data-font="pair-domine-open-sans"] { --font-ja: "JP pair-domine-open-sans text", var(--jp-sans); --font-display-ja: "JP pair-domine-open-sans display", var(--jp-serif); }
:root:lang(ja)[data-font="pair-source"] { --font-ja: "JP pair-source text", var(--jp-sans); --font-display-ja: "JP pair-source display", var(--jp-serif); }
:root:lang(ja)[data-font="pair-merriweather"] { --font-ja: "JP pair-merriweather text", var(--jp-serif); --font-display-ja: "JP pair-merriweather display", var(--jp-sans); }
:root:lang(ja)[data-font="pair-roboto"] { --font-ja: "JP pair-roboto text", var(--jp-sans); --font-display-ja: "JP pair-roboto display", var(--jp-serif); }

/* Contact video can be replayed once it has finished */
.contact-media.is-ended { cursor: pointer; }

/* Japanese nav: お問い合わせ is longer than "Contact", so links never wrap
   and each starts one column earlier */
.site-nav a { white-space: nowrap; }
@media (min-width: 1048px) {
  :root:lang(ja) .site-nav a:nth-child(1):not(.nav-back) { grid-column: 10; }
  :root:lang(ja) .site-nav a:nth-child(2) { grid-column: 11 / span 2; }
  :root:lang(ja) .site-nav a.nav-back { grid-column: 9 / span 2; }
}
@media (min-width: 769px) and (max-width: 1047px) {
  :root:lang(ja) .site-nav { grid-column: 9 / -1; }
  :root:lang(ja) .site-nav:has(.nav-back) { grid-column: 8 / -1; }
}

/* Baseline snap is a screen refinement only: print lays out text on its own */
@media print { * { translate: none !important; } }
