/* Ryan: studio home. Cream, navy and gold (the logo's colours) with a dark block per app. Inter, mobile first, motion on single elements only. */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --bg: #F7F5F0;
  --bg-2: #EFEBE2;
  --ink: #0F1A2B;
  --muted: #4A5568;
  --line: rgba(15, 26, 43, .14);
  --gold: #D9B45F;
  --gold-text: #7E5C0F;
  --gutter: 20px;
  --max: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss03"; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.skip-link { position: absolute; left: -999px; top: 10px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip-link:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.narrow { max-width: 780px; }

/* Header */
.bar { position: sticky; top: 0; z-index: 60; background: rgba(247, 245, 240, .86); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; padding-top: env(safe-area-inset-top); }
.bar.scrolled, .bar.open { border-color: var(--line); }
.bar-row { position: relative; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.brand img { border-radius: 9px; }
.brand i { font-style: normal; color: var(--gold-text); }
.nav-toggle { display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; }
.nav-toggle-bar { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease); }
.bar.open .nav-toggle-bar:first-child { transform: translateY(3.5px) rotate(45deg); }
.bar.open .nav-toggle-bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav { position: absolute; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); top: 100%; display: grid; padding: 6px var(--gutter) 18px; background: var(--bg); border-bottom: 1px solid var(--line); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.bar.open .nav { visibility: visible; opacity: 1; transform: none; }
.nav a { padding: 15px 0; font-size: 18px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav a:last-child { border-bottom: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent; font-size: 16px; font-weight: 650; text-decoration: none; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-ghost { border-color: rgba(15, 26, 43, .26); }
.btn-lime { background: #B3D48B; color: #121B0C; }
.btn-line { border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-soon { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 650; color: #6CCBFA; background: rgba(28, 176, 246, .1); border: 1.5px solid rgba(28, 176, 246, .35); cursor: default; }
.btn-soon i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* Shared type */
.eyebrow { margin-bottom: 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.eyebrow-gold { color: var(--gold); }
h2 { font-size: clamp(2rem, 1.1rem + 4.2vw, 3.7rem); line-height: 1.05; font-weight: 800; letter-spacing: -.04em; text-wrap: balance; }
.mw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
.mw > span { display: inline-block; }

/* Hero */
.hero { padding: 44px 0 36px; }
.kicker { margin-bottom: 22px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
h1 { max-width: 16em; font-size: clamp(2.35rem, 1rem + 6.6vw, 4.6rem); line-height: 1.02; font-weight: 800; letter-spacing: -.048em; }
.hl { display: block; padding-bottom: .14em; margin-bottom: -.14em; }
.hl > span { display: inline-block; }
.hl-type { min-height: 2.18em; }
.type { color: var(--gold-text); }
.cursor { color: #C99A2E; margin-left: .03em; animation: blink 1.1s steps(1, end) infinite; }
.typing .cursor { animation: none; opacity: 1; }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
.lede { margin-top: 26px; max-width: 54ch; font-size: clamp(1.08rem, 1rem + .5vw, 1.3rem); line-height: 1.6; color: var(--muted); }
.lede strong { color: var(--ink); font-weight: 650; }
.actions { display: grid; gap: 10px; margin-top: 30px; max-width: 360px; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.jump-chip { flex: 1 1 170px; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 20px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: border-color .25s, transform .35s var(--ease), box-shadow .35s var(--ease); }
.jump-chip img { width: 44px; height: 44px; border-radius: 12px; }
.jump-chip strong { display: block; font-size: 16px; line-height: 1.2; }
.jump-chip small { display: block; font-size: 13.5px; color: var(--muted); }

/* App blocks */
.apps { margin-top: 40px; }
.app { position: relative; overflow: hidden; padding: 60px 0 96px; }
.app-traka { background: #141C0E; color: #EAF0DF; --accent: #B3D48B; --soft: #C6D3B6; --faint: rgba(234, 240, 223, .16); }
.app-sipra { background: #12302D; color: #EAF6F1; --accent: #6CCBFA; --soft: #B5D0C8; --faint: rgba(234, 246, 241, .16); }
.wm { position: absolute; left: -.04em; bottom: -.3em; font-size: clamp(6rem, 30vw, 21rem); line-height: .8; font-weight: 900; letter-spacing: -.05em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .06); pointer-events: none; user-select: none; }
.app-grid { position: relative; display: grid; gap: 38px; }
.app-id { display: flex; align-items: center; gap: 15px; }
.app-id img { width: 64px; height: 64px; border-radius: 17px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.app-id h3 { font-size: 1.7rem; line-height: 1.1; font-weight: 800; letter-spacing: -.035em; }
.app-id p { margin-top: 2px; font-size: 14px; color: var(--accent); font-weight: 600; }
.app-tag { margin-top: 28px; font-size: clamp(2.1rem, 1.1rem + 4.6vw, 4rem); line-height: 1.03; font-weight: 800; letter-spacing: -.045em; text-wrap: balance; }
.app-text { margin-top: 16px; max-width: 52ch; font-size: 17px; line-height: 1.65; color: var(--soft); }
.app .actions { margin-top: 28px; }
.app-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--faint); font-size: 14.5px; }
.app-links a { padding: 4px 0; color: var(--soft); text-underline-offset: 4px; transition: color .2s; }
.glance { align-self: center; border-top: 0; }
.glance > div { position: relative; padding: 18px 0; display: grid; gap: 4px; }
.glance > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--faint); transform: scaleX(var(--s, 1)); transform-origin: left; }
.glance > div:last-child { border-bottom: 1px solid var(--faint); }
.glance dt { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.glance dd { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }

/* Approach */
.approach { padding: 72px 0 24px; }
.rules { margin-top: 40px; }
.rules li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; padding: 28px 0; }
.rules li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink); opacity: .25; transform: scaleX(var(--s, 1)); transform-origin: left; }
.rules li:last-child { border-bottom: 1px solid rgba(15, 26, 43, .25); }
.rules b { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--gold-text); padding-top: .6em; }
.rules h3 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); line-height: 1.15; font-weight: 800; letter-spacing: -.03em; }
.rules p { margin-top: 8px; max-width: 54ch; color: var(--muted); }

/* About */
.about { margin-top: 56px; padding: 64px 0; background: var(--bg-2); }
.about-grid { display: grid; gap: 28px; }
.about-body { display: grid; gap: 18px; max-width: 56ch; font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); line-height: 1.7; color: var(--muted); }

/* FAQ */
.faq-sec { padding: 72px 0 24px; }
.faq { margin-top: 32px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 22px 44px 22px 0; font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 15px; height: 2px; margin-top: -1px; background: var(--gold-text); transition: transform .3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq .ans { overflow: hidden; }
.faq p { padding: 0 8px 24px 0; max-width: 64ch; color: var(--muted); }
.faq p a { color: var(--ink); text-underline-offset: 3px; }

/* Contact */
.contact { padding: 56px 0 72px; }
.contact-card { padding: 44px 24px 48px; border-radius: 32px; background: var(--ink); color: #F7F5F0; }
.contact-card h2 { margin-bottom: 12px; }
.contact-card p:not(.eyebrow) { max-width: 46ch; color: #C3CBD8; }
.mail-big { display: inline-block; margin-top: 26px; font-size: clamp(1.25rem, .6rem + 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.15; color: var(--gold); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; text-decoration-color: rgba(217, 180, 95, .45); word-break: break-word; transition: text-decoration-color .25s; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 44px 0 calc(32px + env(safe-area-inset-bottom)); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 20px; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.foot-col { display: grid; align-content: start; gap: 4px; }
.foot-col h2 { margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.foot-col a { width: fit-content; padding: 5px 0; font-size: 15px; color: var(--muted); text-decoration: none; }
.foot-note { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.foot-note a { text-underline-offset: 3px; }

/* Starting states for entrance animations (GSAP finishes them; reduced motion skips them) */
.anim [data-hero] { opacity: 0; transform: translateY(18px); }
.anim .hl > span { transform: translateY(112%); }
.anim [data-rv] { opacity: 0; transform: translateY(24px); }
.anim [data-row], .anim [data-rule] { --s: 0; }
.anim [data-row] > *, .anim [data-rule] > * { opacity: 0; transform: translateY(14px); }

@media (hover: hover) {
  .nav a:hover { color: var(--gold-text); }
  .btn-primary:hover { background: #1d2f4b; }
  .btn-ghost:hover { border-color: var(--ink); background: rgba(15, 26, 43, .05); }
  .btn-lime:hover { background: #c4e19c; }
  .btn-line:hover { border-color: #fff; }
  .jump-chip:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(15, 26, 43, .12); border-color: rgba(15, 26, 43, .3); }
  .app-links a:hover, .foot-col a:hover { color: #fff; text-decoration: underline; }
  .foot-col a:hover { color: var(--ink); }
  .mail-big:hover { text-decoration-color: var(--gold); }
  .faq summary:hover { color: var(--gold-text); }
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
  body { font-size: 17px; }
  .hero { padding: 72px 0 44px; }
  .actions { display: flex; flex-wrap: wrap; max-width: none; }
  .app { padding: 84px 0 150px; }
  .rules li { grid-template-columns: 70px 1fr; gap: 6px 20px; }
  .contact-card { padding: 64px 48px 68px; border-radius: 40px; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .foot-brand { grid-column: auto; }
}

@media (min-width: 860px) {
  .bar-row { height: 72px; }
  .nav-toggle { display: none; }
  .nav { position: static; display: flex; gap: 4px; margin: 0; padding: 0; background: none; border: 0; visibility: visible; opacity: 1; transform: none; }
  .nav a { padding: 8px 14px; font-size: 15px; font-weight: 550; color: var(--muted); border: 0; border-radius: 999px; transition: color .2s; }
}

@media (min-width: 960px) {
  .hero { padding: 104px 0 56px; }
  .apps { margin-top: 56px; }
  .app-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 80px; align-items: center; }
  .approach { padding: 120px 0 40px; }
  .rules li { padding: 34px 0; grid-template-columns: 90px 1fr; }
  .about { margin-top: 96px; padding: 100px 0; }
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
  .faq-sec { padding: 120px 0 40px; }
  .contact { padding: 96px 0 120px; }
}

@media (min-width: 1000px) {
  .hl-type { min-height: 1.1em; }
}

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