/* ============ Tokens ============ */
:root {
  /* Tolero H2 palette (Brand & Visual Guidelines v1.1) */
  --t-blue: #436B95; --t-green: #4AA189; --t-ink: #182A3D; --t-slate: #5E6E7E; --t-deep: #2F7A66;
  --t-green75: #77B9A7; --t-blue75: #7290B0; --t-blue25: #D0DAE4; --t-mist: #ECF0F4; --t-green10: #EDF6F3;
  /* Theme tokens: dark is the default; light overrides below (set on <html data-theme>) */
  --bg: #0f1c2a;
  --bg-rgb: 15 28 42;
  --fg: #ffffff;
  --fg-rgb: 255 255 255;
  --on-fg: #182A3D;
  --surface: #182A3D;
  --surface-rgb: 24 42 61;
  --surface-2: #1f3449;
  --surface-3: #2a425b;
  --muted: rgb(var(--fg-rgb) / .6);
  --muted-2: rgb(var(--fg-rgb) / .5);
  --card: rgb(var(--surface-rgb) / 0.85);
  --card-solid: var(--surface);
  --light: var(--t-mist);
  --ink: #182A3D;
  --red: var(--t-green75);          /* accent: Green 75 on Ink (4.7:1) */
  --accent-2: var(--t-blue75);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: 40px;
  --radius: 32px;  /* corner radius shared by every card, photo and box */
  --frame: 1360px;  /* shared content width: nav, sections and footer all align to it */
  --gutter: max(var(--pad), calc((100% - var(--frame)) / 2));
  --font: "Figtree", Arial, system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-rgb: 255 255 255;
  --fg: #182A3D;
  --fg-rgb: 24 42 61;
  --on-fg: #ffffff;
  --surface: #ECF0F4;
  --surface-rgb: 236 240 244;
  --surface-2: #e2e8ee;
  --surface-3: #D0DAE4;
  --red: var(--t-blue);             /* accent: Blue on White (5.6:1) */
  --accent-2: var(--t-green);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); overflow-x: clip; }
body {
  font-family: var(--font);
  font-weight: 500;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }

/* ============ Typography ============ */
.h-xl {
  font-size: 82px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.container-900 { width: var(--frame); max-width: calc(100% - 2 * var(--pad)); margin: 0 auto; position: relative; }

/* Split words (blur-in reveal) */
.w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(20px); will-change: transform, filter, opacity;
  transition: opacity .9s var(--ease), filter .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.is-in .w, .w.is-in { opacity: 1; filter: blur(0); transform: none; }

/* Generic reveal: fade up 35px */
.reveal { opacity: 0; transform: translateY(35px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============ Text roll (hover) ============ */
.roll { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.1; }
.roll > span { display: inline-block; position: relative; transition: transform .5s var(--ease); }
.roll > span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; white-space: nowrap; }
a:hover .roll > span, button:hover .roll > span, .card:hover .roll > span { transform: translateY(-100%); }

/* ============ Buttons ============ */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 20px 0 18px; border-radius: 12px;
  font-size: 18px; line-height: 1.1; letter-spacing: -0.03em; transition: background-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease); }
.btn .star { transition: transform .6s var(--ease); }
.btn:hover .star { transform: rotate(90deg); }
.btn--primary { background: var(--fg); color: var(--on-fg); border-radius: 20px; padding: 0 18px; }  /* original: 151x48, r20 */
.btn--ghost { background: var(--surface-2); color: var(--fg); font-size: 16px; letter-spacing: -0.03em; height: 40px; padding: 0 16px; border-radius: 10px; }
.btn--ghost:hover { background: var(--surface-3); }
.btn--light { background: #d9d9d9; color: var(--ink); font-size: 16px; letter-spacing: -0.03em; height: 40px; padding: 0 16px; border-radius: 10px; }
.btn--light:hover { background: #cfcfcf; }

/* ============ Navbar ============ */
.nav { position: fixed; inset: 0 0 auto 0; height: 98px; z-index: 50; display: flex; align-items: flex-start; justify-content: space-between;
  padding: 25px var(--pad) 0; pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav__logo { display: flex; align-items: center; gap: 6px; height: 48px; font-size: 24px; letter-spacing: -0.03em; color: var(--fg);
  transition: color .5s var(--ease), opacity 1s var(--ease), transform 1s var(--ease); }
.nav__cta { transition: background-color .5s var(--ease), color .5s var(--ease), opacity 1s var(--ease), transform 1s var(--ease); }
.nav.is-light .nav__logo { color: var(--ink); }
.nav.is-light .nav__cta { background: var(--ink); color: #fff; }

/* Central menu pill -> expands into a frosted panel (280x60 -> 450x537) */
.menu { position: absolute; left: 50%; top: 19px; width: 280px; height: 60px; transform: translateX(-50%);
  background: rgb(var(--surface-rgb) / .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 20px; overflow: hidden;
  transition: width .65s var(--ease), height .65s var(--ease), opacity 1s var(--ease), transform 1s var(--ease); }
.menu.is-open { width: 450px; height: 537px; }
.menu__bar { position: relative; display: flex; align-items: center; justify-content: space-between; width: 280px; height: 60px; padding: 0 20px 0 0; margin: 0 auto; }
.menu.is-open .menu__bar { height: 80px; }
.menu__bar { transition: height .65s var(--ease); }
.menu__btn { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 0 0 19px; border-radius: 4px; background: transparent;
  font-size: 18px; line-height: 1.2; font-weight: 400; letter-spacing: -0.03em; }
.menu__icon { width: 10px; height: 10px; display: grid; grid-template-columns: 4px 4px; gap: 2px; transition: transform .6s var(--ease); }
.menu__icon i { width: 4px; height: 4px; background: var(--fg); border-radius: 1px; transition: border-radius .4s; }
.menu.is-open .menu__icon { transform: rotate(45deg); }
.menu.is-open .menu__icon i { border-radius: 50%; }
/* "Menu" rolls up to the studio name */
.menu__label { display: inline-flex; flex-direction: column; height: 21.6px; overflow: hidden; }
.menu__label span { display: block; line-height: 21.6px; transition: transform .6s var(--ease); }
.menu.is-open .menu__label span { transform: translateY(-100%); }
.menu__status { white-space: nowrap; font-size: 14px; line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; color: rgb(var(--fg-rgb) / .6);
  display: flex; align-items: center; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.5);} 70% { box-shadow: 0 0 0 7px rgba(61,220,132,0);} 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0);} }

.menu__panel { position: absolute; top: 80px; left: 0; width: 450px; }
.menu__line { display: block; height: 1px; background: rgb(var(--fg-rgb) / .05); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .7s var(--ease); }
.menu.is-open .menu__line { transform: scaleX(1); transition-delay: .15s; }
.menu__list { display: flex; flex-direction: column; }
.menu__item { position: relative; display: flex; align-items: center; justify-content: space-between; height: 100px; padding: 0 20px; overflow: hidden; }
.menu__item::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--fg-rgb) / .03), rgb(var(--fg-rgb) / 0));
  opacity: 0; transition: opacity .4s var(--ease); }
.menu__item:hover::before { opacity: 1; }
.menu__item .menu__line { position: absolute; left: 0; right: 0; bottom: 0; }
.menu__text { position: relative; font-size: 24px; line-height: 1; font-weight: 400; letter-spacing: -0.03em; color: var(--fg);
  transition: transform .5s var(--ease); }
.menu__item:hover .menu__text { transform: translateX(8px); }
.menu__thumb { position: relative; width: 95px; height: 75px; border-radius: 16px; overflow: hidden; transition: transform .6s var(--ease); }
.menu__item:hover .menu__thumb { transform: scale(.968); }
.thumb--a { background: radial-gradient(60% 70% at 35% 40%, #f3f1ee 0 30%, transparent 31%), linear-gradient(135deg, #3b2c22, #111); }
.thumb--b { background: conic-gradient(from 40deg at 50% 55%, #ff8a2a, #b33a00, #ffb066, #c94b00, #ff8a2a); }
.thumb--c { background: radial-gradient(70% 60% at 50% 100%, #f59a6f, var(--red) 45%, #111 80%); }
.menu__social { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 40px 20px 0; }
.menu__social small { font-size: 12px; line-height: 1; font-weight: 400; letter-spacing: -0.03em; color: rgb(var(--fg-rgb) / .4); margin-bottom: 14px; }
.menu__social a { font-size: 16px; line-height: 20px; font-weight: 400; letter-spacing: -0.03em; color: var(--fg); }

/* staggered content entrance (and quick exit) */
.menu__item > .menu__text, .menu__item > .menu__thumb, .menu__social > * { opacity: 0; transform: translateY(16px);
  transition: opacity .25s var(--ease), transform .5s var(--ease); }
.menu.is-open .menu__item > .menu__text, .menu.is-open .menu__item > .menu__thumb, .menu.is-open .menu__social > * {
  opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .7s var(--ease); }
.menu.is-open .menu__item:nth-child(1) > * { transition-delay: .12s; }
.menu.is-open .menu__item:nth-child(2) > * { transition-delay: .18s; }
.menu.is-open .menu__item:nth-child(3) > * { transition-delay: .24s; }
.menu.is-open .menu__social > * { transition-delay: .30s; }
.menu.is-open .menu__item:hover .menu__text { transform: translateX(8px); transition-delay: 0s; }
.menu.is-open .menu__item:hover .menu__thumb { transform: scale(.968); transition-delay: 0s; }

/* Load-in states */
body.is-loading .nav__logo, body.is-loading .nav__cta { opacity: 0; transform: translateY(-10px); }
body.is-loading .menu { transform: translate(-50%, -10px); opacity: 0; }
.load-in { transition: opacity 1.2s var(--ease) .15s, transform 1.2s var(--ease) .15s; }
body.is-loading .load-in { opacity: 0; transform: translateY(20px); }
.load-in-logo { transition: opacity 1.6s var(--ease) .1s, transform 1.6s var(--ease) .1s; }
body.is-loading .load-in-logo { opacity: 0; transform: translateY(60px); }

/* ============ Hero ============ */
.hero { position: relative; height: 100vh; min-height: 700px; background: var(--bg); overflow: hidden; z-index: 0; }
.hero__inner { position: absolute; inset: 0; will-change: transform; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__intro { position: absolute; top: 160px; right: var(--pad); width: 785px; display: flex; gap: 137px; z-index: 2; }
.hero__spacer { width: 290px; flex: none; }
.hero__title { font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; width: 358px; flex: none; }
.hero__logo { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 20px; height: 448px; }
.hero__meta { display: flex; justify-content: space-between; align-items: center; font-size: 14px; line-height: 1.1; font-weight: 400; letter-spacing: -0.02em; position: relative; z-index: 3; }
.hero__meta-left { display: flex; gap: 46px; color: rgb(var(--fg-rgb) / .6); }
.hero__time { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); }
.moon { opacity: .9; }
.hero__scroll { display: inline-flex; align-items: center; gap: 8px; letter-spacing: normal; color: rgb(var(--fg-rgb) / .4); transition: color .3s; }
.hero__scroll svg { opacity: .5; animation: bob 2s var(--ease-io) infinite; }
.hero__scroll:hover { color: var(--fg); }
@keyframes bob { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(2px); } }

/* Giant wordmark (blends with shader) */
.wordmark { position: relative; width: 100%; line-height: .78; font-weight: 500; letter-spacing: -0.06em; white-space: nowrap; user-select: none; }
.wordmark span { display: block; font-size: var(--wm-size, 520px); text-align: center; }
.wordmark--hero { position: absolute; left: 0; right: 0; bottom: 0; height: 413px; display: flex; align-items: flex-end; justify-content: center; }
.wordmark--hero .wordmark__main, .wordmark--hero .wordmark__blend { position: absolute; left: 0; right: 0; bottom: -4px; }
.wordmark--hero .wordmark__main {
  background: linear-gradient(180deg, rgba(143,143,143,0) 0%, rgba(119,185,167,.33) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; mix-blend-mode: darken; }
.wordmark--hero .wordmark__blend {
  background: radial-gradient(56% 156% at 47.1% 1.9%, rgba(255,255,255,0) 0%, rgb(170,205,214) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; mix-blend-mode: color-dodge; }
.menu__btn:focus:not(:focus-visible), .menu__item:focus:not(:focus-visible) { outline: none; }

/* ============ Progressive bottom blur (fixed) ============ */
.edge-blur { position: fixed; left: 0; right: 0; bottom: 0; height: 130px; z-index: 5; pointer-events: none; transition: opacity .5s ease; }
.edge-blur.is-off { opacity: 0; }
.edge-blur i { position: absolute; inset: 0; }
.edge-blur i:nth-child(1) { backdrop-filter: blur(0.1367px); -webkit-backdrop-filter: blur(0.1367px);
  mask-image: linear-gradient(to bottom, transparent 0.0%, #000 12.5%, #000 25.0%, transparent 37.5%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0.0%, #000 12.5%, #000 25.0%, transparent 37.5%); }
.edge-blur i:nth-child(2) { backdrop-filter: blur(0.2734px); -webkit-backdrop-filter: blur(0.2734px);
  mask-image: linear-gradient(to bottom, transparent 12.5%, #000 25.0%, #000 37.5%, transparent 50.0%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 12.5%, #000 25.0%, #000 37.5%, transparent 50.0%); }
.edge-blur i:nth-child(3) { backdrop-filter: blur(0.5469px); -webkit-backdrop-filter: blur(0.5469px);
  mask-image: linear-gradient(to bottom, transparent 25.0%, #000 37.5%, #000 50.0%, transparent 62.5%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 25.0%, #000 37.5%, #000 50.0%, transparent 62.5%); }
.edge-blur i:nth-child(4) { backdrop-filter: blur(1.094px); -webkit-backdrop-filter: blur(1.094px);
  mask-image: linear-gradient(to bottom, transparent 37.5%, #000 50.0%, #000 62.5%, transparent 75.0%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 37.5%, #000 50.0%, #000 62.5%, transparent 75.0%); }
.edge-blur i:nth-child(5) { backdrop-filter: blur(2.188px); -webkit-backdrop-filter: blur(2.188px);
  mask-image: linear-gradient(to bottom, transparent 50.0%, #000 62.5%, #000 75.0%, transparent 87.5%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 50.0%, #000 62.5%, #000 75.0%, transparent 87.5%); }
.edge-blur i:nth-child(6) { backdrop-filter: blur(4.375px); -webkit-backdrop-filter: blur(4.375px);
  mask-image: linear-gradient(to bottom, transparent 62.5%, #000 75.0%, #000 87.5%, transparent 100.0%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 62.5%, #000 75.0%, #000 87.5%, transparent 100.0%); }
.edge-blur i:nth-child(7) { backdrop-filter: blur(8.754px); -webkit-backdrop-filter: blur(8.754px);
  mask-image: linear-gradient(to bottom, transparent 75.0%, #000 87.5%, #000 100.0%, transparent 112.5%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 75.0%, #000 87.5%, #000 100.0%, transparent 112.5%); }
.edge-blur i:nth-child(8) { backdrop-filter: blur(17.5px); -webkit-backdrop-filter: blur(17.5px);
  mask-image: linear-gradient(to bottom, transparent 87.5%, #000 100.0%, #000 112.5%, transparent 125.0%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 87.5%, #000 100.0%, #000 112.5%, transparent 125.0%); }

/* ============ Page transition ============ */
body { transition: opacity .45s cubic-bezier(.65, 0, .35, 1); }
body.is-leaving { opacity: 0; }

/* Phone-only menu extras (hidden on desktop) */
.menu__cta { display: none; }
.menu__label-close { display: block; }
