@charset "UTF-8";
/* ==========================================================================
   天乐 TianRaku / site stylesheet
   Direction: "luminous paper". One locked light theme, ink text on a cool
   paper ground, the logo's own blue (#017FFF) and cyan (#08E1F0) as the only
   accent pair, double-bezel plates, generous whitespace, calm scroll motion.
   Shape system: cards 28px, big plates 36px, inputs 12px, actions pill.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (self-hosted Latin; CJK falls through to the platform stack)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../assets/fonts/geist-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../assets/fonts/geist-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  --paper: #fbfcff;
  --paper-2: #f2f6fd;
  --plate: #ffffff;

  --ink: #0b1220;
  --ink-2: #3b465c;
  --ink-3: #636c7c;

  --line: rgba(11, 18, 32, 0.1);
  --line-2: rgba(11, 18, 32, 0.06);

  --brand: #017fff;
  --brand-strong: #0168d6;
  --brand-soft: #e8f1ff;
  --cyan: #08e1f0;

  --font-sans: "Geist", "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC",
    "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "Cascadia Mono",
    Consolas, monospace;

  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  --shadow-plate: 0 1px 2px rgba(11, 18, 32, 0.04),
    0 22px 60px -34px rgba(1, 60, 140, 0.34);
  --shadow-lift: 0 2px 4px rgba(11, 18, 32, 0.05),
    0 34px 70px -34px rgba(1, 60, 140, 0.42);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.9);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);

  --dur-press: 140ms;
  --dur-fast: 200ms;
  --dur: 260ms;
  --dur-slow: 620ms;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(80px, 11vw, 150px);
  --header-h: 64px;
}

/* --------------------------------------------------------------------------
   3. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--brand);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

[hidden] {
  display: none !important;
}

/* film grain, fixed layer only (never on a scrolling container) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='120' height='120' filter='url(%23n)' opacity='0.22'/></svg>");
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--tight {
  padding-block: clamp(56px, 7vw, 96px);
}

.rule {
  height: 1px;
  background: var(--line-2);
  border: 0;
  margin: 0;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.lede {
  max-width: 62ch;
  font-size: clamp(1rem, 1.15vw, 1.0625rem);
  color: var(--ink-2);
  line-height: 1.85;
}

.h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.16;
}

.h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(32px, 4.5vw, 60px);
}

.section-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(20px, 3vw, 34px);
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}

/* --------------------------------------------------------------------------
   5. Icons
   -------------------------------------------------------------------------- */
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
}

.icon--lg {
  width: 24px;
  height: 24px;
}

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 14px var(--gutter);
  pointer-events: none;
}

.site-header__inner {
  position: relative;
  pointer-events: auto;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
  padding: 0 10px 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: rgba(251, 252, 255, 0);
  transition: background var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    backdrop-filter var(--dur) var(--ease-out),
    max-width var(--dur) var(--ease-out);
}

.site-header.is-stuck .site-header__inner {
  background: rgba(255, 255, 255, 0.74);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.03),
    0 18px 40px -30px rgba(1, 60, 140, 0.5);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  padding: 6px 8px 6px 0;
  border-radius: var(--r-pill);
}

.brand__mark {
  width: 26px;
  height: 26px;
  transition: transform var(--dur) var(--ease-spring);
}

.brand__word {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand__mark {
    transform: rotate(-8deg) scale(1.06);
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  position: relative;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}

.nav__link[aria-current="page"] {
  color: var(--ink);
}

.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  .nav__link:hover {
    color: var(--ink);
    background: rgba(11, 18, 32, 0.04);
  }
  .nav__link:hover::after {
    transform: scaleX(1);
  }
}

.site-header__cta {
  flex: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  position: relative;
  flex: none;
}

.nav-toggle__bar {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease-spring),
    opacity var(--dur-fast) var(--ease-out);
}

.nav-toggle__bar:nth-child(1) {
  top: 16px;
}
.nav-toggle__bar:nth-child(2) {
  top: 20.5px;
}
.nav-toggle__bar:nth-child(3) {
  top: 25px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* mobile sheet */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 45;
  padding: calc(var(--header-h) + 40px) var(--gutter) 40px;
  background: rgba(251, 252, 255, 0.92);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out), visibility var(--dur);
  visibility: hidden;
}

.sheet.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
}

.sheet__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line-2);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
}

.sheet.is-open .sheet__link {
  opacity: 1;
  transform: none;
}

.sheet.is-open .sheet__link:nth-child(1) {
  transition-delay: 60ms;
}
.sheet.is-open .sheet__link:nth-child(2) {
  transition-delay: 110ms;
}
.sheet.is-open .sheet__link:nth-child(3) {
  transition-delay: 160ms;
}

.sheet__foot {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform var(--dur-press) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.btn:active {
  transform: scale(0.975);
}

.btn__label {
  display: inline-block;
}

.btn__trail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
  transition: transform var(--dur) var(--ease-spring),
    background var(--dur-fast) var(--ease-out);
}

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.2),
    0 20px 40px -26px rgba(11, 18, 32, 0.7);
}

.btn--primary .btn__trail {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn--ghost {
  padding-left: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-inset);
}

.btn--ghost .btn__trail {
  background: rgba(1, 127, 255, 0.1);
  color: var(--brand-strong);
  order: -1;
}

.btn--link {
  padding: 4px 2px;
  color: var(--brand-strong);
  font-weight: 500;
  border-radius: var(--r-xs);
}

.btn--sm {
  padding: 8px 8px 8px 16px;
  font-size: 0.875rem;
}
.btn--sm .btn__trail {
  width: 26px;
  height: 26px;
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background: #131c2e;
  }
  .btn--primary:hover .btn__trail {
    transform: translate(3px, -3px) scale(1.06);
  }
  .btn--ghost:hover {
    border-color: rgba(1, 127, 255, 0.5);
    background: #fff;
  }
  .btn--ghost:hover .btn__trail {
    transform: translate(-3px, 0) scale(1.06);
  }
  .btn--link:hover .btn__trail {
    transform: translate(3px, -3px);
  }
  .btn--link:hover {
    color: var(--brand);
  }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 132px var(--gutter) clamp(64px, 9vw, 110px);
  overflow: hidden;
  isolation: isolate;
  /* the glow lives on the section itself, so no clipping box can cut a hard
     edge into the gradient */
  background-image: radial-gradient(
      circle clamp(280px, 40vw, 620px) at 50% 24%,
      rgba(1, 127, 255, 0.2),
      rgba(1, 127, 255, 0) 100%
    ),
    radial-gradient(
      circle clamp(240px, 34vw, 540px) at 62% 54%,
      rgba(8, 225, 240, 0.16),
      rgba(8, 225, 240, 0) 100%
    ),
    radial-gradient(
      circle clamp(200px, 28vw, 440px) at 34% 68%,
      rgba(1, 127, 255, 0.1),
      rgba(1, 127, 255, 0) 100%
    );
}

.hero__grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(11, 18, 32, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(11, 18, 32, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(
    ellipse 70% 58% at 50% 46%,
    #000 12%,
    transparent 72%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 70% 58% at 50% 46%,
    #000 12%,
    transparent 72%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}

.plate {
  padding: 10px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(242, 246, 253, 0.7)
  );
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.04),
    0 30px 70px -40px rgba(1, 60, 140, 0.55);
}

.plate__core {
  position: relative;
  border-radius: calc(var(--r-xl) - 10px);
  background: var(--plate);
  box-shadow: var(--shadow-inset);
  overflow: hidden;
}

.hero__mark-wrap {
  line-height: 0;
}

.hero__mark {
  padding: 0;
  perspective: 900px;
}

.hero__mark .plate__core {
  display: grid;
  place-items: center;
  width: clamp(104px, 15vw, 142px);
  aspect-ratio: 1;
}

.hero__mark img {
  width: 58%;
  aspect-ratio: 1;
  will-change: transform;
}

.hero__mark-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(
    circle closest-side,
    rgba(1, 127, 255, 0.26),
    rgba(8, 225, 240, 0.14) 62%,
    rgba(8, 225, 240, 0) 100%
  );
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
}

.hero__mark-wrap.is-in .hero__mark-glow {
  opacity: 1;
}

.hero__wordmark {
  font-size: clamp(2.85rem, 10.5vw, 6.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  padding-bottom: 0.06em;
  background: linear-gradient(
    104deg,
    var(--ink) 22%,
    #1b3f74 52%,
    var(--brand) 78%,
    var(--cyan) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__slogan {
  max-width: 34ch;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.hero__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* --------------------------------------------------------------------------
   9. About / statement
   -------------------------------------------------------------------------- */
.statement {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  max-width: 1000px;
}

.statement__lead {
  font-size: clamp(1.6rem, 3.9vw, 3.05rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.32;
  max-width: 26ch;
  text-wrap: balance;
}

.statement__lead em {
  font-style: normal;
  font-weight: 600;
  color: var(--brand-strong);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(18px, 4vw, 56px);
  margin-top: clamp(8px, 2vw, 20px);
  border-top: 1px solid var(--line-2);
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 0 4px;
}

.fact__key {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fact__val {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.fact__note {
  font-size: 0.9375rem;
  color: var(--ink-3);
  line-height: 1.75;
}

.fact__val.fact--link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-strong);
  width: fit-content;
  overflow-wrap: anywhere;
}

.fact__val.fact--link .icon {
  width: 0.95em;
  height: 0.95em;
  flex: none;
  transition: transform var(--dur) var(--ease-spring);
}

@media (hover: hover) and (pointer: fine) {
  .fact__val.fact--link:hover {
    color: var(--brand);
  }
  .fact__val.fact--link:hover .icon {
    transform: translate(2px, -2px);
  }
}

/* --------------------------------------------------------------------------
   10. Bento (what people gather around)
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(178px, auto);
  gap: 14px;
}

.cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 24px;
  min-height: 178px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: var(--plate);
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.03);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.cell--lead {
  grid-column: span 2;
  grid-row: span 2;
  justify-content: space-between;
  min-height: 372px;
  border-color: rgba(1, 127, 255, 0.22);
  background: linear-gradient(150deg, #f4f9ff 0%, #ffffff 48%, #eef8ff 100%);
}

.cell--tinted {
  background: linear-gradient(170deg, var(--paper-2), #ffffff 70%);
}

.cell--tinted .cell__icon {
  color: var(--brand);
  background: rgba(1, 127, 255, 0.09);
}

.cell__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: rgba(11, 18, 32, 0.045);
  color: var(--ink-2);
  transition: transform var(--dur) var(--ease-spring),
    color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.cell__title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.cell__text {
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--ink-3);
  max-width: 34ch;
}

.cell--lead .cell__title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.34;
  letter-spacing: -0.028em;
  max-width: 22ch;
}

.cell--lead .cell__text {
  font-size: 1rem;
  max-width: 40ch;
}

.cell__art {
  position: absolute;
  top: -34px;
  right: -34px;
  width: 210px;
  opacity: 0.5;
  pointer-events: none;
  transform: rotate(-10deg);
  transition: transform 600ms var(--ease-out), opacity var(--dur) var(--ease-out);
}

.cell__glow {
  position: absolute;
  inset: auto 0 -8% 0;
  height: 62%;
  background: radial-gradient(
    ellipse 72% 92% at 50% 100%,
    rgba(8, 225, 240, 0.22),
    rgba(8, 225, 240, 0) 100%
  );
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .cell--lead:hover .cell__art {
    transform: rotate(-4deg) scale(1.04);
    opacity: 0.68;
  }
}

@media (hover: hover) and (pointer: fine) {
  .cell:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(11, 18, 32, 0.14);
  }
  .cell:hover .cell__icon {
    transform: translateY(-2px) scale(1.05);
    color: var(--brand-strong);
    background: rgba(1, 127, 255, 0.12);
  }
}

/* --------------------------------------------------------------------------
   11. Work cards
   -------------------------------------------------------------------------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* a work is a small portrait tile: a 1:1 icon plate, then the words */
.work {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  aspect-ratio: 3 / 4;
  padding: 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: var(--plate);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.03);
  transition: transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.work:focus-visible {
  outline-offset: 4px;
}

.work__icon {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: linear-gradient(165deg, #f4f9ff 0%, #ffffff 62%);
  overflow: hidden;
  flex: none;
}

.work__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

/* the picture wrapper is the icon box, so it centres like the artwork does */
.work__icon picture {
  display: block;
  width: 70%;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
}

.work__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 500ms var(--ease-out);
}

.work__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-height: 0;
}

.work__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.work__domain {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink-3);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.work__title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(11, 18, 32, 0.04);
  color: var(--ink);
  flex: none;
  transition: transform var(--dur) var(--ease-spring),
    background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.work__arrow .icon {
  width: 15px;
  height: 15px;
}

@media (hover: hover) and (pointer: fine) {
  .work:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(1, 127, 255, 0.28);
  }
  .work:hover .work__icon img {
    transform: scale(1.07) rotate(-4deg);
  }
  .work:hover .work__arrow {
    background: var(--brand);
    color: #fff;
    transform: translate(2px, -2px);
  }
}

.work:active {
  transform: scale(0.99);
}

/* --------------------------------------------------------------------------
   12. Join / CTA
   -------------------------------------------------------------------------- */
.join {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.join__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.join__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.door {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 18px 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--plate);
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.03);
  transition: transform var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}

.door__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  flex: none;
  color: var(--brand-strong);
  background: rgba(1, 127, 255, 0.08);
  transition: transform var(--dur) var(--ease-spring);
}

.door__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.door__title {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.door__meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-3);
  overflow-wrap: anywhere;
}

.door__arrow {
  margin-left: auto;
  flex: none;
  color: var(--ink-3);
  transition: transform var(--dur) var(--ease-spring), color var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .door:hover {
    transform: translateY(-3px);
    border-color: rgba(1, 127, 255, 0.3);
    box-shadow: var(--shadow-plate);
  }
  .door:hover .door__icon {
    transform: scale(1.06) rotate(-4deg);
  }
  .door:hover .door__arrow {
    color: var(--brand);
    transform: translate(3px, -3px);
  }
}

.door:active {
  transform: scale(0.994);
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  padding-block: clamp(44px, 6vw, 72px) 36px;
  border-top: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(242, 246, 253, 0.5), var(--paper));
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.footer__lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer__lockup img {
  width: 28px;
  height: 28px;
}

.footer__word {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer__note {
  font-size: 0.9375rem;
  color: var(--ink-3);
  max-width: 34ch;
  line-height: 1.8;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  color: var(--ink-2);
  width: fit-content;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer__link .icon {
  width: 0.9em;
  height: 0.9em;
  color: var(--ink-3);
  transition: transform var(--dur) var(--ease-spring), color var(--dur-fast) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .footer__link:hover {
    color: var(--brand-strong);
  }
  .footer__link:hover .icon {
    color: var(--brand);
    transform: translate(2px, -2px);
  }
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}

.footer__legal {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   14. Motion
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out),
    filter var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   15. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .works-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .join {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cell--lead {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 260px;
  }
  .cell--wide {
    grid-column: span 2;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav,
  .site-header__cta {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .site-header {
    padding: 10px var(--gutter);
  }
  .site-header__inner {
    padding-right: 8px;
  }
  .footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .cell--lead,
  .cell--wide {
    grid-column: span 1;
  }
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .facts {
    border-top: 1px solid var(--line-2);
  }
  .fact {
    border-bottom: 1px solid var(--line-2);
    padding-bottom: 20px;
  }
  .hero {
    min-height: auto;
    padding-top: clamp(108px, 30vw, 148px);
    padding-bottom: clamp(56px, 12vw, 88px);
  }
  .btn {
    padding: 11px 11px 11px 18px;
  }
  .footer__top {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer__brand {
    grid-column: span 1;
  }
  .cell {
    padding: 20px;
  }
  .work {
    padding: 12px;
    gap: 10px;
  }
  /* on a phone the tiles go two-up: the icon box steps in, the words follow it */
  .work__icon {
    width: 84%;
    margin-inline: auto;
  }
  .work__body {
    padding-inline: 8%;
  }
  .work__domain {
    font-size: 0.75rem;
    line-height: 1.4;
  }
  /* the tile is narrow here: give the words the whole width */
  .work__arrow {
    display: none;
  }
}

@media (max-width: 420px) {
  .work {
    padding: 10px;
    gap: 8px;
  }
  .work__icon {
    width: 80%;
  }
  .work__body {
    padding-inline: 10%;
  }
  .work__title {
    font-size: 1rem;
  }
}

/* --------------------------------------------------------------------------
   16. Touch details (feels native on a phone)
   -------------------------------------------------------------------------- */
.btn,
.door,
.person,
.nav-toggle,
.nav__link,
.sheet__link,
.brand {
  touch-action: manipulation;
}

.btn,
.door,
.nav-toggle,
.person__ring {
  -webkit-user-select: none;
  user-select: none;
}

@supports (padding: env(safe-area-inset-top)) {
  .site-header {
    padding-top: max(14px, env(safe-area-inset-top));
  }
  .site-footer {
    padding-bottom: max(36px, env(safe-area-inset-bottom));
  }
  .sheet {
    padding-bottom: max(40px, env(safe-area-inset-bottom));
  }
}
