:root {
  --ink: #17191c;
  --muted: #64686e;
  --paper: #f4f4ee;
  --white: #fffef8;
  --line: rgba(23, 25, 28, .14);
  --orange: #ff653d;
  --violet: #7058ff;
  --lime: #d1f56c;
  --blue: #8adbf4;
  --radius: 28px;
  --shell: min(1160px, calc(100vw - 48px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; background: var(--white); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(244, 244, 238, .88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color .2s ease;
}

.site-header.scrolled { border-color: var(--line); }
.nav-wrap { height: 82px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { position: relative; width: 31px; height: 25px; display: inline-block; }
.brand-mark i { position: absolute; width: 21px; height: 18px; border: 2px solid var(--ink); border-radius: 6px; transform: rotate(-7deg); }
.brand-mark i:first-child { top: 1px; left: 1px; background: var(--orange); }
.brand-mark i:last-child { right: 1px; bottom: 1px; background: var(--lime); transform: rotate(8deg); }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 650; }
.site-nav a:not(.nav-contact) { position: relative; }
.site-nav a:not(.nav-contact)::after { content: ""; position: absolute; inset: auto 0 -5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .25s; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-contact { padding: 10px 15px; border: 1px solid var(--ink); border-radius: 100px; transition: color .2s, background .2s; }
.nav-contact:hover, .nav-contact:focus-visible { color: var(--white); background: var(--ink); }
.nav-toggle { display: none; border: 0; background: transparent; width: 42px; height: 42px; padding: 10px; }
.nav-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink); transition: transform .2s; }

.hero { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: 42px; padding-block: 65px 85px; }
.eyebrow, .section-label { margin: 0 0 22px; text-transform: uppercase; letter-spacing: .13em; font-size: 12px; font-weight: 800; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow > span { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 12px 0 0 var(--violet); margin-right: 12px; }
.hero h1 { margin: 0; max-width: 720px; font-size: clamp(58px, 7vw, 98px); line-height: .99; letter-spacing: -.065em; font-weight: 760; }
.hero h1 em { color: #aa351c; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
.hero-intro { max-width: 580px; margin: 34px 0 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; }
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 54px; padding: 0 22px; border-radius: 100px; font-size: 14px; font-weight: 750; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--ink); box-shadow: 0 10px 26px rgba(23, 25, 28, .14); }
.button-primary:hover { box-shadow: 0 14px 34px rgba(23, 25, 28, .22); }
.text-link { font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--line); padding-block: 6px; }

.hero-stage { position: relative; min-height: 500px; display: grid; place-items: center; isolation: isolate; overflow: hidden; }
.hero-stage::before { content: ""; position: absolute; z-index: -2; width: min(88%, 430px); aspect-ratio: 1; border-radius: 50%; background: var(--violet); }
.orbit { position: absolute; z-index: -1; border: 1px solid rgba(255, 255, 255, .48); border-radius: 50%; }
.orbit-one { width: min(100%, 490px); aspect-ratio: 1; border-color: rgba(112, 88, 255, .28); }
.orbit-two { width: min(72%, 355px); aspect-ratio: 1; }
.app-board { width: min(77%, 390px); padding: 15px; border: 1px solid #43404d; border-radius: 26px; background: #1f2027; box-shadow: 0 26px 54px rgba(30, 22, 82, .35); transform: rotate(-7deg); }
.app-board-bar { display: flex; gap: 5px; padding: 4px 4px 14px; }
.app-board-bar i { width: 7px; height: 7px; border-radius: 50%; background: #777584; }
.app-board-grid { display: grid; grid-template-columns: 1.14fr .86fr; gap: 10px; }
.app-tile { display: grid; place-content: center; justify-items: center; position: relative; min-width: 0; min-height: 0; aspect-ratio: 1.22; border-radius: 17px; color: var(--ink); }
.app-tile-web { background: var(--blue); gap: 4px; }
.app-tile-web i { width: clamp(25px, 5vw, 68px); height: 7px; border-radius: 10px; background: currentColor; }
.app-tile-web i:nth-child(2) { width: 75%; }
.app-tile-web i:nth-child(3) { width: 50%; }
.app-tile-mobile { background: var(--lime); }
.app-tile-mobile i { width: clamp(23px, 4vw, 42px); aspect-ratio: .62; border: 3px solid currentColor; border-radius: 10px; }
.app-tile-mobile i::after { content: ""; display: block; width: 40%; height: 3px; margin: 4px auto; border-radius: 5px; background: currentColor; }
.app-tile-tv { background: #c9bfff; }
.app-tile-tv i { width: clamp(37px, 7vw, 75px); aspect-ratio: 1.65; border: 3px solid currentColor; border-radius: 9px; }
.app-tile-tv i::after { content: ""; position: absolute; left: 36%; right: 36%; top: 76%; height: 3px; border-radius: 5px; background: currentColor; }
.app-tile-game { grid-template-columns: repeat(2, 1fr); gap: 5px; background: #ff9d7b; }
.app-tile-game i { width: clamp(8px, 1.6vw, 16px); aspect-ratio: 1; border: 2px solid currentColor; border-radius: 4px; }
.app-tile-game i:nth-child(2), .app-tile-game i:nth-child(3) { background: currentColor; }

.statement { padding: 125px 0; color: var(--white); background: var(--ink); }
.statement-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 50px; }
.statement .section-label { color: var(--lime); }
.statement h2 { margin: 0; font-size: clamp(42px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.055em; }
.statement p:not(.section-label) { max-width: 660px; margin: 34px 0 0; color: #b7bbc3; font-size: 19px; line-height: 1.7; }

.work { padding-block: 125px; }
.section-head { display: grid; grid-template-columns: 1fr 390px; gap: 50px; align-items: end; margin-bottom: 62px; }
.section-head h2 { margin: 0; font-size: clamp(42px, 5.2vw, 70px); line-height: 1; letter-spacing: -.055em; }
.section-head > p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.small-card { min-height: 255px; padding: clamp(25px, 4vw, 46px); display: grid; grid-template-columns: 1fr auto; gap: 16px 20px; align-content: center; align-items: start; border-radius: var(--radius); }
.small-card h3 { grid-column: 1; margin: 0; font-size: clamp(26px, 3.4vw, 43px); line-height: 1.05; letter-spacing: -.05em; }
.small-card p { grid-column: 1; margin: 0; max-width: 36ch; font-size: 16px; line-height: 1.65; }
.card-art { grid-area: 1 / 2 / span 2; width: clamp(60px, 8vw, 103px); align-self: center; background: rgba(255, 255, 255, .42); transform: rotate(8deg); }
.card-lime { background: var(--lime); }
.card-blue { background: var(--blue); }
.card-lavender { background: #d8cfff; }
.card-peach { background: #ffc3ac; }

.principles { padding-block: 125px; background: var(--white); }
.principles-head { grid-template-columns: 1fr; }
.principle-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.principle-list article { padding: 38px 40px 20px 0; border-right: 1px solid var(--line); }
.principle-list article:not(:first-child) { padding-left: 40px; }
.principle-list article:last-child { border-right: 0; }
.principle-list h3 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.principle-list p { margin: 16px 0 0; color: var(--muted); line-height: 1.65; }

.contact { padding-block: 125px; }
.contact-card { position: relative; padding: clamp(44px, 7vw, 88px); color: var(--white); background: var(--ink); border-radius: var(--radius); overflow: hidden; isolation: isolate; }
.contact-card h2 { margin: 0; font-size: clamp(44px, 7vw, 78px); line-height: 1; letter-spacing: -.06em; }
.contact-card p { max-width: 33ch; margin: 25px 0 30px; color: #e1e1e8; font-size: 17px; }
.button-light { position: relative; z-index: 2; color: var(--ink); background: var(--white); }
.button-light:hover { background: var(--lime); }
.contact-orb { position: absolute; z-index: -1; border-radius: 50%; }
.orb-a { width: 370px; height: 370px; right: -90px; top: -120px; background: var(--violet); }
.orb-b { width: 180px; height: 180px; right: 190px; bottom: -80px; background: var(--orange); }

.site-footer { padding: 60px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: start; }
.footer-brand { margin-bottom: 14px; }
.site-footer p { margin: 0; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 28px; font-size: 14px; font-weight: 650; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.copyright { grid-column: 1 / -1; padding-top: 30px; border-top: 1px solid var(--line); }

/* Legal pages */
.legal-main { padding: 78px 0 120px; }
.legal-hero { max-width: 820px; padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { margin: 0; font-size: clamp(54px, 7vw, 88px); line-height: .95; letter-spacing: -.06em; }
.legal-hero p { margin: 25px 0 0; color: var(--muted); font-size: 17px; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 70px; padding-top: 58px; }
.legal-aside { position: sticky; top: 115px; align-self: start; color: var(--muted); font-size: 13px; }
.legal-aside a { display: block; margin-top: 14px; color: var(--ink); font-weight: 700; }
.legal-content section { padding: 0 0 38px; }
.legal-content h2 { margin: 0 0 13px; font-size: 25px; letter-spacing: -.03em; }
.legal-content h3 { margin: 24px 0 8px; font-size: 17px; }
.legal-content p, .legal-content li { color: #555a61; line-height: 1.75; }
.legal-content ul { padding-left: 20px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 55px; }
  .hero-copy { position: relative; z-index: 3; }
  .hero-stage { min-height: 460px; }
  .statement-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 32px, 1160px); --radius: 22px; }
  .nav-wrap { height: 72px; }
  .nav-toggle { position: relative; z-index: 3; display: block; }
  .nav-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: absolute; inset: 100% 0 auto; z-index: 2; display: none; flex-direction: column; align-items: flex-start; gap: 18px; padding: 20px 24px 28px; background: var(--paper); border-bottom: 1px solid var(--line); font-size: 22px; }
  .site-nav.open { display: flex; }
  .nav-contact { margin-top: 10px; font-size: 17px; }
  .hero { min-height: auto; padding-block: 55px 70px; gap: 15px; }
  .hero h1 { font-size: clamp(42px, 12vw, 78px); }
  .hero-stage { min-height: clamp(305px, 85vw, 440px); }
  .statement, .work, .principles, .contact { padding-block: 85px; }
  .statement h2 br { display: none; }
  .section-head { grid-template-columns: 1fr; margin-bottom: 42px; }
  .work-grid { grid-template-columns: 1fr; }
  .small-card { min-height: 175px; }
  .principle-list { grid-template-columns: 1fr; }
  .principle-list article, .principle-list article:not(:first-child) { padding: 30px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle-list article:last-child { border-bottom: 0; }
  .contact-card { padding: 38px 26px; }
  .orb-a { width: 190px; height: 190px; right: -95px; top: -92px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .copyright { grid-column: auto; }
  .legal-main { padding-top: 55px; }
  .legal-layout { grid-template-columns: 1fr; gap: 34px; }
  .legal-aside { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
