/* a2side — poster system: paper, ink, one indigo field. */

@font-face {
  font-family: "A2 Sans";
  src: url("../fonts/a2side-subset.woff2") format("woff2");
  font-weight: 400 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --indigo: #3a2fe0;
  --indigo-deep: #2a20b8;
  --c-raised: #2d23c4;
  --on-indigo: #ffffff;
  --on-indigo-2: #dcd9ff;

  --paper: #f2f2ef;
  --raised: #e6e6e1;
  --ink: #0d0d14;
  --ink-2: #474753;
  --rule: #0d0d14;
  --hair: #c9c9c2;
  --link: #3327cf;
  --focus: #3a2fe0;
  --letter: #3a2fe0;

  --b-bg: #0d0d14;
  --b-raised: #1b1b26;
  --b-ink: #f2f2ef;
  --b-ink-2: #b3b3c0;
  --b-hair: #34343f;
  --b-link: #a9a4ff;

  --font: "A2 Sans", "Wanted Sans Variable", "Wanted Sans", "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "DejaVu Sans Mono", "A2 Sans", "Wanted Sans Variable", monospace;

  --gutter: clamp(16px, 3.4vw, 48px);
  --max: 1320px;
  --r-s: 4px;
  --r-m: 8px;
  --r-l: 14px;
  --out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d0d14;
    --raised: #1b1b26;
    --ink: #f2f2ef;
    --ink-2: #b3b3c0;
    --rule: #f2f2ef;
    --hair: #34343f;
    --link: #a9a4ff;
    --focus: #a9a4ff;
    --letter: #7a72ff;
    --b-bg: #181822;
    --b-raised: #242431;
    --b-hair: #3c3c4a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d0d14;
  --raised: #1b1b26;
  --ink: #f2f2ef;
  --ink-2: #b3b3c0;
  --rule: #f2f2ef;
  --hair: #34343f;
  --link: #a9a4ff;
  --focus: #a9a4ff;
  --letter: #7a72ff;
  --b-bg: #181822;
  --b-raised: #242431;
  --b-hair: #3c3c4a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 68px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 450;
  word-break: keep-all;
  overflow-wrap: break-word;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
html[data-lang="en"] body { line-height: 1.6; }

/* language: both are in the page, one is shown. Swap is instant, nothing moves. */
html[data-lang="ko"] .en, html[data-lang="en"] .ko { display: none !important; }

::selection { background: var(--indigo); color: #fff; }
.hero ::selection, .foot ::selection, .side-c ::selection { background: #fff; color: var(--indigo); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .foot :focus-visible, .side-c :focus-visible, .top:not(.is-stuck) :focus-visible { outline-color: #fff; }
.side-b :focus-visible { outline-color: var(--b-link); }

html { scrollbar-color: var(--ink-2) var(--paper); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, dl, dd, figure, pre { margin: 0; }
p { text-wrap: pretty; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.defs { position: absolute; }
svg { flex: none; }

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

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--r-m); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  height: 68px; padding-inline: var(--gutter);
  color: var(--on-indigo);
  /* always opaque: over the poster it is the poster's indigo, so nothing behind it can show through */
  background: var(--indigo);
  transition: background-color .2s linear, color .2s linear, border-color .2s linear;
  border-bottom: 2px solid transparent;
}
.top.is-stuck { background: var(--paper); color: var(--ink); border-bottom-color: var(--rule); }
.mark { display: block; line-height: 0; padding: 6px 0; text-decoration: none; }
.mark svg { height: 26px; width: auto; display: block; transition: transform .4s var(--out); transform-origin: 14% 50%; }
.mark:hover svg { transform: scale(1.04); }
.top-nav { display: flex; gap: 2px; margin-left: auto; }
.top-nav a {
  text-decoration: none; font-weight: 650; font-size: .98rem;
  padding: 8px 12px; border-radius: var(--r-s);
  background: linear-gradient(currentColor, currentColor) 12px calc(100% - 4px) / 0 2px no-repeat;
  transition: background-size .3s var(--out);
}
.top-nav a:hover, .top-nav a[aria-current="page"] { background-size: calc(100% - 24px) 2px; }
.icon-btn.menu-btn { display: none; }
.when-open { display: none; }
.top.is-open .when-open { display: block; }
.top.is-open .when-closed { display: none; }
.top-ctl { display: flex; align-items: center; gap: 8px; }

.lang {
  display: flex; padding: 0; gap: 0; overflow: hidden;
  border: 2px solid currentColor; border-radius: 6px;
}
.lang button {
  border: 0; background: none; cursor: pointer;
  font-weight: 700; font-size: .86rem; line-height: 1;
  padding: 0 12px; border-radius: 0; height: 38px;
  transition: background-color .15s linear, color .15s linear;
}
.lang button + button { border-left: 2px solid currentColor; }
.lang button:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.lang button[aria-pressed="true"] { background: var(--on-indigo); color: var(--indigo); }
.top.is-stuck .lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lang button:focus-visible { outline-offset: -5px; border-radius: 0; }

.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 2px solid currentColor; border-radius: 6px;
  background: none; cursor: pointer;
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.when-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .when-dark { display: block; }
  :root:not([data-theme="light"]) .when-light { display: none; }
}
:root[data-theme="dark"] .when-dark { display: block; }
:root[data-theme="dark"] .when-light { display: none; }

/* ---------- hero: the poster ---------- */
.hero {
  position: relative;
  background: var(--indigo); color: var(--on-indigo);
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 68px var(--gutter) 0;
  overflow: clip;
}
.hero-in {
  position: relative; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(20px, 3vh, 44px);
}
.hero-title {
  position: relative; z-index: 2;
  font-size: clamp(4.1rem, min(15.2vw, 19.6svh), 16rem);
  font-weight: 900; line-height: .98; letter-spacing: -0.04em;
}
html[data-lang="en"] .hero-title { font-size: clamp(3.5rem, min(12vw, 21svh), 16rem); line-height: .9; letter-spacing: -0.04em; }
.hero-title .ln { display: block; white-space: nowrap; }
.hero-art {
  position: absolute; z-index: 1;
  right: clamp(-28px, -1vw, 0px); top: 50%;
  width: min(45vw, 66svh); max-width: none;
  transform: translateY(-58%);
}
.hero-lead {
  position: relative; z-index: 2;
  max-width: 31em; margin-top: clamp(18px, 3vh, 34px);
  font-size: clamp(1.02rem, 1.25vw, 1.22rem); font-weight: 550; line-height: 1.6;
  color: var(--on-indigo);
}

.index {
  position: relative; z-index: 2; border-top: 3px solid currentColor;
  display: grid; grid-template-columns: 4fr 3fr 3fr;
}
.index-col { padding: 14px 0 16px clamp(14px, 1.8vw, 28px); }
.index-col:first-child { padding-left: 0; }
.index-col + .index-col { border-left: 1px solid color-mix(in srgb, #fff 42%, transparent); }
.index-side {
  display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none;
  font-weight: 650; font-size: .95rem; color: var(--on-indigo-2);
}
.index-side b { font-weight: 900; font-size: 1.35rem; line-height: 1; color: #fff; }
.index ul { display: flex; flex-wrap: wrap; gap: 0 2px; margin: 4px 0 0 -10px; }
.index li a {
  display: inline-block; text-decoration: none;
  font-weight: 800; font-size: clamp(1.1rem, 1.7vw, 1.55rem); letter-spacing: -0.02em; line-height: 1.2;
  padding: 5px 10px; border-radius: var(--r-s);
  transition: background-color .12s linear, color .12s linear;
}
.index li a:hover { background: #fff; color: var(--indigo); }
.index-side:hover { color: #fff; }

/* screenprint grain on the indigo fields: fixed, it never moves */
.hero::after, .foot::after, .side-c::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .22; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.1 -.1'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
.foot, .side-c { position: relative; }
.side, .sec, .ways { overflow-x: clip; }
.foot > *, .side-c > *, .hero-in { position: relative; z-index: 1; }

/* a preview that follows the pointer over product names */
.peek {
  position: fixed; left: 0; top: 0; z-index: 60; width: 300px; aspect-ratio: 16 / 10; pointer-events: none;
  border-radius: var(--r-l); overflow: hidden; background: var(--indigo); outline: 2px solid #0d0d14;
  opacity: 0; translate: var(--x, 0px) var(--y, 0px); scale: .86; rotate: -4deg;
  transition: opacity .22s linear, scale .5s var(--out), rotate .5s var(--out);
}
.peek.is-on { opacity: 1; scale: 1; rotate: -2deg; }
.peek img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.peek img[src*="/p-"], .peek img[src*="hero-cube"] { object-fit: contain; padding: 6%; }

/* the portfolio page opens with a shorter poster */
.hero-work { min-height: min(74svh, 760px); }
.hero-work .hero-in { justify-content: flex-end; padding-top: clamp(40px, 9vh, 120px); }
.hero-work .hero-lead { max-width: 36em; }

/* home poster: three ways on */
.index-home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jump {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  padding: clamp(16px, 2.2vh, 26px) clamp(14px, 1.8vw, 28px);
  font-weight: 800; font-size: clamp(1.15rem, 1.9vw, 1.7rem); letter-spacing: -0.02em; line-height: 1.2;
  transition: background-color .12s linear, color .12s linear;
}
.jump:first-child { padding-left: 0; }
.jump + .jump { border-left: 1px solid color-mix(in srgb, #fff 42%, transparent); }
.jump b { font-weight: 900; }
.jump svg { margin-left: auto; transition: transform .3s var(--out); }
.jump:hover { background: #fff; color: var(--indigo); padding-left: clamp(14px, 1.8vw, 28px); }
.jump:hover svg { transform: translateX(4px); }

/* ---------- home sections ---------- */
.sec { padding-block: clamp(72px, 10vw, 140px); }
.about + .what { padding-top: 0; }
.sec-h { font-size: clamp(2.3rem, 6.2vw, 5.4rem); font-weight: 900; line-height: 1.04; letter-spacing: -0.035em; padding-bottom: clamp(20px, 2.4vw, 32px); }
.sec-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: clamp(20px, 2.4vw, 32px); }
.sec-top .sec-h { padding-bottom: 0; background: none; }
.sec-note { color: var(--ink-2); font-size: 1.05rem; padding-bottom: .5em; }

.about-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 6vw, 96px); padding-top: clamp(32px, 4.4vw, 60px); align-items: start; }
.say { font-size: clamp(1.7rem, 3.5vw, 3.1rem); font-weight: 800; line-height: 1.28; letter-spacing: -0.03em; text-wrap: balance; }
html[data-lang="en"] .say { line-height: 1.16; }
.about-say p + p { margin-top: clamp(20px, 2.6vw, 32px); color: var(--ink-2); max-width: 38em; font-size: 1.1rem; }
.about-facts > div { padding-block: 16px; border-top: 1px solid var(--hair); }
.about-facts > div:first-child { border-top: 3px solid var(--rule); }
.about-facts > div:last-child { border-bottom: 1px solid var(--hair); }
.about-facts dt { font-size: .92rem; font-weight: 650; color: var(--ink-2); }
.about-facts dd { font-weight: 750; font-size: 1.12rem; line-height: 1.6; margin-top: 2px; }
.about-facts a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.about-facts a:hover { text-decoration-thickness: 2.5px; }

.area {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px);
  align-items: center; padding-block: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--hair);
}
.area-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.area-text h3 { display: flex; align-items: baseline; gap: .3em; font-size: clamp(2.4rem, 5.6vw, 4.8rem); font-weight: 900; line-height: 1.04; }
.area-text h3 b { color: var(--letter); font-weight: 900; }
.area-text > p:not(.lead) { color: var(--ink-2); max-width: 36em; }
.area-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.area-list a {
  display: inline-block; text-decoration: none; font-weight: 750; font-size: 1.02rem; line-height: 1.2;
  padding: 9px 12px; border: 2px solid var(--ink); border-radius: 6px;
  transition: background-color .12s linear, color .12s linear;
}
.area-list a:hover { background: var(--ink); color: var(--paper); }
.also { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 12px clamp(24px, 4vw, 64px); align-items: start; padding-top: clamp(28px, 3.6vw, 44px); }
.also h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); grid-row: span 2; }
.also p { color: var(--ink-2); max-width: 36em; }
.also .area-list { grid-column: 2; margin-top: 0; }

.picks .btn { flex: none; margin-bottom: .5em; }
.pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(16px, 2.4vw, 32px); padding-top: clamp(32px, 4.4vw, 60px); }
.pick { display: block; text-decoration: none; }
.pick { perspective: 1100px; }
.pick-img { display: block; overflow: hidden; border-radius: var(--r-l); background: #0d0d14; outline: 1px solid var(--hair); outline-offset: -1px;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--out); will-change: transform; }
.pick img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; transition: transform .9s var(--out); }
.pick:hover img { transform: scale(1.05); }
.pick-name { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 850; letter-spacing: -0.03em; line-height: 1.15; }
.pick-name svg { transition: transform .3s var(--out); }
.pick:hover .pick-name svg { transform: translateX(6px); }
.pick-what { display: block; margin-top: 6px; color: var(--ink-2); max-width: 32em; }

.tech-list li {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 8px clamp(16px, 2.6vw, 40px);
  align-items: baseline; padding-block: clamp(16px, 2vw, 24px); border-bottom: 1px solid var(--hair);
}
.tech-list h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.tech-what { font-weight: 700; font-size: 1.1rem; }
.tech-where { color: var(--ink-2); }

address { font-style: normal; }
.about-facts address { font-size: 1rem; font-weight: 650; line-height: 1.55; }
.contact {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 6vw, 96px);
  border-top: 3px solid #fff; padding-top: clamp(24px, 3vw, 40px); align-items: start;
}
.contact-k { font-size: .95rem; font-weight: 650; color: var(--on-indigo-2); }
.mail {
  display: inline-flex; align-items: center; gap: clamp(8px, 1.2vw, 16px); margin-top: 4px; text-decoration: none;
  font-weight: 900; font-size: clamp(1.9rem, 6vw, 5rem); letter-spacing: -0.04em; line-height: 1.1; overflow-wrap: anywhere;
}
.mail span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 .06em no-repeat; transition: background-size .45s var(--out); }
.mail:hover span { background-size: 100% .06em; }
.mail svg { transition: transform .35s var(--out); }
.mail:hover svg { transform: translate(4px, -4px); }
.contact-note { margin-top: 14px; max-width: 30em; color: var(--on-indigo-2); }
.contact-office address { margin-top: 6px; font-weight: 750; font-size: 1.2rem; line-height: 1.5; }
.outs-h { font-size: .95rem; font-weight: 650; letter-spacing: 0; color: var(--on-indigo-2); margin: clamp(40px, 5vw, 72px) 0 10px; }
.outs { border-top-width: 1px; }
.out-name { font-size: clamp(1.25rem, 2.4vw, 1.9rem); }

/* ---------- sides ---------- */
.side { padding-block: clamp(72px, 10vw, 140px) clamp(64px, 8vw, 120px); }
.side-b {
  background: var(--b-bg); color: var(--b-ink);
  --paper: var(--b-bg); --raised: var(--b-raised); --ink: var(--b-ink); --ink-2: var(--b-ink-2);
  --rule: var(--b-ink); --hair: var(--b-hair); --link: var(--b-link);
}
.side-b ::selection { background: var(--b-link); color: #0d0d14; }
.side-c {
  background: var(--indigo); color: #fff;
  --paper: var(--indigo); --raised: var(--c-raised); --ink: #fff; --ink-2: var(--on-indigo-2);
  --rule: #fff; --hair: color-mix(in srgb, #fff 34%, transparent); --link: #fff; --letter: #fff;
}

.side-head {
  display: grid; grid-template-columns: auto 1fr; column-gap: clamp(16px, 2.6vw, 40px);
  align-items: end;
  padding-bottom: clamp(20px, 2.4vw, 32px);
}
.side-letter {
  grid-row: 1 / span 2;
  font-weight: 900; font-size: clamp(7rem, 19vw, 17rem); line-height: .74; letter-spacing: -0.04em;
  color: var(--letter);
}
.side-b .side-letter { color: var(--b-link); }
.side-head h2 {
  font-size: clamp(2.3rem, 6.2vw, 5.4rem); font-weight: 900; line-height: 1.04; letter-spacing: -0.035em;
  text-wrap: balance;
}
.side-head p { max-width: 36em; margin-top: 10px; color: var(--ink-2); font-size: 1.1rem; }

h3 { font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 850; line-height: 1.1; letter-spacing: -0.03em; }
h4 { font-size: clamp(1.35rem, 2.1vw, 1.8rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
.lead { font-size: clamp(1.15rem, 1.5vw, 1.35rem); font-weight: 700; line-height: 1.45; letter-spacing: -0.01em; }
.note { font-size: .92rem; color: var(--ink-2); line-height: 1.6; }
.note a, p a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

.stamps { display: flex; flex-wrap: wrap; gap: 6px; }
.stamp {
  display: inline-block; font-size: .8rem; font-weight: 750; line-height: 1;
  padding: 6px 8px 5px; border: 2px solid currentColor; border-radius: 3px;
}
.stamp.is-quiet { border-color: var(--hair); color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  font-weight: 750; font-size: 1rem; line-height: 1.2; text-decoration: none;
  padding: 14px 18px; border-radius: var(--r-m);
  transition: background-color .15s linear, transform .25s var(--out);
}
.btn:hover { background: var(--indigo); color: #fff; }
.side-b .btn:hover { background: var(--b-link); color: #0d0d14; }
.side-c .btn { background: #fff; color: var(--indigo); }
.side-c .btn:hover { background: #0d0d14; color: #fff; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn svg { transition: transform .25s var(--out); }
.btn:hover svg { transform: translate(2px, -2px); }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--link); font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 1.5px;
  overflow-wrap: anywhere;
}
.link { text-decoration: none; }
.link span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px; transition: background-size .3s var(--out); }
.link:hover span { background-size: 100% 100%; color: var(--paper); }
.link svg { transition: transform .25s var(--out); }
.link:hover svg { transform: translate(2px, -2px); }

.shot img { width: 100%; border-radius: var(--r-l); background: #0d0d14; }
.side-a .shot img, .ways .shot img { outline: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); outline-offset: -1px; }
.side-b .shot img { outline: 1px solid var(--b-hair); outline-offset: -1px; }
.side-c .shot img, .side-c .phone img { outline: 2px solid #0d0d14; outline-offset: -1px; }
.shot figcaption { margin-top: 10px; font-size: .9rem; color: var(--ink-2); }

/* plate: the product's print, two inks on an indigo tile */
.plate { background: var(--indigo); border-radius: var(--r-l); aspect-ratio: 1; overflow: hidden; }
.plate img { width: 100%; height: 100%; object-fit: contain; padding: 7%; transition: transform .5s var(--out); }
.side-c .plate { background: none; border-radius: 0; overflow: visible; }
.side-c .plate img { padding: 0; }
.prod:hover .plate img { transform: rotate(-2deg) scale(1.03); }

/* lead product: print and words, then the real screens underneath */
.prod-lead { padding-top: clamp(36px, 5vw, 64px); }
.prod-lead + .prod-lead { margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--hair); }
.prod-head {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.prod-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.prod-text h3 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-weight: 900; line-height: 1; }
.prod-text .lead { margin-top: 6px; max-width: 26em; text-wrap: balance; }
.prod-text .btn { margin-top: 8px; }
.prod-text p:not(.lead):not(.stamps) { color: var(--ink-2); max-width: 36em; }

.gallery { display: grid; gap: clamp(10px, 1.6vw, 20px); margin-top: clamp(28px, 4vw, 56px); align-items: start; }
.gallery-eklise { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.gallery-eklise .g-main { grid-row: span 2; }
.gallery-pair { grid-template-columns: minmax(0, 1.946fr) minmax(0, 1.8fr); }
.gallery-wide { grid-template-columns: minmax(0, 1.923fr) minmax(0, 1.307fr); }

/* Portl: words on the left, three phone screens on the right */
.prod-portl { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.prod-portl .prod-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.prod-portl .plate { width: min(62%, 300px); margin-left: -3%; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 18px); align-items: start; }
.phone img { width: 100%; aspect-ratio: 585 / 1266; object-fit: cover; object-position: top; border-radius: var(--r-l); background: #0d0d14; }
.phone figcaption { margin-top: 10px; font-size: .9rem; color: var(--ink-2); }
.phone:nth-child(2) { margin-top: clamp(16px, 3vw, 44px); }

/* motion: the flipbooks */
.motion { margin-top: clamp(56px, 7vw, 96px); }
.motion-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(12px, 4vw, 64px); align-items: start; }
.motion-text p { color: var(--ink-2); max-width: 36em; }
.flips {
  display: grid; grid-template-columns: 23fr 22fr 32fr; gap: clamp(10px, 1.6vw, 20px);
  margin-top: clamp(20px, 2.6vw, 32px); align-items: end;
}
.flip-stage { border-radius: var(--r-l); overflow: hidden; background: #a9c7ff; }
.flip-film {
  width: 100%; background-repeat: no-repeat; background-size: calc(var(--n) * 100%) 100%;
  background-position: 0 0;
  animation: flip calc(var(--n) * 1s / var(--fps)) steps(var(--n), jump-none) infinite;
  animation-play-state: paused;
}
.flip.is-on .flip-film { animation-play-state: running; }
@keyframes flip { to { background-position: 100% 0; } }
.flip-combo .flip-film { --n: 52; --fps: 13; aspect-ratio: 230 / 250; }
.flip-jump .flip-film { --n: 56; --fps: 13; aspect-ratio: 220 / 270; }
.flip-face .flip-film { --n: 28; --fps: 12; aspect-ratio: 480 / 360; }
/* the film strips are heavy, so they are fetched only when the section is near */
.flip-combo.is-near .flip-film, html:not(.js) .flip-combo .flip-film { background-image: url("../img/flip-combo.webp"); }
.flip-jump.is-near .flip-film, html:not(.js) .flip-jump .flip-film { background-image: url("../img/flip-jump.webp"); }
.flip-face.is-near .flip-film, html:not(.js) .flip-face .flip-film { background-image: url("../img/flip-face.webp"); }
.flip figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 8px; font-size: .92rem; font-weight: 650; min-height: 40px;
}
.flip-btn {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 2px solid var(--ink); border-radius: 6px; background: none; cursor: pointer;
}
.flip-btn:hover { background: var(--ink); color: var(--paper); }
.when-paused { display: none; }
.flip:not(.is-on) .when-paused { display: block; }
.flip:not(.is-on) .when-playing { display: none; }
html:not(.js) .flip-btn { display: none; }

/* facts */
.facts {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(56px, 7vw, 96px); align-items: start;
}
.fact h4 { margin-bottom: 14px; }
.fact p + p { margin-top: 10px; }
.fact-start { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.fact-start-text { max-width: 40em; }
.fact-start-text p:not(.note) { color: var(--ink-2); }

.bars { margin-bottom: 14px; }
.bar-row { display: grid; grid-template-columns: 1fr; gap: 4px; padding-block: 10px; border-top: 1px solid var(--hair); }
.bar-row:last-child { border-bottom: 1px solid var(--hair); }
.bar-row dt { font-weight: 650; font-size: .95rem; }
.bar-row dd { display: flex; align-items: center; gap: 12px; }
.bar { height: 22px; width: var(--v); min-width: 6px; max-width: calc(100% - 4.2em); background: var(--ink-2); border-radius: 3px; transform-origin: left center; }
.is-ours .bar { background: var(--indigo); }
.bar-row b { font-weight: 850; font-size: 1.5rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }

/* rows: the smaller products, set as a list with heavy rules */
.rows { margin-top: clamp(56px, 7vw, 96px); }
.prod-row {
  display: grid; grid-template-columns: clamp(120px, 15vw, 200px) minmax(0, 3fr) minmax(0, 6fr);
  gap: clamp(16px, 2.6vw, 40px); align-items: start;
  padding-block: clamp(26px, 3.4vw, 44px); border-bottom: 1px solid var(--hair);
}
.prod-row:last-child { border-bottom: 0; padding-bottom: 0; }
.prod-plain .row-name { grid-column: 1 / span 2; }
.row-name { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.row-name h3 { display: flex; align-items: center; gap: 12px; }
.mini-logo { width: 40px; height: 40px; border-radius: var(--r-m); flex: none; }
.row-body { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.row-body > p:not(.lead) { color: var(--ink-2); max-width: 38em; }
.row-body .shot { width: 100%; margin-top: 8px; }
.addr { font-family: var(--mono); font-size: .94em; color: var(--ink); background: var(--raised); padding: 2px 6px; border-radius: 3px; white-space: nowrap; }

.code {
  width: 100%; overflow-x: auto;
  font-family: var(--mono); font-size: .88rem; line-height: 1.75;
  background: var(--raised); color: var(--ink);
  padding: 16px 18px; border-radius: var(--r-m);
  white-space: pre; word-break: normal; overflow-wrap: normal;
}
.code .ko { font-family: var(--font); font-size: 1.04em; }
.c-dim { color: var(--ink-2); user-select: none; }

/* heavy rules: a background strip, so it can be drawn in */
[data-rule] { background: linear-gradient(var(--rule), var(--rule)) 0 100% / 100% 3px no-repeat; }
.rows[data-rule] { background-position: 0 0; }

/* how we work */
.ways { padding-block: clamp(72px, 10vw, 140px); }
.ways-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ways h2 { font-size: clamp(2.3rem, 6.2vw, 5.4rem); font-weight: 900; line-height: 1.04; letter-spacing: -0.035em; padding-bottom: clamp(20px, 2.4vw, 32px); }
.ways-list li {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(12px, 4vw, 64px);
  align-items: center; padding-block: clamp(22px, 3vw, 40px); border-bottom: 1px solid var(--hair);
}
.ways-list h3 { font-size: clamp(1.6rem, 3.3vw, 2.8rem); font-weight: 850; line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }
.ways-list p { color: var(--ink-2); max-width: 30em; padding-bottom: .2em; }

/* footer: indigo again, the name cut by the bottom edge */
.foot { background: var(--indigo); color: var(--on-indigo); overflow: clip; }
.ways + .foot, .foot { border-top: 0; }
.foot-in { padding-top: clamp(56px, 8vw, 112px); }
.foot-h { font-size: clamp(2.3rem, 6.2vw, 5.4rem); font-weight: 900; line-height: 1.04; letter-spacing: -0.035em; padding-bottom: clamp(20px, 2.4vw, 32px); }
.outs { border-top: 1px solid color-mix(in srgb, #fff 42%, transparent); }
.outs a {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr) auto; align-items: center; gap: 16px;
  padding: clamp(12px, 1.4vw, 18px) 0; text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, #fff 42%, transparent);
  transition: background-color .15s linear, color .15s linear, padding .35s var(--out);
}
.out-name { font-weight: 850; font-size: clamp(1.25rem, 2.4vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.1; overflow-wrap: anywhere; }
.out-what { font-weight: 600; font-size: 1rem; color: var(--on-indigo-2); transition: color .15s linear; }
.outs svg { transition: transform .35s var(--out); }
.outs a:hover { background: #fff; color: var(--indigo); padding-inline: clamp(10px, 1.4vw, 20px); }
.outs a:hover .out-what { color: var(--indigo); }
.outs a:hover svg { transform: translate(3px, -3px); }
.foot-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: clamp(40px, 5vw, 72px); }
.foot-nav h3 { font-size: .95rem; font-weight: 650; letter-spacing: 0; color: var(--on-indigo-2); margin-bottom: 8px; line-height: 1.4; }
.foot-nav h3 b { font-weight: 900; color: #fff; margin-right: 4px; }
.foot-nav a { display: inline-block; font-weight: 750; font-size: 1.12rem; text-decoration: none; padding: 5px 0;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 3px) / 0 2px no-repeat; transition: background-size .3s var(--out); }
.foot-nav a:hover { background-size: 100% 2px; }
.foot-base { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: clamp(36px, 5vw, 64px); }
.foot-legal { font-size: .86rem; color: var(--on-indigo-2); max-width: 62em; line-height: 1.6; }
.to-top {
  display: inline-flex; align-items: center; gap: 8px; flex: none; white-space: nowrap;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  padding: 10px 14px; border: 2px solid currentColor; border-radius: 6px;
  transition: background-color .15s linear, color .15s linear;
}
.to-top:hover { background: #fff; color: var(--indigo); }
.to-top svg { transition: transform .25s var(--out); }
.to-top:hover svg { transform: translateY(-2px); }
.foot-mark { padding: 0 var(--gutter) clamp(28px, 4vw, 56px); margin-top: clamp(36px, 5vw, 72px); line-height: 0; user-select: none; }
.foot-mark svg { width: 100%; height: auto; display: block; }

/* ---------- motion ----------
   Everything here is off when the visitor asks for reduced motion.
   Only transform, opacity and clip-path move. One thing loops: the cube, very slowly. */
@media (prefers-reduced-motion: no-preference) {
  /* arrival: the indigo sheet is pulled down, then the title is printed line by line */
  .js .hero { animation: sheet .9s var(--out) both; }
  .js .hero-title .ln { animation: ink-in 1.15s var(--out) both; animation-delay: .22s; }
  .js .hero-title .ln:nth-child(2) { animation-delay: .32s; }
  .js .hero-title .ln:nth-child(3) { animation-delay: .42s; }
  .js .hero-art { animation: art-in 1.3s var(--out) .3s both, drift 16s ease-in-out 1.6s infinite alternate; }
  .js .hero-lead { animation: rise .9s var(--out) .62s both; }
  .js .hero .index { animation: rule-in 1s var(--out) .7s both; }
  .js .hero .index > * { animation: rise .8s var(--out) both; animation-delay: .86s; }
  .js .hero .index > *:nth-child(2) { animation-delay: .94s; }
  .js .hero .index > *:nth-child(3) { animation-delay: 1.02s; }
  .js .top { animation: fade .6s linear .5s both; }
  @keyframes sheet { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes ink-in {
    from { clip-path: inset(0 0 100% 0); transform: translateY(34%); }
    to { clip-path: inset(-10% -10% -10% -10%); transform: none; }
  }
  /* wide screens also thicken the stroke as it prints; phones skip it, it costs a layout per frame */
  @media (min-width: 761px) {
    .js .hero-title { animation: ink-weight 1.3s var(--out) .22s both; }
    @keyframes ink-weight { from { font-weight: 420; letter-spacing: -0.012em; } to { font-weight: 900; letter-spacing: -0.04em; } }
  }
  @keyframes art-in {
    from { opacity: 0; transform: translateY(-46%) rotate(9deg) scale(.86); }
    to { opacity: 1; transform: translateY(-58%) rotate(0) scale(1); }
  }
  @keyframes drift { from { translate: 0 0; rotate: 0deg; } to { translate: 0 -12px; rotate: 1.4deg; } }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  @keyframes rule-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }

  /* on scroll, once each: rules are drawn, prints are pulled, bars grow */
  [data-rule] { transition: background-size 1.1s var(--out); }
  .reveal [data-rule]:not(.in) { background-size: 0 3px; }
  [data-print] img { transition: clip-path 1s var(--out), transform 1s var(--out); clip-path: inset(0 0 0 0); }
  .reveal [data-print]:not(.in) img { clip-path: inset(0 0 100% 0); transform: rotate(6deg) scale(.9); }
  .bar { transition: transform 1.1s var(--out); }
  .is-ours .bar { transition-delay: .12s; }
  .reveal .bars:not(.in) .bar { transform: scaleX(0); }

  /* words rise, headings are unmasked, screens are uncovered from the top */
  .rv { transition: opacity .9s var(--out) var(--d, 0s), transform .9s var(--out) var(--d, 0s); }
  .reveal .rv:not(.in) { opacity: 0; transform: translateY(28px); }
  .rv-mask { transition: clip-path 1s var(--out) var(--d, 0s), transform 1s var(--out) var(--d, 0s); clip-path: inset(-12% -4% -12% -4%); }
  .reveal .rv-mask:not(.in) { clip-path: inset(0 -4% 100% -4%); transform: translateY(42%); }
  .rv-clip { transition: clip-path 1.1s var(--out) var(--d, 0s); clip-path: inset(0 0 0 0 round var(--r-l)); }
  .rv-clip img { transition: transform 1.4s var(--out) var(--d, 0s); }
  .reveal .rv-clip:not(.in) { clip-path: inset(0 0 100% 0 round var(--r-l)); }
  .reveal .rv-clip:not(.in) img { transform: scale(1.12); }
  .pick .rv-clip.in img, .pick:hover .rv-clip img { transition-delay: 0s; }

  /* tied to scrolling (set from site.js, only for what is on screen): big letters, prints and the wordmark drift */
  .side-letter, .plate, .foot-mark { translate: 0 var(--py, 0px); }

  /* language, theme and page changes: a short cross-fade, the new page rising slightly */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .28s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-in .5s var(--out) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .top-ctl { margin-left: auto; }
  .js .icon-btn.menu-btn { display: grid; }
  .top-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: 4px var(--gutter) 14px;
    background: var(--paper); color: var(--ink); border-bottom: 2px solid var(--rule);
  }
  .top.is-open .top-nav { display: flex; }
  .top.is-open { background: var(--paper); color: var(--ink); border-bottom-color: var(--rule); }
  .top.is-open .lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
  .top-nav a { font-size: 1.25rem; font-weight: 800; padding: 13px 0; border-radius: 0; border-bottom: 1px solid var(--hair); background-position: 0 calc(100% - 8px); }
  .top-nav a:last-child { border-bottom: 0; }
  .top-nav a:hover, .top-nav a[aria-current="page"] { background-size: 0 2px; }
  .top-nav a[aria-current="page"] { color: var(--link); }
  .about-in, .contact { grid-template-columns: minmax(0, 1fr); }
  .area { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); align-items: start; }
  .tech-list li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tech-list h3 { grid-column: 1 / -1; }
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts, .motion-text { grid-template-columns: minmax(0, 1fr); }
  .prod-head { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); align-items: start; }
  .prod-portl { grid-template-columns: minmax(0, 1fr); }
  .prod-portl .prod-head { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); }
  .prod-portl .plate { width: 100%; margin-left: 0; }
  .prod-row { grid-template-columns: clamp(96px, 16vw, 140px) minmax(0, 1fr); }
  .prod-row .row-name { align-self: center; }
  .row-body { grid-column: 1 / -1; }
  .prod-plain { grid-template-columns: minmax(0, 1fr); }
  .prod-plain .row-name { grid-column: auto; }
  .ways-list li { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 10px; }
  .ways-list p { padding-bottom: 0; }
}
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  /* tall screens: the poster stacks, title first, the cube under it */
  .hero-in { justify-content: flex-start; padding-top: 28px; padding-bottom: 28px; }
  .hero-title { font-size: clamp(3.6rem, 21.5vw, 10.5rem); }
  html[data-lang="en"] .hero-title { font-size: clamp(3rem, 17.6vw, 9rem); }
  .hero-art { position: relative; top: auto; right: auto; transform: none; width: min(78vw, 50svh); margin: 12px -4vw -30px auto; order: 3; }
  .hero-lead { order: 2; }
  @keyframes art-in { from { opacity: 0; transform: rotate(9deg) scale(.86); } to { opacity: 1; transform: none; } }
}
@media (max-width: 760px) {
  .top { gap: 10px; height: 60px; }
  .plate, .side-letter { translate: none !important; }   /* stacked layout: nothing may drift onto the text below */
  .mark svg { height: 21px; }
  html { scroll-padding-top: 60px; }
  .hero { padding-top: 60px; }
  .index { grid-template-columns: minmax(0, 1fr); }
  .jump, .jump:first-child, .jump:hover { padding: 14px 0; }
  .jump:hover { padding-inline: 10px; }
  .jump + .jump { border-left: 0; border-top: 1px solid color-mix(in srgb, #fff 42%, transparent); }
  .hero-work { min-height: 0; }
  .hero-work .hero-in { padding-top: 40px; }
  .sec-top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sec-note { padding-bottom: 0; }
  .area { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .area .plate { width: min(64%, 260px); }
  .also { grid-template-columns: minmax(0, 1fr); }
  .also h3 { grid-row: auto; }
  .also .area-list { grid-column: auto; }
  .pick-grid { grid-template-columns: minmax(0, 1fr); }
  .tech-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .lang button { height: 34px; font-size: .8rem; }
  .icon-btn { width: 38px; height: 38px; }
  .top-ctl { gap: 6px; }
  .index-col { padding: 10px 0 12px; }
  .index-col + .index-col { border-left: 0; border-top: 1px solid color-mix(in srgb, #fff 42%, transparent); }
  .index li a { padding: 6px 10px; font-size: 1.2rem; }
  .side-head { grid-template-columns: minmax(0, 1fr); }
  .side-letter { grid-row: auto; font-size: 8.5rem; margin-bottom: 14px; }
  .prod-head, .prod-portl .prod-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .prod-lead .plate, .prod-portl .plate { width: min(64%, 260px); }
  .gallery-eklise, .gallery-pair, .gallery-wide { grid-template-columns: minmax(0, 1fr); }
  .gallery-eklise { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gallery-eklise .g-main { grid-column: 1 / -1; grid-row: auto; }
  .phones { gap: 8px; }
  .phone:nth-child(2) { margin-top: 0; }
  .phone img { border-radius: 10px; }
  .phone figcaption, .gallery-eklise figcaption { font-size: .82rem; line-height: 1.45; }
  .flips { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .flip-face { grid-column: 1 / -1; }
  .outs a { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .out-what { grid-column: 1; grid-row: 2; font-size: .92rem; }
  .outs svg { grid-row: 1 / span 2; grid-column: 2; }
  .foot-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-base { flex-direction: column; align-items: flex-start; }
  .lang button { padding: 0 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
@media print {
  .top, .flip-btn, .to-top, .peek { display: none; }
  .hero { min-height: 0; }
}
