@font-face { font-family: "Termina"; font-weight: 500; font-display: swap; src: url("fonts/termina-medium.woff2") format("woff2"); }
@font-face { font-family: "Termina"; font-weight: 700; font-display: swap; src: url("fonts/termina-bold.woff2") format("woff2"); }
@font-face { font-family: "Termina"; font-weight: 900; font-display: swap; src: url("fonts/termina-black.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 300 900; font-style: normal; font-display: swap; src: url("fonts/figtree.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 300 900; font-style: italic; font-display: swap; src: url("fonts/figtree-italic.woff2") format("woff2"); }

:root {
  --ink: #121212;
  --ink-raised: #18171c;
  --ink-deep: #0c0c0d;
  --peach: #eda171;
  --violet: #7b6ce6;
  --grey: #9b9b9b;
  --grey-dim: #5d5c62;
  --cream: #ffd1b3;
  --white: #f4f2f0;
  --rule: rgba(155, 155, 155, 0.28);
  --rule-strong: rgba(155, 155, 155, 0.55);
  --thread: linear-gradient(135deg, var(--peach), var(--violet));
  --thread-x: linear-gradient(90deg, var(--peach), var(--violet));
  --display: "Termina", "Figtree", sans-serif;
  --text: "Figtree", system-ui, sans-serif;
  --page: 1200px;
  --gutter: 48px;
  --edge: clamp(48px, 4.5vw, 72px);
  --frame: 1520px;
  --nav-h: 76px;
  --bar-h: 0px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); scrollbar-color: var(--grey-dim) var(--ink); }
html:not(.ready) { scroll-behavior: auto; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--peach); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 4px; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 70; padding: 12px 16px; border: 1px solid var(--grey); background: var(--ink); color: var(--white); font-size: 14px; font-weight: 600; transform: translateY(calc(-100% - 16px)); }
.skip:focus-visible { transform: none; }
b, strong { font-weight: 700; color: var(--white); }

.thread-field {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("contour-a.svg") center / cover no-repeat;
}
body { position: relative; }
.topo { position: absolute; top: 0; left: 0; right: 0; z-index: 0; pointer-events: none; background-repeat: repeat; background-position: 0 0; image-rendering: pixelated; }
main, header, footer { position: relative; z-index: 1; }

.wrap { width: min(var(--page), 100% - var(--gutter) * 2); margin-inline: auto; }

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 max(var(--edge), calc((100% - var(--frame)) / 2));
  background: linear-gradient(rgba(18,18,18,.92), rgba(18,18,18,.72));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 15px; }
.nav-links a { position: relative; color: var(--grey); transition: color .3s var(--ease); }
.nav-links a:hover, .nav-links a.is-active { color: var(--white); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--thread-x); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-sep { width: 1px; height: 22px; background: var(--rule-strong); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--grey); color: var(--white); font-size: 13px; line-height: 1; }
.nav-links a.nav-cta { padding: 9px 14px; gap: 10px; font-size: 14px; font-weight: 600; color: var(--white); border-color: var(--grey); transition: border-color .3s var(--ease), color .3s var(--ease); }
.nav-links a.nav-cta::after { display: none; }
.nav-cta svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.nav-links a.nav-cta:hover, .nav-status.nav-cta:hover { border-color: var(--peach); color: var(--peach); }
.nav-cta:hover svg { transform: translateX(3px); }
.holo-text { color: transparent; background: linear-gradient(90deg, #EDA171, #FFB3C7, #B79CFF, #7B6CE6, #6FD3E6, #BDF2C9, #FFD1B3, #EDA171) 0 0 / 220px 100% repeat-x; -webkit-background-clip: text; background-clip: text; animation: holo-run var(--holo-dur, 6s) linear infinite; }
@keyframes holo-run { to { background-position: 220px 0; } }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--peach); box-shadow: 0 0 0 3px rgba(237,161,113,.18); }

/* hero */
.hero { --hero-m: var(--edge); position: relative; height: 100vh; min-height: 720px; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease), transform 8s linear; transform: scale(1.04); }
.hero-slide.is-on { opacity: 1; transform: scale(1); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,18,18,.92) 0%, rgba(18,18,18,.82) 40%, rgba(18,18,18,.6) 62%, rgba(18,18,18,.08) 88%), linear-gradient(0deg, rgba(18,18,18,.9) 0%, rgba(18,18,18,0) 45%); }
.hero-body { position: absolute; z-index: 2; left: max(var(--hero-m), calc((100% - var(--frame)) / 2)); right: calc(max(var(--hero-m), calc((100% - var(--frame)) / 2)) + var(--hero-m) + 240px); bottom: calc(var(--bar-h) + var(--hero-m)); display: flex; align-items: flex-end; gap: var(--hero-m); }
.hero-mark { flex: none; width: min(500px, 36vw, 58vh); height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.45)); }
.hero-topo { --mw: min(500px, 36vw, 58vh); width: calc(var(--mw) * 1.09); aspect-ratio: 854 / 700; margin: 0 calc(var(--mw) * -.045) calc(var(--mw) * -.045 / 1.22); filter: none; }
.hero-topo canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .3s var(--ease); }
.hero-topo.is-ready canvas { opacity: 1; }
.hero-text { min-width: 0; }
.hero-lockup { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.hero h1 { width: max-content; font-family: var(--display); font-weight: 900; font-size: clamp(34px, 3.2vw, 46px); line-height: 1; letter-spacing: .1em; background: var(--thread); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-role { margin-top: 28px; white-space: nowrap; font-size: clamp(18px, 1.55vw, 24px); font-weight: 300; color: var(--cream); line-height: 1.3; }
.hero-tag { margin-top: 4px; font-size: clamp(18px, 1.55vw, 24px); font-weight: 700; color: var(--white); line-height: 1.3; min-height: 1.3em; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; font-size: 16px; font-weight: 600; border: 1px solid var(--grey); color: var(--white); transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.btn:hover { border-color: var(--white); background: rgba(244,242,240,.06); }
.btn-primary { border: 0; color: var(--ink); background: var(--thread-x); }
.btn-primary:hover { background: var(--thread-x); filter: brightness(1.08); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.hero-caption { position: absolute; z-index: 2; right: max(var(--hero-m), calc((100% - var(--frame)) / 2)); bottom: calc(var(--bar-h) + var(--hero-m)); width: 240px; font-size: 14px; color: var(--white); }
.hero-caption-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.hero-count { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--white); font-variant-numeric: tabular-nums; }
.hero-count b { color: var(--white); }
.hero-progress { margin-top: 12px; height: 2px; background: var(--rule); overflow: hidden; }
.hero-progress i { display: block; height: 100%; width: 100%; background: var(--thread-x); transform: scaleX(0); transform-origin: left; }

/* sections */
.section { padding: 150px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 0 0 34px; border-bottom: 1px solid var(--rule-strong); }
.section-title { font-family: var(--display); font-weight: 700; font-size: 46px; line-height: 1.05; color: var(--white); letter-spacing: .005em; }
.section-note { font-size: 15px; color: var(--grey); max-width: 340px; text-align: right; }

/* manifesto */
.manifesto .wrap { width: min(900px, 100% - var(--gutter) * 2); }
.mf-list { margin-top: 90px; }
.mf-item { padding-bottom: 96px; }
.mf-item:last-child { padding-bottom: 0; }
.mf-key { font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--peach); }
.mf-head { margin-top: 16px; font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1.12; color: var(--white); }
.mf-text { margin-top: 22px; max-width: 62ch; font-size: 20px; line-height: 1.6; color: var(--cream); font-weight: 300; }

/* capabilities */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--rule); }
.cell { position: relative; padding: 44px 44px 50px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: rgba(18,18,18,.6); transition: background .25s var(--ease); }
.cell:hover { background: rgba(24,23,28,.9); }
.cell-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cell-icon { width: 44px; height: 44px; color: var(--peach); }
.cell-num { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--grey); }
.cell h3 { margin-top: 34px; font-size: 26px; font-weight: 700; color: var(--white); line-height: 1.2; }
.cell p { margin-top: 14px; max-width: 46ch; font-size: 18px; font-weight: 300; }

/* connect */
.connect { padding-top: 0; scroll-margin-top: 40px; }
.connect-link { display: flex; flex-direction: column; gap: 6px; }
.connect-link .cell-icon { color: var(--cream); }
.connect-label { margin-top: 28px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--grey); }
.connect-handle { font-family: var(--display); font-weight: 700; font-size: 30px; color: var(--white); }
.connect-desc { font-size: 17px; font-weight: 300; }
.arrow { width: 22px; height: 22px; color: var(--grey); transition: transform .25s var(--ease), color .25s var(--ease); }
a.cell:hover .arrow { transform: translate(4px, -4px); color: var(--peach); }

/* process */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); border-left: 1px solid var(--rule); }
.step { padding: 36px 30px 44px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.step-top { display: flex; justify-content: space-between; align-items: center; }
.step h3 { margin-top: 30px; font-size: 22px; font-weight: 700; color: var(--white); }
.step p { margin-top: 12px; font-size: 17px; font-weight: 300; }

/* works */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: var(--tile); grid-auto-flow: row dense; gap: 18px; margin-top: 40px; --tile: calc((min(var(--page), 100vw - var(--gutter) * 2) - 36px) / 3); }
.tile { position: relative; overflow: hidden; isolation: isolate; background: var(--ink-raised); outline: 1px solid var(--rule); outline-offset: -1px; }
.tile.is-big { grid-column: span 2; grid-row: span 2; }
.tile-open { position: absolute; inset: 0; z-index: 2; cursor: zoom-in; }
.tile.is-big .tile-open { cursor: zoom-out; }
.tile-open:focus-visible { outline-offset: -4px; }
.tile-media { position: absolute; inset: 0; z-index: -1; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.04); }
.tile-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,12,13,.94) 0%, rgba(12,12,13,.55) 38%, rgba(12,12,13,0) 66%); }
.tile.is-big .tile-media::after { background: linear-gradient(0deg, rgba(12,12,13,.94) 0%, rgba(12,12,13,.55) 50%, rgba(12,12,13,0) 80%); }
.tile-empty { position: absolute; inset: 0; background: url("contour-a.svg") 30% 40% / 260% auto no-repeat, var(--ink-raised); }
.tile-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 26px 26px 24px; pointer-events: none; }
.tile-info a, .tile-info button { pointer-events: auto; }
.tile-disc { font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--cream); }
.tile-title { margin-top: 8px; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.12; color: var(--white); }
.tile.is-big .tile-title { font-size: 40px; }
.tile-desc { margin-top: 10px; font-size: 16px; line-height: 1.45; font-weight: 300; color: var(--cream); }
.tile-short { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-full { display: none; max-width: 58ch; }
.tile.is-big .tile-desc { font-size: 19px; }
.tile.is-big .tile-short { white-space: normal; font-weight: 600; color: var(--white); }
.tile.is-big .tile-full { display: block; margin-top: 8px; animation: compose .7s var(--ease) .32s both; }
@keyframes compose { from { opacity: 0; transform: translateY(14px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
.tile-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.tile-more { font-size: 14px; font-weight: 600; color: var(--grey); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--grey-dim); transition: color .3s var(--ease); }
.tile-more:hover { color: var(--white); }
.tile.is-big .tile-more { visibility: hidden; }
.tile-link { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--grey); font-size: 14px; font-weight: 600; color: var(--white); background: rgba(12,12,13,.5); transition: border-color .3s var(--ease), color .3s var(--ease); }
.tile-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.tile-link:hover { border-color: var(--peach); color: var(--peach); }
.tile-link:hover svg { transform: translate(2px, -2px); }
.tile.is-ph .tile-title, .tile.is-ph .tile-disc, .tile.is-ph .tile-desc { color: var(--grey); font-family: var(--text); font-weight: 500; letter-spacing: .02em; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
.works-ph { display: grid; place-items: center; min-height: 240px; margin-top: 40px; outline: 1px solid var(--rule); outline-offset: -1px; background: url("contour-a.svg") 30% 40% / 120% auto no-repeat, var(--ink-raised); font-size: 16px; font-weight: 500; letter-spacing: .02em; color: var(--grey); }
.works-foot { padding-top: 26px; font-size: 16px; color: var(--grey); }

/* contact */
.contact { text-align: center; padding-bottom: 170px; }
.contact .wrap { width: min(860px, 100% - var(--gutter) * 2); }
.contact-key { font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--peach); }
.contact h2 { margin-top: 22px; font-family: var(--display); font-weight: 900; font-size: 62px; line-height: 1.04; color: var(--white); }
.contact-lead { margin: 26px auto 0; max-width: 40ch; font-size: 22px; font-weight: 300; }
.mailbox { display: flex; align-items: center; justify-content: center; gap: 12px; width: min(520px, 100%); height: 64px; margin: 46px auto 0; border: 1px solid var(--grey); font-size: 20px; color: var(--white); transition: border-color .25s var(--ease), background .25s var(--ease); }
.mailbox span { color: var(--peach); }
.mailbox:hover { border-color: var(--peach); background: rgba(237,161,113,.06); }
.contact .btn-primary { margin-top: 18px; }
.contact-note { margin-top: 24px; font-size: 15px; color: var(--grey); }

/* footer */
.footer { border-top: 1px solid var(--rule); padding: 30px 0 calc(30px + var(--bar-h)); }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--grey); }
.footer .avail { display: inline-flex; align-items: center; gap: 10px; color: var(--white); }


/* status bar */
.sign { color: var(--cream); }
.sign em { font-style: italic; font-weight: 800; color: var(--peach); }

/* background trials */
.texture { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.texture canvas, .texture svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.texture { opacity: calc(var(--tex, 100) / 100); }
body[data-bg="grid"] { background-image: none; }
.texture-grid {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cpath d='M0 -7V7M-7 0H7M128 121V135M121 128H135M0 121V135M-7 128H7M128 -7V7M121 0H135' stroke='%23FFD1B3' stroke-opacity='.38' stroke-width='1' fill='none'/%3E%3C/svg%3E"),
    linear-gradient(rgba(155,155,155,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155,155,155,.11) 1px, transparent 1px),
    linear-gradient(rgba(155,155,155,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155,155,155,.045) 1px, transparent 1px);
  background-size: 128px 128px, 128px 128px, 128px 128px, 16px 16px, 16px 16px;
  background-position: calc(50% + 64px) 0;
}
body[data-lines="off"] .thread-field { display: none; }
[data-variant] { display: none; }
body[data-navlogo="white"] .brand-logo[data-variant="white"],
body[data-navlogo="holo"] .brand-logo[data-variant="holo"],
body[data-hero="T"] .hero-mark[data-variant="T"],
body[data-hero="A"] .hero-mark[data-variant="A"],
body[data-hero="B"] .hero-mark[data-variant="B"] { display: block; }
.nav-status { display: none; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--white); transition: color .3s var(--ease); }
.nav-status:hover { color: var(--peach); }
body[data-nav="pill"] .nav { display: grid; grid-template-columns: 1fr auto 1fr; }
body[data-nav="pill"] .brand { justify-self: start; }
body[data-nav="pill"] .nav-status { display: inline-flex; justify-self: end; }
body[data-nav="pill"] .nav-sep, body[data-nav="pill"] .nav-links .chip { display: none; }
body[data-nav="pill"] .nav-links { gap: 6px; padding: 5px; border: 1px solid var(--rule); background: rgba(12,12,13,.55); }
body[data-nav="pill"] .nav-links a { padding: 9px 18px; font-weight: 500; }
body[data-nav="pill"] .nav-links a::after { display: none; }
body[data-nav="pill"] .nav-links a.is-active { color: var(--ink); background: var(--cream); }

.grain { position: absolute; top: 0; left: 0; right: 0; z-index: 0; pointer-events: none; background-repeat: repeat; background-position: 0 0; image-rendering: pixelated; opacity: calc(var(--grain, 100) / 100); }

@media (prefers-reduced-motion: reduce) {
  .holo-text { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
