/* Cornerman Studio. Dark only by brief. One accent: corner red. Radius scale: 24px containers, pill buttons. */
:root {
  --bg: #0d0d0c;
  --bg-2: #141413;
  --bg-3: #1c1c1a;
  --line: rgb(237 235 230 / 0.09);
  --line-2: rgb(237 235 230 / 0.16);
  --text: #edebe6;
  --muted: #a3a097;
  --accent: #e8462e;
  --accent-ink: #160806;
  --radius: 24px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 5vw, 64px);
  --max: 1320px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
h1, h2 { font-variation-settings: "wdth" 72; text-transform: uppercase; line-height: 0.95; }
h2 { font-size: clamp(2.2rem, 4.3vw, 3.8rem); max-width: 20ch; }
h3 { font-size: 1.2rem; line-height: 1.25; font-variation-settings: "wdth" 100; letter-spacing: -0.01em; }
p { margin: 0; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

section { padding: clamp(72px, 9vw, 128px) var(--pad); max-width: var(--max); margin: 0 auto; }

/* ---------- Nav (floating island) ---------- */
.nav-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 80; padding: 0 16px; }
.nav {
  max-width: 1080px; margin: 0 auto; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 8px 0 20px;
  background: rgb(20 20 19 / 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05), 0 20px 50px -20px rgb(0 0 0 / 0.6);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.01em; font-size: 1rem; white-space: nowrap; }
.mark { width: 26px; height: 26px; color: var(--text); flex: none; }
.brand-sub { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 0.94rem; color: var(--muted); transition: color .3s var(--ease), background-color .3s var(--ease); }
.nav-links a:hover { color: var(--text); background: rgb(255 255 255 / 0.05); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang button {
  font: inherit; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); transition: background-color .3s var(--ease), color .3s var(--ease);
}
.lang button[aria-pressed="true"] { background: var(--bg-3); color: var(--text); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; cursor: pointer; border-radius: 999px; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }
.mobile-menu {
  max-width: 1080px; margin: 8px auto 0; padding: 12px;
  background: rgb(20 20 19 / 0.96); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; gap: 2px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 14px 16px; text-decoration: none; font-size: 1.15rem; font-weight: 600; border-radius: 14px; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu.open a:nth-child(2) { transition-delay: .04s; }
.mobile-menu.open a:nth-child(3) { transition-delay: .08s; }
.mobile-menu.open a:nth-child(4) { transition-delay: .12s; }
.mobile-menu.open a:nth-child(5) { transition-delay: .16s; }
.mobile-menu .mm-cta { background: var(--accent); color: var(--accent-ink); margin-top: 6px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .4s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); padding-right: 8px; }
.btn-primary:hover { background: #f05a42; }
.btn-primary.btn-sm { padding: 9px 18px; font-size: 0.92rem; }
.btn-lg { font-size: 1.1rem; padding: 16px 10px 16px 28px; }
.btn-icon {
  width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center;
  background: rgb(22 8 6 / 0.14); font-size: 1.05rem;
  transition: transform .5s var(--ease);
}
.btn:hover .btn-icon { transform: translate(2px, -2px) scale(1.05); }
.btn-ghost { color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: rgb(237 235 230 / 0.4); background: rgb(255 255 255 / 0.03); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100dvh;
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: clamp(32px, 5vw, 80px);
  padding-top: 112px; padding-bottom: 56px;
}
.hero-media img { max-height: calc(100dvh - 190px); }
.eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; margin-bottom: 28px;
}
.hero h1 { font-size: clamp(2.8rem, 5.3vw, 5.2rem); max-width: 15ch; }
.hero h1 em { color: var(--accent); font-style: italic; display: inline-block; padding-bottom: 0.06em; }
.lede { margin-top: 28px; font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 40ch; line-height: 1.55; }
.hero-ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

.bezel {
  padding: 8px; border-radius: calc(var(--radius) + 8px);
  background: rgb(255 255 255 / 0.03); border: 1px solid var(--line);
}
.bezel > img, .bezel > div {
  border-radius: var(--radius);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.08);
}
.hero-media { margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(0.35) contrast(1.05); }

/* ---------- Statement ---------- */
.statement { padding-top: clamp(40px, 6vw, 80px); }
.statement p {
  font-size: clamp(1.7rem, 3.6vw, 3.1rem); line-height: 1.18; font-weight: 400; letter-spacing: -0.02em;
  max-width: 26ch; color: var(--muted); font-variation-settings: "wdth" 88;
}
.statement strong { color: var(--text); font-weight: 700; }

/* ---------- Roles ---------- */
.roles h2 { margin-bottom: clamp(40px, 6vw, 72px); }
.roles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line-2); }
.role { padding: 36px 40px 8px 0; }
.role + .role { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--line-2); }
.role h3 { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 24px; }
.role h3 i { font-size: 1.5rem; }
.role-corner h3 { color: var(--accent); }
.role ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.role li { font-size: 1.15rem; line-height: 1.45; padding-left: 28px; position: relative; }
.role li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 14px; height: 1.5px; background: var(--line-2); }
.role-corner li::before { background: var(--accent); }

/* ---------- How ---------- */
.how { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.how-head { position: sticky; top: 120px; }
.how-head p { margin-top: 24px; color: var(--muted); font-size: 1.1rem; max-width: 32ch; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 4px 20px; padding: 32px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  content: counter(step); grid-row: span 2;
  font-weight: 800; font-size: 2.6rem; line-height: 1; font-variation-settings: "wdth" 62;
  color: transparent; -webkit-text-stroke: 1px rgb(237 235 230 / 0.35);
}
.step h3 { font-size: 1.45rem; text-transform: uppercase; font-variation-settings: "wdth" 80; letter-spacing: -0.005em; }
.step p { color: var(--muted); max-width: 46ch; }

/* ---------- Build (bento) ---------- */
.build h2 { margin-bottom: clamp(40px, 6vw, 64px); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
}
.tile p { color: var(--muted); max-width: 40ch; }
.tile-icon { font-size: 2rem; margin-bottom: auto; }
.tile-a { grid-column: span 7; grid-row: span 2; min-height: 520px; }
.tile-b { grid-column: span 5; }
.tile-c { grid-column: span 5; }
.tile-d { grid-column: span 12; min-height: 320px; }
.tile-photo { padding: 0; justify-content: flex-end; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.5) brightness(0.62); transition: transform 1.2s var(--ease); }
.tile-photo:hover img { transform: scale(1.03); }
.tile-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgb(13 13 12 / 0.92)); }
.tile-photo .tile-body { position: relative; z-index: 1; padding: 32px; display: grid; gap: 10px; }
.tile-photo .tile-body p { color: #c9c6be; }
.tile-photo h3, .tile-accent h3 { font-size: 1.6rem; text-transform: uppercase; font-variation-settings: "wdth" 78; }
.tile-c h3 { font-size: 1.6rem; text-transform: uppercase; font-variation-settings: "wdth" 78; }
.tile-accent { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.tile-accent p { color: rgb(22 8 6 / 0.78); }
.tile-d .tile-body { max-width: 560px; }

/* ---------- Deal ---------- */
.deal h2 { margin-bottom: clamp(40px, 6vw, 64px); }
.deal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 64px; }
.term { display: grid; grid-template-columns: 48px 1fr; gap: 6px 18px; }
.term i { grid-row: span 2; font-size: 2rem; color: var(--accent); line-height: 1; }
.term h3 { font-size: 1.3rem; }
.term p { color: var(--muted); max-width: 42ch; }
.newnote { margin-top: clamp(56px, 8vw, 96px); }
.bezel-soft { max-width: 820px; }
.newnote-inner { background: var(--bg-2); padding: clamp(28px, 4vw, 44px); }
.newnote-inner h3 { font-size: 1.5rem; text-transform: uppercase; font-variation-settings: "wdth" 80; margin-bottom: 12px; }
.newnote-inner p { color: var(--muted); font-size: 1.1rem; max-width: 58ch; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-size: 1.2rem; font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i { font-size: 1.3rem; color: var(--muted); transition: transform .5s var(--ease), color .3s var(--ease); flex: none; }
.faq-list details[open] summary i { transform: rotate(45deg); color: var(--accent); }
.faq-list details p { padding: 0 48px 28px 0; color: var(--muted); max-width: 60ch; }
.faq-list a { color: var(--text); text-underline-offset: 3px; }

/* ---------- Apply ---------- */
.apply { padding-bottom: clamp(64px, 8vw, 110px); }
.apply-inner {
  display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: stretch; overflow: hidden;
  border-radius: calc(var(--radius) + 8px); background: var(--bg-2); border: 1px solid var(--line);
}
.apply-copy { padding: clamp(36px, 6vw, 80px); display: grid; gap: 24px; align-content: center; }
.apply-copy h2 { font-size: clamp(2.3rem, 4.8vw, 4.2rem); max-width: 14ch; }
.apply-copy > p { color: var(--muted); font-size: 1.1rem; max-width: 44ch; }
.apply-mail { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }
.apply-mail a { color: var(--text); text-underline-offset: 3px; }
.apply-media { margin: 0; min-height: 360px; position: relative; }
.apply-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4) brightness(0.8); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 32px var(--pad);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; color: var(--muted); font-size: 0.95rem;
}
.footer-inner .brand { color: var(--text); margin-right: auto; }
.footer-inner a { text-underline-offset: 3px; }
.footer-copy { opacity: 0.8; }

/* ---------- Reveal motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; filter: none; }
  .hero .reveal:nth-child(2) { transition-delay: .06s; }
  .hero .reveal:nth-child(3) { transition-delay: .12s; }
  .hero .reveal:nth-child(4) { transition-delay: .18s; }
  .hero-media.reveal { transition-delay: .1s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-cta { display: none; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  section { padding-left: 16px; padding-right: 16px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 112px; gap: 40px; }
  .hero h1 { font-size: clamp(2.7rem, 12.5vw, 4.4rem); }
  .hero-media img { aspect-ratio: 4 / 4.2; }
  .roles-grid { grid-template-columns: 1fr; }
  .role, .role + .role { padding: 32px 0 8px; border-left: 0; }
  .role + .role { border-top: 1px solid var(--line-2); margin-top: 24px; }
  .how, .faq { grid-template-columns: 1fr; }
  .how-head { position: static; }
  .step { grid-template-columns: 48px 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile-a, .tile-b, .tile-c, .tile-d { grid-column: auto; grid-row: auto; min-height: 260px; }
  .tile-a { min-height: 420px; }
  .deal-grid { grid-template-columns: 1fr; gap: 36px; }
  .apply-inner { grid-template-columns: 1fr; }
  .apply-media { min-height: 280px; order: -1; }
  .faq-list details p { padding-right: 0; }
}
@media (max-width: 420px) {
  .brand-sub { display: none; }
  .lang button { padding: 5px 8px; }
}
