/* Suite 327 — shared styles.
   Direction: editorial studio layout. Structure comes from type scale, whitespace and hairline rules
   rather than boxed cards; motion is short, ease-out and only on transform/opacity, and is switched
   off for people who prefer reduced motion. */
:root {
  --ink: #0b0b0c;
  --ink-2: #161618;
  --paper: #0b0b0c;
  --paper-2: #151517;
  --text: #ffffff;
  --muted: rgba(255,255,255,0.62);
  --soft: rgba(255,255,255,0.78);
  --line: rgba(255,255,255,0.12);
  --rule: rgba(255,255,255,0.85);
  --line-dark: rgba(255,255,255,0.12);
  --accent: #c8a46a;
  --gold-ink: rgba(255,255,255,0.5);   /* small labels and numbers: quiet white, not gold */
  --radius: 18px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);   /* ease-out-quint */
  --nav-h: 72px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; background: #0b0b0c; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.menu-lock { overflow: hidden; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -48px; z-index: 50; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

.wordmark {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 22px;
  text-decoration: none;
}
.wordmark.small { font-size: 18px; }

/* ---------- Nav: solid black bar + hamburger ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: var(--ink); color: #fff; }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 48px; padding: 0 6px 0 16px; border: 0; background: none; color: #fff;
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
}
.burger {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28); transition: border-color .3s var(--ease), background .3s var(--ease);
}
.burger i {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.burger i:first-child { top: 17px; }
.burger i:last-child { top: 25px; }
.menu-btn:hover .burger { border-color: #fff; }
.is-open .burger { background: #fff; border-color: #fff; }
.is-open .burger i { background: var(--ink); top: 21px; }
.is-open .burger i:first-child { transform: rotate(45deg); }
.is-open .burger i:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 1; background: var(--ink); color: #fff;
  padding-top: var(--nav-h); overflow-y: auto;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s linear .6s;
}
.is-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease), visibility 0s; }
.menu-inner { min-height: calc(100% - 1px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding-top: 6vh; padding-bottom: 48px; }
.menu-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.menu-links li { border-bottom: 1px solid var(--line-dark); overflow: hidden; }
.menu-links a {
  display: flex; align-items: baseline; gap: 24px; padding: 18px 0;
  font-family: "Oswald", sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(40px, 7vw, 84px); line-height: 1; text-decoration: none; color: #fff;
  transform: translateY(105%); transition: transform .7s var(--ease), color .2s;
}
.menu-links a span { font-size: 15px; letter-spacing: 0.12em; color: rgba(255,255,255,0.45); font-weight: 500; }
.menu-links a:hover { color: rgba(255,255,255,0.6); }
.is-open .menu-links a { transform: none; }
.is-open .menu-links li:nth-child(1) a { transition-delay: .12s, 0s; }
.is-open .menu-links li:nth-child(2) a { transition-delay: .18s, 0s; }
.is-open .menu-links li:nth-child(3) a { transition-delay: .24s, 0s; }
.is-open .menu-links li:nth-child(4) a { transition-delay: .30s, 0s; }
.menu-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; color: rgba(255,255,255,0.6); opacity: 0; transition: opacity .5s var(--ease) .35s; }
.is-open .menu-foot { opacity: 1; }
.menu-foot a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); }

/* ---------- Shared bits ---------- */
.eyebrow {
  margin: 0 0 18px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.eyebrow.dark { color: var(--gold-ink); }
.btn {
  display: inline-flex; align-items: center; min-height: 52px; text-decoration: none;
  padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: transform .3s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #fff; color: var(--ink); }
.btn-primary:hover { background: #e6e4df; }
.btn-ghost { border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.btn-ghost:hover { border-color: #fff; }

/* text link with animated underline + arrow */
.link-arrow {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; text-decoration: none; color: var(--text); padding: 6px 0;
}
.link-arrow::after { content: "→"; transition: transform .35s var(--ease); }
.link-arrow::before {
  content: ""; position: absolute; left: 0; right: 1.4em; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0.35); transform-origin: left; transition: transform .45s var(--ease);
}
.link-arrow:hover::before { transform: scaleX(1); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow.light { color: #fff; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; padding: 120px 0 0; overflow: hidden; }
.hero-title { font-size: clamp(44px, 8vw, 112px); font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; max-width: 14ch; }
.hero-foot { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.lede { margin: 0; max-width: 56ch; font-size: 19px; color: rgba(255,255,255,0.72); }
.hero-actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.ticker { margin-top: 96px; border-top: 1px solid var(--line-dark); padding: 22px 0; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span {
  font-family: "Oswald", sans-serif; font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px;
}
.ticker-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.35); margin-left: 28px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 128px 0; border-top: 1px solid var(--line); }
.section-ink { background: var(--ink); color: #fff; }
.section-head { margin-bottom: 64px; max-width: 720px; }
.section h2, .cta h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 600; letter-spacing: -0.03em; }
.section-sub { margin: 18px 0 0; color: var(--muted); font-size: 18px; max-width: 52ch; }
.section-ink .section-sub { color: rgba(255,255,255,0.64); }

/* two-column editorial layout: sticky heading on the left */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.split-head { position: sticky; top: calc(var(--nav-h) + 40px); }

/* numbered rows separated by hairlines (instead of cards) */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.row {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 24px; row-gap: 8px;
  padding: 32px 0 34px; border-bottom: 1px solid var(--line);
}
.row::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: #fff;
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.row:hover::after { transform: scaleX(1); }
.row-num { grid-row: span 2; font-family: "Oswald", sans-serif; font-size: 20px; color: var(--gold-ink); letter-spacing: 0.06em; padding-top: 4px; }
.row h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.02em; }
.row p { margin: 0; color: var(--muted); font-size: 17px; max-width: 54ch; }

/* projects: full-width rows on black */
.project {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px;
  padding: 48px 0; border-top: 1px solid var(--line-dark);
}
.project:last-child { border-bottom: 1px solid var(--line-dark); }
.project-id { display: flex; gap: 22px; align-items: center; align-self: start; }
.app-icon { width: 96px; height: 96px; border-radius: 22%; box-shadow: 0 10px 30px rgba(0,0,0,0.45); transition: transform .5s var(--ease); }
.project:hover .app-icon { transform: rotate(-4deg) scale(1.04); }
.project h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; }
.app-meta { margin: 6px 0 0; color: rgba(255,255,255,0.55); font-size: 14px; letter-spacing: 0.04em; }
.project-desc { margin: 0; font-size: 18px; color: rgba(255,255,255,0.78); max-width: 58ch; }
.tags { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 14px; color: rgba(255,255,255,0.8); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-dark); }
.app-actions { margin-top: 28px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink); text-decoration: none;
  padding: 10px 20px 10px 16px; border-radius: 12px; transition: transform .3s var(--ease);
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn svg { width: 22px; height: 26px; }
.store-btn span { display: flex; flex-direction: column; font-size: 19px; font-weight: 600; line-height: 1.1; }
.store-btn small { font-size: 11px; font-weight: 500; opacity: 0.75; }

/* about */
.about-copy p { margin: 0 0 20px; font-size: 18px; color: var(--soft); max-width: 60ch; }
.about-copy .statement { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.3; letter-spacing: -0.02em; color: var(--text); font-weight: 500; margin-bottom: 28px; }

/* CTA */
.cta { background: var(--ink); color: #fff; padding: 136px 0 120px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta p { margin: 20px 0 0; color: rgba(255,255,255,0.68); font-size: 18px; max-width: 52ch; }
.cta-mail {
  display: inline-block; margin-top: 48px; color: #fff; text-decoration: none;
  font-family: "Oswald", sans-serif; font-weight: 500; font-size: clamp(32px, 6.4vw, 88px); letter-spacing: 0.01em; line-height: 1.05;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0% 3px no-repeat;
  padding-bottom: 6px; transition: background-size .6s var(--ease), color .2s;
  overflow-wrap: anywhere;
}
.cta-mail:hover { background-size: 100% 3px; color: var(--accent); }
.cta .cta-alt { margin-top: 40px; font-size: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,0.6); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; flex-wrap: wrap; font-size: 14px; }
.footer .wordmark { color: #fff; }
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
.reveal-ready .rows [data-reveal]:nth-child(2) { transition-delay: .08s; }
.reveal-ready .rows [data-reveal]:nth-child(3) { transition-delay: .16s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .project { grid-template-columns: 1fr; gap: 32px; }
  .split-head { position: static; }
  .hero-foot { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions { justify-content: flex-start; }
  .section { padding: 96px 0; }
}
@media (max-width: 560px) {
  :root { --nav-h: 64px; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 72px; }
  .ticker { margin-top: 64px; }
  .menu-label { display: none; }
  .row { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; }
  .project-id { gap: 16px; }
  .app-icon { width: 72px; height: 72px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .cta { padding: 96px 0 88px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .ticker-track { flex-wrap: wrap; width: auto; }
}
