/* Inter (OD-T338-15), from @fontsource/inter 5.3.0 (OFL, fonts/INTER-LICENSE.txt): latin, latin-ext and Vietnamese subsets. */
@font-face { font-family: "Inter"; src: url("fonts/inter-vietnamese-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; 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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; 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: "Inter"; src: url("fonts/inter-vietnamese-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-ext-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; 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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; 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: "Inter"; src: url("fonts/inter-vietnamese-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-ext-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; 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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; 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; }

/* Layout: the first screen holds the rings and the three pillars together (owner 2026-11-14: no scrolling to see them); a closing mark below. */
:root {
  --jade: #0F766E; --jade-mid: #14A394; --mint: #6CE5D0;
  --ink: #0B2A27; --paper: #F6F8F7; --white: #FFFFFF;
  --bg: var(--paper); --fg: var(--ink); --soft: #4A635F; --hair: rgba(11, 42, 39, .16); --disc: var(--white);
  --accent: var(--jade);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --top: 72px; /* the header: 16 + 40 + 16 */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #081C1A; --fg: #EEF4F2; --soft: #9DB8B3; --hair: rgba(214, 240, 234, .16); --disc: #0F2E2B; --accent: var(--mint); color-scheme: dark; }
}

* { box-sizing: border-box; }
/* Text scale matches piar.app (OD-T338-14): body 15, buttons 14, small 12-13; display type stays. */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 .9375rem/1.6 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 999px; }
h1, h2, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: .875rem; text-decoration: none; transition: background-color .25s var(--ease), transform .25s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--fg); color: var(--bg); }
.btn-ink:hover { background: var(--accent); color: var(--white); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: .9375rem; }
@media (prefers-color-scheme: dark) { .btn-ink:hover { color: var(--ink); } }

.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gutter); }
.brand img { display: block; height: 40px; width: auto; }
@media (prefers-color-scheme: dark) { .brand img, .foot img { content: url("piar-lockup-on-dark.svg"); } }

/* Hero: the unfolding rings and the three pillars on one screen.
   Portrait: a column; the rings take whatever height the pillar cards leave (flex), so the cards always fit, whatever their language or font size.
   Wide: the rings on the left at the screen's height, the pillars stacked on the right. */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 0 var(--gutter) clamp(14px, 2.5svh, 28px); }
.hero-grid {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 2svh, 22px);
  height: calc(100svh - var(--top) - clamp(14px, 2.5svh, 28px)); min-height: 500px; max-width: 1440px; margin: 0 auto;
}
.stage { position: relative; flex: 1 1 0; min-height: 170px; max-width: min(100%, 560px); aspect-ratio: 1; container-type: size; }
.unfold { width: 100%; height: 100%; overflow: visible; display: block; }
.ring { fill: none; stroke: var(--hair); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ring-phone { stroke: var(--accent); stroke-width: 2; }
.slogan { font: 600 26px "Inter", sans-serif; letter-spacing: .02em; text-anchor: middle; dominant-baseline: central; fill: var(--fg); }
.layer-1 .slogan { fill: var(--accent); }
.node-bg { fill: var(--disc); stroke: var(--hair); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.node-ico { fill: none; stroke: var(--fg); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.layer-1 .node-ico { stroke: var(--accent); }
.core-bg { fill: var(--disc); }

/* The one orchestrated moment: the mark opens outward, layer by layer. Resting state is fully visible. */
@media (prefers-reduced-motion: no-preference) {
  .core { transform-box: fill-box; transform-origin: center; animation: core-in .9s var(--ease) both; }
  .ring { stroke-dasharray: 1; animation: draw 1.1s var(--ease) both; animation-delay: calc(.35s + var(--i) * .38s); }
  .layer { --delay: calc(.35s + var(--i) * .38s); }
  .layer .ring { animation-delay: var(--delay); }
  .slogan { animation: rise .8s var(--ease) both; animation-delay: calc(var(--delay) + .45s); }
  .node { animation: pop .7s var(--ease) both; animation-delay: calc(var(--delay) + .25s + var(--d) * .07s); }
  .node > circle, .node > g { transform-box: fill-box; }
}
@keyframes core-in { from { opacity: 0; transform: scale(.6); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; } }

/* The three pillars: compact cards over the network, few words. */
.layers { flex: none; width: 100%; max-width: 560px; display: grid; gap: 8px; }
.layer-card {
  display: grid; gap: 4px; align-content: start; padding: 11px 14px 12px; border: 1px solid var(--hair); border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.layer-card h2 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.vi { color: var(--soft); font-size: .8125rem; line-height: 1.4; }
.feat { list-style: none; margin: 3px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.feat li { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; line-height: 1.3; color: var(--soft); }
.ico { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--fg); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.layer-card:first-child { border-color: color-mix(in srgb, var(--accent) 45%, var(--hair)); }
.layer-card:first-child .ico { stroke: var(--accent); }

@media (min-width: 880px) and (min-aspect-ratio: 5/4) {
  .hero-grid { flex-direction: row; gap: clamp(32px, 5vw, 88px); }
  .stage { flex: none; min-height: 0; max-width: none; width: min(52vw, calc(100svh - var(--top) - 56px), 820px); }
  .layers { flex: 0 1 440px; min-width: 300px; gap: 12px; }
  .layer-card { gap: 6px; padding: 16px 22px 18px; border-radius: 22px; }
  .layer-card h2 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); letter-spacing: -0.02em; }
  .vi { font-size: .875rem; }
  .feat { gap: 6px 16px; margin-top: 4px; }
  .feat li { font-size: .8125rem; }
  .ico { width: 18px; height: 18px; }
}

/* Close */
.close { display: grid; justify-items: center; gap: 18px; text-align: center; padding: clamp(56px, 10vw, 120px) var(--gutter); border-top: 1px solid var(--hair); }
.close h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; }
.truth { font-size: .8125rem; color: var(--soft); max-width: 36rem; }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 28px var(--gutter) 40px; color: var(--soft); font-size: .8125rem; }
.foot img { display: block; height: 30px; width: auto; }
.foot span { user-select: all; }
/* Language choice: two text buttons, the chosen one in weight and accent (not colour alone). */
.lang { display: flex; gap: 4px; }
.lang[hidden] { display: none; }
.lang button { min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--soft); font: inherit; cursor: pointer; }
@media (hover: hover) { .lang button:hover { background: var(--hair); } }
.lang button[aria-pressed="true"] { color: var(--accent); font-weight: 600; }

.layer-card h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--hair); font-size: .75rem; font-weight: 600; letter-spacing: 0; color: var(--soft); }
.layer-card:first-child .tag { border-color: var(--accent); color: var(--accent); }

/* Not yet shipped: the two outer layers draw their feature discs dashed and quiet, with no extra words. */
.layer-2 .node-bg, .layer-3 .node-bg { stroke-dasharray: 3px 4px; fill: var(--bg); }
.layer-2 .node-ico, .layer-3 .node-ico { stroke: var(--soft); }

.tagline-lockup { display: block; height: 140px; width: auto; max-width: 80vw; }
@media (prefers-color-scheme: dark) { .tagline-lockup { content: url("piar-lockup-tagline-on-dark.svg"); } }

html { scrollbar-color: var(--hair) transparent; }

/* v5: full rings, slogans between the rings, icons orbiting, ledger-style network behind. */
:root { --net-line: 15,118,110; --net-ink: 11,42,39; }
@media (prefers-color-scheme: dark) { :root { --net-line: 108,229,208; --net-ink: 214,240,234; } }
.net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.slogan { font-size: 24px; }
.layer-1 .slogan { font-size: 22px; }
/* SVG text scales with the stage (1000 units across): a smaller stage draws larger units so the slogans stay legible; the smallest leaves
   them to the cards below. */
@container (max-width: 520px) { .slogan { font-size: 32px; } .layer-1 .slogan { font-size: 30px; } }
@container (max-width: 400px) { .slogan { font-size: 40px; } .layer-1 .slogan { font-size: 32px; } }
@container (max-width: 250px) { .slogan { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  .orbit { transform-box: view-box; transform-origin: 500px 500px; animation: orbit var(--t) linear infinite var(--spin); }
  .upright { transform-box: fill-box; transform-origin: center; animation: orbit var(--t) linear infinite var(--counter); }
  .layer-1 { --t: 60s; --spin: normal; --counter: reverse; }
  .layer-2 { --t: 90s; --spin: reverse; --counter: normal; }
  .layer-3 { --t: 130s; --spin: normal; --counter: reverse; }
}
@keyframes orbit { to { transform: rotate(360deg); } }

/* Stagger indices as classes, so the page needs no inline style under a strict CSP. */
.layer-1 { --i: 0; } .layer-2 { --i: 1; } .layer-3 { --i: 2; }
.node:nth-child(1) { --d: 0; } .node:nth-child(2) { --d: 1; } .node:nth-child(3) { --d: 2; } .node:nth-child(4) { --d: 3; }
