/* IKIGAI Creative: white paper, ink lines, the logo's blue, a little red pen.
   Layout is a 12-column grid inside a wide wrap; hand-drawn borders live on
   ::before/::after and are roughened by the SVG filters from site.js
   (#wobble, #wobble-2), so text stays crisp and blocks stay aligned. */

:root {
    color-scheme: light;
    --paper: #fdfcf9;
    --ink: #1e1e1e;
    --ink-2: #4b4b4b;
    --pencil: #8f8f8f;
    --line: #d9d5cc;
    --brand: #47b4d6;          /* logo blue */
    --brand-ink: #1b7ca3;      /* logo blue, dark enough for text */
    --brand-wash: rgba(71, 180, 214, 0.22);
    --brand-soft: rgba(71, 180, 214, 0.1);
    --grey: #737373;           /* logo wordmark grey */
    --red: #d2382c;
    --green: #2e8f4e;          /* "active" status pen */
    --marker: #ffe36e;
    --marker-soft: rgba(255, 227, 110, 0.55);
    --sticky: #fff3a8;
    --hand: "Patrick Hand", "Comic Sans MS", system-ui, sans-serif;
    --marker-font: "Pangolin", "Patrick Hand", system-ui, sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    /* Spacing snaps to Fibonacci steps (8 13 21 34 55 89 144), whose ratios
       tend to the golden ratio; type steps by φ (and √φ) from the 20px body:
       20 · 25 · 32 · 52 · 84. */
    --wrap: 1360px;
    --gutter: clamp(21px, 5vw, 89px);
    --gap: clamp(21px, 2.4vw, 34px);
    --head-gap: clamp(34px, 4vw, 55px);
    --section: clamp(89px, 10vw, 144px);
    --band-gap: clamp(55px, 6vw, 89px);
    --radius-a: 18px 6px 22px 8px / 8px 20px 6px 16px;
    --radius-b: 6px 20px 8px 18px / 18px 8px 20px 6px;
}

* { box-sizing: border-box; }

/* The wobble filter paints a little outside each drawn border; on phones that
   reaches past the screen edge, so the page never scrolls sideways (clip, not
   hidden: no scroll box, and iOS Safari respects it). */
html { background: var(--paper); scroll-behavior: smooth; overflow-x: clip; }

body {
    margin: 0;
    color: var(--ink);
    background-color: var(--paper);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .045 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    font: 20px/1.55 var(--hand);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

html[data-lang="en"] [data-l="vi"],
html[data-lang="vi"] [data-l="en"] { display: none !important; }

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

/* ---------- type ---------- */

h1, h2, h3 {
    font-family: var(--marker-font);
    font-weight: 400;
    line-height: 1.08;
    margin: 0;
}
h1 { font-size: clamp(52px, 6vw, 84px); letter-spacing: -0.5px; }
h2 { font-size: clamp(34px, 3.6vw, 52px); }
h3 { font-size: clamp(22px, 1.9vw, 26px); }

p { margin: 0 0 0.8em; }
/* no lone last word on a line, in both languages */
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
p:last-child { margin-bottom: 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 18px var(--marker-font);
    color: var(--brand-ink);
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.lead { font-size: clamp(21px, 1.9vw, 25px); color: var(--ink-2); max-width: 34em; }
.small { font-size: 17px; color: var(--ink-2); }
.muted { color: var(--pencil); }
.measure { max-width: 36em; }

/* Every text link: a plain underline, 1.5px and 5px below the text, the way
   Safari draws this site's links; Chrome on Windows turned a wavy underline
   into a harsh zigzag, so no browser gets the wavy style. */
a { color: var(--brand-ink); text-decoration: underline 1.5px; text-underline-offset: 5px; text-decoration-skip-ink: none; }
a:hover { color: var(--red); }

.scribble {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'><path d='M2 9 C 30 3, 52 13, 80 7 S 135 3, 160 8 S 190 10, 198 5' fill='none' stroke='%23d2382c' stroke-width='3' stroke-linecap='round'/></svg>") no-repeat left 96% / 100% 0.32em;
    padding-bottom: 0.1em;
    white-space: nowrap;   /* the red-pen phrase never splits across lines */
}

/* a soft highlighter swipe: rounded, feathered ends, over the lower part of the line */
.hl {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'><filter id='s' x='-5%25' y='-25%25' width='110%25' height='150%25'><feGaussianBlur stdDeviation='1.8'/></filter><path d='M6 12 C 50 8, 140 6, 194 10 C 198 17, 197 27, 193 33 C 140 36, 62 37, 7 33 C 3 26, 3 18, 6 12 Z' fill='%23ffe36e' fill-opacity='0.82' filter='url(%23s)'/></svg>") no-repeat center 70% / 100% 82%;
    padding: 0 0.22em;
    margin: 0 -0.1em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.red-note { color: var(--red); display: inline-block; transform: rotate(-2deg); }

/* ---------- header ---------- */

.site-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    padding-top: 22px;
    padding-bottom: 18px;
    flex-wrap: wrap;
}

.lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--grey);
    text-decoration: none;
}
.lockup:hover { color: var(--grey); }
.lockup .mark { width: 46px; height: 46px; flex-shrink: 0; }
.lockup .words { display: grid; gap: 3px; justify-items: start; }
.lockup .word-ikigai { height: 19px; width: auto; display: block; }
.lockup .word-division { height: 17px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 6px 26px; flex-wrap: wrap; }
.site-nav a {
    font: 19px var(--marker-font);
    color: var(--ink);
    text-decoration: none;
    position: relative;
}
.site-nav a[aria-current="page"]::after,
.site-nav a:hover::after {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    bottom: -4px;
    height: 7px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'><path d='M2 5 C 30 2, 60 7, 98 3' fill='none' stroke='%2347b4d6' stroke-width='3' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
}

.lang { display: flex; gap: 2px; }
.lang button {
    font: 17px var(--marker-font);
    color: var(--ink-2);
    background: none;
    border: 0;
    padding: 4px 8px;
    cursor: pointer;
    position: relative;
}
.lang button[aria-pressed="true"] { color: var(--ink); }
.lang button[aria-pressed="true"]::after {
    content: "";
    position: absolute;
    inset: -1px -2px;
    border: 2px solid var(--red);
    border-radius: 50%;
    transform: rotate(-6deg);
    filter: url(#wobble-2);
}

/* the URL path, shown as layers */
.path-bar {
    position: relative;
    padding: 12px 0 14px;
    font-size: 17px;
    color: var(--ink-2);
}
.path-bar::before,
.foot::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 8' preserveAspectRatio='none'><path d='M1 5 C 60 2, 120 7, 200 4 S 330 2, 399 5' fill='none' stroke='%231e1e1e' stroke-width='1.4' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
}
.path-bar::before { top: -3px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 2px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--red); text-decoration: underline 1.5px; }
.crumbs .slash { color: var(--line); margin: 0 9px; }
.crumbs .here { color: var(--ink); }

/* ---------- sections & grids ---------- */

.section { padding: var(--section) 0 0; }
.section:first-of-type { padding-top: clamp(55px, 6vw, 89px); }

/* Every other block of content sits on a soft wash that runs edge to edge,
   with torn-paper edges cut by clip-path: blocks read apart without rules.
   (An SVG filter on a block this big was drawn in tiles by Chrome on
   Windows, and the seams showed as light streaks across the wash.) */
.section--band {
    --band: rgba(71, 180, 214, 0.085);
    position: relative;
    isolation: isolate;
    margin-top: var(--band-gap);
    padding: var(--band-gap) 0;
}
.section--band.warm { --band: rgba(240, 150, 100, 0.1); }   /* peach, so the yellow heading marker still shows */
.section--band::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 auto 0 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--band);
    clip-path: polygon(0% 5.2px, 1.39% 4.3px, 2.78% 3.3px, 4.17% 3.4px, 5.56% 4.6px, 6.94% 4.5px, 8.33% 4.3px, 9.72% 4.7px, 11.11% 4.6px, 12.5% 5.6px, 13.89% 5.9px, 15.28% 5.8px, 16.67% 4.7px, 18.06% 4.4px, 19.44% 4.4px, 20.83% 4.1px, 22.22% 3.8px, 23.61% 2.8px, 25% 1.6px, 26.39% 1.9px, 27.78% 2.3px, 29.17% 2.6px, 30.56% 2.4px, 31.94% 2.7px, 33.33% 2.5px, 34.72% 3.2px, 36.11% 4px, 37.5% 3.8px, 38.89% 3.3px, 40.28% 2.1px, 41.67% 2px, 43.06% 1.9px, 44.44% 2.2px, 45.83% 1.5px, 47.22% 0.3px, 48.61% 0.2px, 50% 0.9px, 51.39% 2.3px, 52.78% 2.4px, 54.17% 2.5px, 55.56% 2.3px, 56.94% 3px, 58.33% 3.7px, 59.72% 4px, 61.11% 3.8px, 62.5% 3px, 63.89% 2.8px, 65.28% 2.9px, 66.67% 3.4px, 68.06% 3.2px, 69.44% 2.8px, 70.83% 2.4px, 72.22% 2.7px, 73.61% 4.2px, 75% 5.1px, 76.39% 5.2px, 77.78% 4.9px, 79.17% 5.3px, 80.56% 5.6px, 81.94% 6.4px, 83.33% 5.9px, 84.72% 4.9px, 86.11% 4px, 87.5% 4.5px, 88.89% 4.9px, 90.28% 4.3px, 91.67% 4.3px, 93.06% 3.7px, 94.44% 3.8px, 95.83% 4.7px, 97.22% 5.8px, 98.61% 6px, 100% 5.1px, 100% calc(100% - 4.6px), 98.61% calc(100% - 3.6px), 97.22% calc(100% - 3.6px), 95.83% calc(100% - 3.7px), 94.44% calc(100% - 3.4px), 93.06% calc(100% - 2.9px), 91.67% calc(100% - 2.2px), 90.28% calc(100% - 1.9px), 88.89% calc(100% - 2.9px), 87.5% calc(100% - 3.3px), 86.11% calc(100% - 3.8px), 84.72% calc(100% - 3.3px), 83.33% calc(100% - 3.4px), 81.94% calc(100% - 3.4px), 80.56% calc(100% - 3.8px), 79.17% calc(100% - 3.5px), 77.78% calc(100% - 2.4px), 76.39% calc(100% - 1.7px), 75% calc(100% - 1.4px), 73.61% calc(100% - 1.4px), 72.22% calc(100% - 1.8px), 70.83% calc(100% - 1.5px), 69.44% calc(100% - 0.7px), 68.06% calc(100% - 0.5px), 66.67% calc(100% - 1.8px), 65.28% calc(100% - 2.8px), 63.89% calc(100% - 2.8px), 62.5% calc(100% - 3.2px), 61.11% calc(100% - 2.4px), 59.72% calc(100% - 2.8px), 58.33% calc(100% - 3.4px), 56.94% calc(100% - 3.3px), 55.56% calc(100% - 2.9px), 54.17% calc(100% - 1.9px), 52.78% calc(100% - 1.8px), 51.39% calc(100% - 2px), 50% calc(100% - 2.8px), 48.61% calc(100% - 2.9px), 47.22% calc(100% - 2.8px), 45.83% calc(100% - 2.4px), 44.44% calc(100% - 3.2px), 43.06% calc(100% - 4.3px), 41.67% calc(100% - 5.2px), 40.28% calc(100% - 5.3px), 38.89% calc(100% - 5.3px), 37.5% calc(100% - 5px), 36.11% calc(100% - 5.2px), 34.72% calc(100% - 5.4px), 33.33% calc(100% - 5.3px), 31.94% calc(100% - 4.3px), 30.56% calc(100% - 3.8px), 29.17% calc(100% - 3.7px), 27.78% calc(100% - 4.5px), 26.39% calc(100% - 4.8px), 25% calc(100% - 4.4px), 23.61% calc(100% - 4.1px), 22.22% calc(100% - 4.8px), 20.83% calc(100% - 5.4px), 19.44% calc(100% - 6.1px), 18.06% calc(100% - 6.1px), 16.67% calc(100% - 5.3px), 15.28% calc(100% - 5.4px), 13.89% calc(100% - 4.9px), 12.5% calc(100% - 4.9px), 11.11% calc(100% - 4.5px), 9.72% calc(100% - 4px), 8.33% calc(100% - 3.1px), 6.94% calc(100% - 2.6px), 5.56% calc(100% - 2.8px), 4.17% calc(100% - 3.5px), 2.78% calc(100% - 3.1px), 1.39% calc(100% - 2.8px), 0% calc(100% - 3.2px));
}
.section--band.warm::before { transform: translateX(-50%) scaleX(-1); }   /* a different tear */
.section--band + .section { padding-top: var(--band-gap); }
main > .section--band:last-child { margin-bottom: calc(var(--band-gap) - var(--section)); }

/* heading in the first third, intro over the other two: lines up with .cols-3 below */
.section-head {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    align-items: baseline;
    margin-bottom: var(--head-gap);
}
.section-head > :last-child { grid-column: span 2; }
.section-head p { color: var(--ink-2); max-width: 36em; margin: 0; }

.hero {
    display: grid;
    grid-template-columns: 1fr 1.618fr;
    gap: clamp(34px, 5vw, 89px);
    align-items: center;
}
.hero--text { grid-template-columns: 1.618fr 1fr; }
.hero h1 { margin-bottom: 21px; }
.hero .lead { margin-bottom: 0; }
.hero--even { grid-template-columns: 1fr 1fr; }

.split { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }

.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.span-2 { grid-column: span 2; }

/* Cards side by side share their rows (subgrid): a title that wraps onto two
   lines pushes every neighbour's text down with it, so the text of all the
   cards in a row starts on the same line. --rows = children per card. */
.cols-3 > .feature,
.cols-3 > .belief,
.cols-4 > .circle-card {
    display: grid;
    grid-row: span var(--rows, 2);
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
}
.cols-3 > .feature:has(> .icon) { --rows: 3; }
#fields .cols-3 > .feature { --rows: 4; }
.cols-3 > .feature > a { justify-self: start; }
/* rows of features breathe more than the columns beside them; padding, not
   row-gap, since a subgrid card would carry the bigger gap between its own
   title and text as well */
.cols-3 > .feature { padding-bottom: 21px; }
/* short facts ("Good to know") sit a step below the features */
.facts .feature h3 { font-size: 22px; }

.meta-line { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-size: 16px; color: var(--ink-2); }
/* the second part of a label ("IKIGAI Audio  v1", "Choose a version  from $3"):
   set apart by space and a quieter tone, never by a drawn dash or dot */
.tail { margin-left: 0.45em; opacity: 0.6; }
.eyebrow .tail { margin-left: 0; color: var(--ink-2); opacity: 1; }

/* ---------- drawn boxes ---------- */

.box {
    position: relative;
    padding: clamp(21px, 2.4vw, 34px);
    background: rgba(255, 255, 255, 0.6);
}
.box::before {
    content: "";
    position: absolute;
    pointer-events: none;
    border: 2px solid var(--ink);
    border-radius: var(--radius-a);
    filter: url(#wobble);
}
.box::before { inset: 0; }

.box--brand::before { border-color: var(--brand-ink); }
.box--brand { background: var(--brand-soft); }
.box--red::before { border-color: var(--red); }
.box--dashed { background: none; }
.box--dashed::before { border-color: var(--line); }
.box--flat { background: none; }

.card { display: flex; flex-direction: column; height: 100%; }
.card .grow { flex: 1; }

/* a strip of tape holding the card to the page */
.tape {
    position: absolute;
    top: -14px;
    left: 50%;
    width: 110px;
    height: 28px;
    margin-left: -55px;
    background: rgba(255, 227, 110, 0.6);
    transform: rotate(-4deg);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
    z-index: 1;
}
.tape--left { left: 18%; transform: rotate(6deg); }

/* cards sit a little crooked, like paper pinned to a board */
.tilt-l { transform: rotate(-0.6deg); }
.tilt-r { transform: rotate(0.5deg); }
.cols-3 > .box:nth-child(odd), .cols-4 > .box:nth-child(odd) { transform: rotate(-0.5deg); }
.cols-3 > .box:nth-child(even), .cols-4 > .box:nth-child(even) { transform: rotate(0.45deg); }

.badge,
.status {
    display: inline-block;
    font: 15px var(--marker-font);
    color: var(--red);
    border: 1.6px solid var(--red);
    border-radius: 14px 10px 16px 9px;
    padding: 0 10px;
    transform: rotate(-3deg);
    vertical-align: middle;
}
.status { justify-self: start; color: var(--green); border-color: var(--green); }

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    padding: 12px 24px;
    font: 21px/1.2 var(--marker-font);
    color: var(--ink);
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
    transform: rotate(-1deg);
    transition: transform 0.12s ease;
    isolation: isolate;
    text-align: center;
}
.btn::before,
.btn::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: var(--radius-b);
}
.btn::before { inset: 3px 0 0 4px; background: var(--marker); z-index: -1; filter: url(#wobble-2); }
.btn::after { inset: 0; border: 2.2px solid var(--ink); filter: url(#wobble); }
.btn:hover { color: var(--ink); transform: rotate(0.6deg) translateY(-1px); }
.btn:active { transform: translate(1px, 1px); }
.btn:focus-visible { outline: 2px dashed var(--brand-ink); outline-offset: 6px; }

.btn--ghost::before { background: transparent; }
.btn--marker::before { background: var(--marker); }
.btn--red::before { background: rgba(210, 56, 44, 0.14); }
.btn--block { width: 100%; }

.btn[disabled],

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 26px; }

.text-link { font-family: var(--marker-font); font-size: 19px; }

/* ---------- price ---------- */

.price {
    font-family: var(--marker-font);
    font-size: clamp(48px, 4.6vw, 60px);
    line-height: 1;
    display: inline-block;
    position: relative;
    padding: 6px 16px;
    margin: 14px 0 6px -4px;
}
.price::after {
    content: "";
    position: absolute;
    inset: -3px -6px;
    border: 2.5px solid var(--red);
    border-radius: 50%;
    transform: rotate(-6deg);
    filter: url(#wobble-2);
}
.price-note { font-size: 17px; color: var(--ink-2); margin-bottom: 14px; }

/* ---------- lists ---------- */

.hand-list { list-style: none; padding: 0; margin: 0; }
.hand-list li { position: relative; padding-left: 30px; margin: 9px 0; }
.hand-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.5em;
    width: 11px;
    height: 11px;
    border: 2px solid var(--ink);
    border-radius: 50% 42% 55% 45%;
    filter: url(#wobble-2);
}
.hand-list.ticks li::before {
    border: 0;
    border-radius: 0;
    width: 20px;
    height: 16px;
    top: 0.34em;
    left: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'><path d='M2 9 L7 14 L18 2' fill='none' stroke='%231b7ca3' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
    filter: none;
}

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li {
    counter-increment: step;
    position: relative;
    padding-left: 56px;
    margin: 0 0 22px;
    min-height: 40px;
}
.steps li:last-child { margin-bottom: 0; }
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: -3px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    font: 22px var(--marker-font);
    border: 2px solid var(--ink);
    border-radius: 52% 46% 50% 44%;
    filter: url(#wobble);
}

/* ---------- feature notes ---------- */

.feature .icon { width: 52px; height: 52px; margin-bottom: 12px; }
.feature .icon * { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.feature .icon .accent { stroke: var(--brand); }
.feature .icon .fill { fill: var(--brand-wash); stroke: none; }
.feature h3 { margin-bottom: 13px; }
.feature p { font-size: 18px; color: var(--ink-2); }

/* the ikigai circles, explained */
.circle-card h3 { margin-bottom: 10px; }
.circle-card .q { font-size: 16px; color: var(--pencil); margin-bottom: 4px; }
.circle-card p { font-size: 18px; color: var(--ink-2); }

/* ---------- compare table ---------- */

.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 19px; }
.compare th, .compare td {
    text-align: left;
    vertical-align: top;
    padding: 12px 14px 14px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 6' preserveAspectRatio='none'><path d='M1 3 C 80 1, 150 5, 299 3' fill='none' stroke='%23d9d5cc' stroke-width='1.4' stroke-linecap='round'/></svg>") no-repeat left bottom / 100% 6px;
}
.compare th:first-child, .compare td:first-child { padding-left: 0; }
.compare thead th { font: 26px var(--marker-font); padding-bottom: 16px; }
.compare thead th small { font: 18px var(--hand); color: var(--ink-2); }
.compare th[scope="row"] { font-weight: 400; color: var(--ink-2); }
.compare thead th { width: 33.33%; }
.compare .adv { background-color: var(--brand-soft); }   /* header too: one block */
.compare .yes {
    display: inline-block;
    width: 22px;
    height: 18px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'><path d='M2 9 L7 14 L18 2' fill='none' stroke='%231b7ca3' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
    vertical-align: -2px;
}
.compare .detail { display: block; font-size: 16px; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }

/* ---------- receipt (checkout) ---------- */

.receipt h3 { margin-bottom: 14px; }
.receipt .row { display: flex; align-items: baseline; gap: 8px; margin: 6px 0; }
.receipt .row .dots { flex: 1; min-width: 16px; }
.receipt .row .val { font-family: var(--marker-font); white-space: nowrap; }
.receipt .cut { border-top: 1.5px solid var(--line); margin: 16px 0; }
.receipt .total { font-size: 25px; }
.receipt .sub { font-size: 16px; color: var(--ink-2); }

.sticky-side { position: sticky; top: 24px; }

/* ---------- forms ---------- */

.field { margin: 4px 0 6px; }
.field label { display: block; font-size: 18px; color: var(--ink-2); margin-bottom: 4px; }
.field input {
    width: 100%;
    font: clamp(18px, 2vw, 23px) var(--mono);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 2.5px solid var(--ink);
    padding: 10px 4px;
    border-radius: 0;
}
.field input::placeholder { color: #bdbab3; }
.field input:focus { outline: none; background: var(--brand-soft); }

.msg { min-height: 1.6em; margin: 14px 0 0; }
.msg.err { color: var(--red); }
.msg.ok { color: var(--brand-ink); }

/* ---------- key note ---------- */

.sticky {
    position: relative;
    background: var(--sticky);
    padding: 28px clamp(20px, 3vw, 34px) 24px;
    transform: rotate(-1deg);
    box-shadow: 0 16px 24px -18px rgba(0, 0, 0, 0.45);
}
.sticky .label { font-size: 17px; color: var(--ink-2); margin-bottom: 6px; }
.sticky .key {
    font: 600 clamp(19px, 3vw, 30px)/1.3 var(--mono);
    letter-spacing: 1px;
    word-break: break-all;
    user-select: all;
}
.sticky .tier { margin-left: 0.45em; font-family: var(--marker-font); color: var(--red); }

/* ---------- waiting ---------- */

.writing { display: flex; align-items: center; gap: 16px; }
.writing svg { width: 120px; height: 40px; flex-shrink: 0; }
.writing path {
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: write 1.8s ease-in-out infinite;
}
@keyframes write {
    0% { stroke-dashoffset: 220; }
    60% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ---------- drawings ---------- */

.drawing svg { width: 100%; height: auto; display: block; overflow: visible; }
.drawing .ink { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drawing .thin { stroke-width: 1.3; }
.drawing .soft { stroke: var(--pencil); }
.drawing .wood { fill: none; stroke: #b08a4a; stroke-width: 1.2; stroke-linecap: round; opacity: 0.7; }
.drawing .redline { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drawing .blue { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; }
.drawing .wash { fill: var(--brand-wash); stroke: none; }
.drawing .plug { fill: rgba(255, 227, 110, 0.38); }
.drawing .panel { fill: rgba(255, 255, 255, 0.7); }
.drawing .dark { fill: rgba(30, 30, 30, 0.06); }
.drawing .led { fill: var(--marker); stroke: var(--ink); stroke-width: 1.2; }
.drawing .led.off { fill: none; stroke: var(--pencil); stroke-width: 1; }
.drawing text { font-family: var(--hand); font-size: 16px; fill: var(--ink); }
.drawing text.tiny { font-size: 12px; fill: var(--ink-2); }
.drawing text.note { fill: var(--red); font-size: 19px; }
.drawing text.label { font-family: var(--marker-font); font-size: 23px; fill: var(--ink); }
.drawing text.center { fill: var(--red); font-family: var(--marker-font); font-size: 24px; }
.drawing .needle { transform-box: fill-box; transform-origin: 50% 100%; animation: swing 2.6s ease-in-out infinite alternate; }
.drawing .needle.b { animation-duration: 2.1s; animation-delay: -0.8s; }
@keyframes swing {
    from { transform: rotate(-24deg); }
    to { transform: rotate(18deg); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .drawing .needle, .writing path { animation: none; }
    .writing path { stroke-dashoffset: 0; }
    .btn { transition: none; }
}

/* ---------- story parts ---------- */

.chapter {
    display: block;
    font: 16px var(--marker-font);
    color: var(--red);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.big-line {
    font: clamp(24px, 2.6vw, 32px)/1.35 var(--marker-font);
    max-width: 30em;
    color: var(--ink-2);
}
/* Stressed words in a long line are picked out by colour, not weight, and
   carry one thread through the line: .em in logo blue (the ikigai circles,
   what Rack View fixes), .em-warn in soft red pen (the problem). */
.big-line .em { color: var(--brand-ink); }
.big-line .em-warn { color: #b8463c; }
/* a light bold: a hairline stroke, since the hand fonts have no bold cut */
.big-line .em-strong { color: var(--ink); -webkit-text-stroke: 0.4px currentColor; }
.big-line .em.em-strong, .big-line .em-strong .em { color: var(--brand-ink); }

.belief h3 { font-size: clamp(26px, 2.4vw, 32px); margin-bottom: 13px; }
.belief p { color: var(--ink-2); }

/* five circles of people */
.rings-row { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ring-intro { font: clamp(22px, 2vw, 25px)/1.45 var(--marker-font); color: var(--ink); max-width: 30em; margin: 0 0 var(--head-gap); }
.ring-list { list-style: none; margin: 0; padding: 0; }
.ring-list li { padding: 0 0 18px; }
.ring-list li:last-child { padding-bottom: 0; }
.ring-list b { font-family: var(--marker-font); font-weight: 400; font-size: 22px; display: block; }
.ring-list span.d { color: var(--ink-2); font-size: 18px; }

/* product bar under the path */
.product-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; padding: 14px 0 2px; }
.product-name { font: 24px var(--marker-font); }
.product-links { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 18px; flex: 1; }
.product-links a { color: var(--ink-2); text-decoration: none; }
.product-links a:hover,
.product-links a[aria-current="page"] { color: var(--ink); text-decoration: underline 1.5px var(--brand); text-underline-offset: 5px; }
.product-buy { padding: 6px 16px; font-size: 18px; }

/* product picture */
.shot { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 18px 30px -22px rgba(0, 0, 0, 0.6); }
.shot-frame { position: relative; padding: 10px; }
.shot-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid var(--ink);
    border-radius: var(--radius-a);
    filter: url(#wobble);
    pointer-events: none;
}

/* sketch ↔ real plugin */
.views[data-show="sketch"] .view-real,
.views[data-show="real"] .view-sketch { display: none; }
.view-switch { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.view-switch .small { color: var(--pencil); }
/* a quiet text toggle, so it never competes with the buy button */
.view-toggle {
    padding: 0;
    font: 19px var(--marker-font);
    color: var(--brand-ink);
    text-decoration: underline 1.5px;
    text-underline-offset: 5px;
    background: none;
    border: 0;
    cursor: pointer;
}
.view-toggle:hover { color: var(--red); }
.view-toggle:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 4px; }
.drawing image { image-rendering: auto; }
.drawing text.note-real { fill: var(--red); font-size: 62px; }

/* ---------- footer ---------- */

.foot {
    position: relative;
    margin-top: var(--section);
    padding: 34px 0 44px;
    display: grid;
    /* the brand takes the page's first third, so the link columns start on the
       same line as every section's intro text */
    grid-template-columns: calc((100% - 2 * var(--gap)) / 3) repeat(3, 1fr);
    gap: 28px var(--gap);
    font-size: 17px;
    color: var(--ink-2);
}
.foot::before { top: 0; }
.foot h4 { font: 19px var(--marker-font); color: var(--ink); margin: 0 0 8px; font-weight: 400; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 4px 0; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--red); text-decoration: underline 1.5px; }
.foot .lockup { margin-bottom: 12px; }
.foot-base {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 24px;
    padding-top: 18px;
    font-size: 15px;
    color: var(--pencil);
}

/* ---------- misc ---------- */

.center { text-align: center; }
[hidden] { display: none !important; }

.arrow-note { display: inline-flex; align-items: flex-start; gap: 10px; color: var(--red); }
.arrow-note svg { width: 50px; height: 24px; flex-shrink: 0; margin-top: 4px; }
.arrow-note path { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.logo-big { width: min(100%, 420px); height: auto; display: block; margin: 0 auto; }

/* ---------- tablets ---------- */

@media (max-width: 980px) {
    .hero, .hero--even, .hero--text, .split, .split--even, .section-head { grid-template-columns: 1fr; }
    .section-head { align-items: start; gap: 12px; }
    .section-head > :last-child { grid-column: auto; }
    .cols-4 { grid-template-columns: repeat(2, 1fr); }
    .cols-3 { grid-template-columns: repeat(2, 1fr); }
    .cols-3 > .span-2 { grid-column: 1 / -1; }
    .foot { grid-template-columns: repeat(3, 1fr); }
    .foot-brand { grid-column: 1 / -1; }
    .sticky-side { position: static; }
    .rings-row { grid-template-columns: 1fr; }
}

/* ---------- phones ---------- */

@media (max-width: 640px) {
    body { font-size: 18px; }
    .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .site-nav { order: 3; width: 100%; gap: 6px 20px; }
    .lockup .mark { width: 40px; height: 40px; }
    .lockup .word-ikigai { height: 17px; }
    .lockup .word-division { height: 15px; }
    .path-bar { font-size: 15px; }
    .compare { font-size: 16px; }
    .compare thead th { font-size: 20px; }
    .compare th, .compare td { padding: 9px 8px 11px; }
    .btn { font-size: 19px; padding: 11px 20px; }
    .foot { grid-template-columns: 1fr 1fr; }
    .drawing text { font-size: 21px; }
    .drawing text.tiny { font-size: 15px; }
    .drawing text.note { font-size: 25px; }
    .drawing text.label { font-size: 28px; }
    .drawing text.note-real { font-size: 84px; }
    .product-buy { display: none; }
}
