@font-face {
  font-family: "Aino";
  src: url("/fonts/Aino-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Aino";
  src: url("/fonts/Aino-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Aino Headline";
  src: url("/fonts/Aino-Headline.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #e9e8e2;
  --paper-deep: #d7d6d0;
  --ink: #111624;
  --muted: #676a70;
  --line: rgba(17, 22, 36, 0.14);
  --card: rgba(250, 250, 247, 0.66);
  --stage: rgba(255, 255, 255, 0.58);
  --stage-line: rgba(255, 255, 255, 0.82);
  --well: rgba(255, 255, 255, 0.68);
  --shadow: 0 22px 65px rgba(34, 39, 55, 0.11), 0 2px 7px rgba(34, 39, 55, 0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 5%, rgba(255, 255, 255, 0.92), transparent 27rem),
    linear-gradient(145deg, var(--paper), #e3e2dc 50%, #edebe5);
  font-family: "Aino", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: color .35s ease, background .35s ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: .35;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

body[data-surface="ink"] {
  --paper: #101726;
  --paper-deep: #080d18;
  --ink: #f3f1e9;
  --muted: #a2a8b5;
  --line: rgba(255, 255, 255, 0.13);
  --card: rgba(18, 28, 47, 0.72);
  --stage: rgba(3, 10, 25, 0.44);
  --stage-line: rgba(255, 255, 255, 0.12);
  --well: rgba(2, 8, 20, 0.48);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.2);
  background: radial-gradient(circle at 15% 5%, #25344e, transparent 29rem), linear-gradient(145deg, var(--paper), var(--paper-deep));
}

button, a { font: inherit; }

.lab-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 12px clamp(20px, 4vw, 68px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: blur(22px) saturate(150%);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.wordmark img { border-radius: 10px; box-shadow: 0 4px 12px rgba(9, 25, 60, .18); }
.wordmark span { font-size: 18px; font-weight: 700; letter-spacing: -.035em; }
.wordmark i { padding-left: 11px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }

.surface-switcher { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 99px; }
.surface-switcher > span { padding: 0 9px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.surface-button { padding: 7px 12px; border: 0; border-radius: 99px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; }
.surface-button.is-active { color: #111624; background: #fbfaf5; box-shadow: 0 2px 8px rgba(16, 20, 31, .1); }

main { width: min(1500px, 100%); margin: 0 auto; padding: 0 clamp(18px, 4vw, 68px); }

.intro {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 8vw;
  align-items: end;
  min-height: min(620px, 74vh);
  padding: clamp(80px, 11vw, 150px) 0 clamp(72px, 9vw, 124px);
}

.intro > *, .concept-card, .concept-footer > * { min-width: 0; }

.kicker { margin: 0 0 28px; color: var(--muted); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.kicker span { display: inline-block; width: 24px; height: 1px; margin: 0 10px 3px 0; background: currentColor; }

.intro h1 {
  margin: 0;
  font: 400 clamp(64px, 9.4vw, 144px)/.82 "Aino Headline", sans-serif;
  letter-spacing: -.067em;
}

.intro h1 em { color: var(--muted); font-style: normal; }
.intro-note { padding-bottom: 5px; }
.intro-note > p { max-width: 520px; margin: 0 0 32px; color: var(--muted); font-size: clamp(17px, 1.6vw, 22px); line-height: 1.48; }
.intro-note strong { color: var(--ink); font-weight: 400; }
.principles { display: flex; flex-wrap: wrap; gap: 8px; }
.principles span { padding: 9px 13px; border: 1px solid var(--line); border-radius: 99px; font-size: 11px; letter-spacing: .04em; }

.concept-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 30px); }
.concept-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(24px, 3vw, 40px);
  background: var(--card);
  box-shadow: var(--shadow);
  animation: rise .8s cubic-bezier(.22, .7, .2, 1) both;
  animation-delay: var(--delay);
  backdrop-filter: blur(18px);
}

.concept-meta { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start; padding: clamp(22px, 3vw, 38px); }
.concept-number { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 11px; }
.concept-meta p { margin: 2px 0 3px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.concept-meta h2 { margin: 0; font: 400 clamp(26px, 3vw, 40px)/1 "Aino Headline", sans-serif; letter-spacing: -.035em; }
.verdict { padding: 7px 10px; border-radius: 99px; color: var(--muted); background: var(--well); font-size: 10px; letter-spacing: .04em; white-space: nowrap; }

.hero-stage {
  position: relative;
  display: grid;
  min-height: clamp(330px, 43vw, 640px);
  margin: 0 clamp(12px, 2vw, 24px);
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--stage-line);
  border-radius: clamp(18px, 2.5vw, 30px);
  background: var(--stage);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.5), inset 0 -30px 80px rgba(28, 38, 62, .05);
}

.halo { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: rgba(63, 124, 255, .12); filter: blur(55px); }
.hero-icon { position: relative; z-index: 1; width: min(82%, 500px); height: auto; filter: drop-shadow(0 25px 25px rgba(13, 28, 59, .14)); transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .55s ease; }
.concept-card:hover .hero-icon { transform: translateY(-8px) scale(1.025); filter: drop-shadow(0 34px 34px rgba(13, 28, 59, .19)); }
.scale-note { position: absolute; right: 18px; bottom: 15px; color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }

.concept-footer { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; padding: clamp(24px, 3vw, 38px); }
.concept-footer > p { max-width: 390px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.48; }
.size-rack { display: flex; align-items: end; gap: 10px; }
.size-rack figure { display: grid; gap: 7px; justify-items: center; margin: 0; }
.icon-well { display: grid; width: calc(var(--size) + 12px); height: calc(var(--size) + 12px); place-items: center; border: 1px solid var(--line); border-radius: calc(var(--size) * .24 + 5px); background: var(--well); }
.icon-well img { display: block; width: var(--size); height: var(--size); }
.size-rack figcaption { color: var(--muted); font-size: 8px; letter-spacing: .08em; }

.object-study { margin-top: clamp(110px, 15vw, 220px); }

.object-intro {
  display: grid;
  grid-template-columns: 1.05fr .65fr;
  gap: 10vw;
  align-items: end;
  margin-bottom: clamp(54px, 8vw, 110px);
}

.object-intro h2 { margin: 0; font: 400 clamp(58px, 8.2vw, 124px)/.85 "Aino Headline", sans-serif; letter-spacing: -.06em; }
.object-intro h2 em { color: #1672df; font-style: normal; }
.object-intro > p { max-width: 500px; margin: 0 0 8px; color: var(--muted); font-size: clamp(17px, 1.6vw, 22px); line-height: 1.5; }

.object-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 30px); }

.object-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(24px, 3vw, 40px);
  background: var(--card);
  box-shadow: var(--shadow);
  animation: rise .8s cubic-bezier(.22, .7, .2, 1) both;
  animation-delay: var(--delay);
  backdrop-filter: blur(18px);
}

.object-card.is-featured { grid-column: 1 / -1; }

.object-copy {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 16px;
  align-items: center;
  padding: clamp(22px, 3vw, 38px);
}

.object-copy .concept-number { grid-row: 1 / 3; }
.object-copy p { margin: 0; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.object-copy h3 { margin: 0; font: 400 clamp(28px, 3vw, 42px)/1 "Aino Headline", sans-serif; letter-spacing: -.035em; }
.object-copy .verdict { grid-column: 3; grid-row: 1 / 3; }

.object-stage {
  position: relative;
  display: grid;
  min-height: clamp(350px, 29vw, 470px);
  margin: 0 clamp(12px, 2vw, 24px);
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--stage-line);
  border-radius: clamp(18px, 2.5vw, 30px);
  background:
    radial-gradient(circle at 50% 43%, rgba(255,255,255,.82), rgba(255,255,255,.22) 58%, transparent),
    var(--stage);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.5), inset 0 -30px 80px rgba(28, 38, 62, .05);
}

body[data-surface="ink"] .object-stage { background: radial-gradient(circle at 50% 43%, rgba(45,66,105,.56), rgba(3,10,25,.15) 62%), var(--stage); }

.object-gridlines {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, #000 0, transparent 70%);
}

.object-stage > img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(90%, 440px);
  max-height: 440px;
  object-fit: contain;
  filter: drop-shadow(0 28px 24px rgba(13, 25, 48, .22));
  transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .55s ease;
}

.object-card.is-featured .object-stage { min-height: clamp(500px, 56vw, 810px); }
.object-card.is-featured .object-stage > img { width: min(78%, 780px); max-height: 740px; }
.object-card:hover .object-stage > img { transform: translateY(-8px) rotate(-.6deg) scale(1.02); filter: drop-shadow(0 36px 30px rgba(13,25,48,.28)); }

.object-footer { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; padding: clamp(24px, 3vw, 38px); }
.object-card:not(.is-featured) .object-footer { grid-template-columns: 1fr; }
.object-footer > p { max-width: 470px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.object-sizes { display: flex; align-items: end; gap: 9px; }
.object-sizes figure { display: grid; gap: 7px; justify-items: center; margin: 0; }
.object-sizes figure > span { display: grid; width: 108px; height: 108px; place-items: center; border: 1px solid var(--line); border-radius: 18px; background: var(--well); }
.object-sizes figure:nth-child(2) > span { width: 76px; height: 76px; border-radius: 14px; }
.object-sizes figure:nth-child(3) > span { width: 44px; height: 44px; border-radius: 10px; }
.object-sizes figure:nth-child(4) > span { width: 32px; height: 32px; border-radius: 8px; }
.object-sizes img { display: block; width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; }
.object-sizes figcaption { color: var(--muted); font-size: 8px; letter-spacing: .08em; }

.context-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9vw;
  align-items: center;
  margin: clamp(80px, 12vw, 170px) 0;
  padding: clamp(34px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.context-strip h2 { margin: 0; font: 400 clamp(34px, 4vw, 60px)/1.04 "Aino Headline", sans-serif; letter-spacing: -.045em; }
.context-examples { display: grid; gap: 20px; }
.browser-chip, .app-row { border: 1px solid var(--stage-line); background: var(--card); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.browser-chip { display: grid; grid-template-columns: auto auto 1fr auto; gap: 11px; align-items: center; padding: 12px 16px; border-radius: 14px; color: var(--muted); font-size: 12px; }
.browser-chip img { border-radius: 5px; }
.browser-chip b { font-weight: 400; }
.browser-dots { display: flex; gap: 4px; margin-right: 6px; }
.browser-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.app-row { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 22px; }
.app-row img { border-radius: 15px; box-shadow: 0 7px 17px rgba(12, 26, 56, .2); }
.app-row > span { display: grid; flex: 1; gap: 3px; }
.app-row strong { font-size: 14px; }
.app-row small { color: var(--muted); font-size: 11px; }
.app-row button { padding: 8px 15px; border: 0; border-radius: 99px; color: #fff; background: #1665de; font-size: 11px; font-weight: 700; }

.lab-footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px clamp(20px, 4vw, 68px); border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.lab-footer p { margin: 0; }

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

@media (max-width: 1000px) {
  .intro { grid-template-columns: 1fr; gap: 50px; }
  .concept-grid { grid-template-columns: 1fr; }
  .object-intro { grid-template-columns: 1fr; gap: 50px; }
  .object-grid { grid-template-columns: 1fr; }
  .object-card.is-featured { grid-column: auto; }
  .hero-stage { min-height: min(78vw, 650px); }
  .context-strip { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 620px) {
  .lab-header { min-height: 64px; }
  .wordmark i, .surface-switcher > span { display: none; }
  .surface-button { padding: 7px 10px; }
  .intro { min-height: auto; padding: 94px 2px 72px; }
  .intro h1 { font-size: clamp(54px, 17.5vw, 78px); }
  .intro-note > p { font-size: 17px; }
  .concept-meta { grid-template-columns: auto 1fr; gap: 13px; }
  .verdict { grid-column: 2; justify-self: start; }
  .hero-stage { min-height: 86vw; }
  .hero-icon { width: 90%; }
  .concept-footer { grid-template-columns: 1fr; }
  .size-rack { justify-content: space-between; gap: 4px; }
  .size-rack figure:first-child { margin-right: auto; }
  .icon-well { width: calc(var(--size) + 8px); height: calc(var(--size) + 8px); }
  .context-strip { padding-inline: 4px; }
  .object-intro h2 { font-size: clamp(54px, 17.5vw, 78px); }
  .object-copy { grid-template-columns: auto 1fr; }
  .object-copy .verdict { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 8px; }
  .object-stage, .object-card.is-featured .object-stage { min-height: 94vw; }
  .object-card.is-featured .object-stage > img, .object-stage > img { width: 94%; max-height: 90vw; }
  .object-footer { grid-template-columns: 1fr; }
  .object-sizes { justify-content: space-between; gap: 4px; }
  .object-sizes figure:first-child { margin-right: auto; }
  .object-sizes figure > span { width: 104px; height: 104px; }
  .lab-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
