:root {
  --ink: #0f0e0d;
  --ink-2: #1a1816;
  --ink-line: #2c2926;
  --paper: #f3ede3;
  --paper-2: #e9e1d4;
  --paper-line: #d8cebf;
  --fg-dim: #8f877d;
  --red: #ff4d2e;
  --sun: #ffc23d;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--red); color: var(--ink); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; position: relative; }

/* Paper grain */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Sections */
.ink { background: var(--ink); color: var(--paper); position: relative; }
.paper { background: var(--paper); color: var(--ink); position: relative; }
.paper .dim { color: #6d655c; }
.ink .dim { color: var(--fg-dim); }

/* Nav */
nav { display: flex; justify-content: space-between; align-items: center; padding: 28px 0; position: relative; z-index: 5; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 24px; text-decoration: none; letter-spacing: -.01em; }
.logo svg { width: 30px; height: 30px; color: var(--red); transition: transform .5s var(--ease); }
.logo:hover svg { transform: rotate(-20deg); }
nav ul { display: flex; gap: 8px; list-style: none; }
nav ul a {
  text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid transparent; transition: border-color .2s, background .2s;
}
nav ul a:hover { border-color: currentColor; }
nav ul a.pill { background: var(--paper); color: var(--ink); }
nav ul a.pill:hover { background: var(--red); border-color: var(--red); }

/* Type */
.kicker { font-family: var(--hand); font-size: 28px; color: var(--sun); transform: rotate(-2deg); display: inline-block; }
.display {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.035em;
  font-size: clamp(56px, 11.5vw, 168px); line-height: .92;
}
.display em { font-style: italic; color: var(--red); }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.line:nth-child(2) > span { animation-delay: .12s; }
.line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.03em; font-size: clamp(42px, 7vw, 96px); line-height: .98; }
h2 em { font-style: italic; color: var(--red); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.note { font-family: var(--hand); font-size: 26px; line-height: 1.1; color: var(--red); }

/* Scribble underline */
.scribble { position: relative; white-space: nowrap; }
.scribble svg { position: absolute; left: -2%; bottom: -.08em; width: 104%; height: .32em; overflow: visible; }
.scribble path { fill: none; stroke: var(--sun); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s .9s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid currentColor;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px) rotate(-45deg); }
.btn-red { background: var(--red); border-color: var(--red); color: var(--ink); }
.btn-red:hover { background: var(--sun); border-color: var(--sun); }
.btn-line:hover { background: currentColor; }
.ink .btn-line:hover { color: var(--paper); background: transparent; border-color: var(--red); }
.paper .btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Hero */
.hero { min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.hero-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 0 56px; position: relative; z-index: 2; }
.hero .kicker { margin-bottom: 20px; }
.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-top: 56px; flex-wrap: wrap; }
.hero-foot p { max-width: 42ch; font-size: 19px; }
.hero-foot .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.pen-stroke { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.pen-stroke path { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; opacity: .55; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.2s .3s cubic-bezier(.6, .1, .2, 1) forwards; }
.nib { position: absolute; right: 6%; top: 18%; width: clamp(120px, 18vw, 260px); z-index: 1; color: var(--ink-line); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(4deg); } }

/* Marquee */
.marquee { background: var(--red); color: var(--ink); overflow: hidden; padding: 22px 0; border-block: 2px solid var(--ink); }
.marquee-track { display: flex; width: max-content; animation: slide 28s linear infinite; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: clamp(32px, 5vw, 60px); line-height: 1; padding-right: 40px; white-space: nowrap; }
.marquee span b { font-style: normal; font-size: .6em; vertical-align: middle; padding-left: 40px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Section spacing */
.block { padding: 140px 0; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 64px; }
.head .note { transform: rotate(-4deg); max-width: 14ch; text-align: right; }
.head .note svg { width: 60px; height: 40px; display: block; margin: 4px 0 0 auto; transform: scaleX(-1); }

/* Showcase */
.showcase {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  background: var(--ink); color: var(--paper); border-radius: 40px; padding: 72px; overflow: hidden; position: relative;
  text-decoration: none; isolation: isolate;
  transition: transform .5s var(--ease);
}
.showcase::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -120px; top: -120px; z-index: -1;
  background: radial-gradient(circle, rgba(255, 77, 46, .55), transparent 65%);
  transition: transform .8s var(--ease);
}
.showcase:hover { transform: translateY(-6px); }
.showcase:hover::before { transform: scale(1.15) translate(-30px, 30px); }
.showcase .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border: 1.5px solid var(--ink-line); padding: 6px 12px; border-radius: 999px; margin-bottom: 28px; color: var(--sun); }
.showcase h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7vw, 92px); letter-spacing: -.035em; line-height: .95; }
.showcase h3 em { color: var(--red); }
.showcase p { margin-top: 22px; max-width: 38ch; color: var(--fg-dim); font-size: 18px; }
.showcase .btn { margin-top: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips span { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--ink-line); }

.next-card {
  margin-top: 28px; border: 2px dashed var(--paper-line); border-radius: 40px; padding: 48px 56px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.next-card h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -.02em; }
.next-card .note { font-size: 30px; transform: rotate(-3deg); }

/* Phone mockup */
.phone {
  width: 300px; height: 620px; margin: 0 auto; border-radius: 52px; padding: 12px; position: relative;
  background: #000; box-shadow: 0 0 0 2px #333, 0 40px 80px -20px rgba(0, 0, 0, .7);
  transform: rotate(4deg); transition: transform .8s var(--ease);
}
.showcase:hover .phone, .phone:hover { transform: rotate(0deg) scale(1.02); }
.phone-screen {
  height: 100%; border-radius: 41px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #2a1410 0%, #120c0a 55%, #0b0a09 100%);
  padding: 54px 22px 24px; display: flex; flex-direction: column; color: #fff; font-family: var(--sans);
}
.ph-island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 92px; height: 28px; border-radius: 20px; background: #000; }
.ph-top { display: flex; justify-content: space-between; font-size: 12px; opacity: .7; margin-bottom: 18px; }
.ph-art {
  aspect-ratio: 1; border-radius: 22px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--red), var(--sun));
  box-shadow: 0 20px 40px -10px rgba(255, 77, 46, .5);
}
.ph-art svg { width: 38%; color: var(--ink); }
.ph-art::after { content: "SKETCHES"; position: absolute; bottom: 12px; left: 14px; font-weight: 800; font-size: 11px; letter-spacing: .2em; color: rgba(15, 14, 13, .65); }
.ph-meta { margin-top: 20px; }
.ph-meta b { display: block; font-size: 18px; font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
.ph-meta span { font-size: 13px; opacity: .6; }
.ph-wave { display: flex; align-items: center; gap: 3px; height: 40px; margin-top: 18px; }
.ph-wave i { flex: 1; background: rgba(255, 255, 255, .3); border-radius: 2px; height: 30%; animation: bar 1.1s ease-in-out infinite alternate; }
.ph-wave i.on { background: var(--red); }
@keyframes bar { to { height: 100%; } }
.ph-times { display: flex; justify-content: space-between; font-size: 11px; opacity: .55; margin-top: 8px; font-variant-numeric: tabular-nums; }
.ph-controls { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding: 0 6px; }
.ph-controls svg { width: 28px; height: 28px; }
.ph-play { width: 68px; height: 68px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.ph-play svg { width: 26px; height: 26px; }

/* Story */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.quote { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -.03em; }
.quote em { color: var(--red); }
.story-text p { font-size: 19px; }
.story-text p + p { margin-top: 20px; }
.sig { margin-top: 36px; display: flex; align-items: center; gap: 16px; }
.sig .name { font-family: var(--hand); font-size: 64px; line-height: 1; color: var(--sun); transform: rotate(-6deg); }
.sig small { color: var(--fg-dim); font-size: 14px; line-height: 1.4; }
.sticky {
  margin-top: 48px; background: var(--sun); color: var(--ink); padding: 26px 28px; width: min(320px, 100%);
  font-family: var(--hand); font-size: 26px; line-height: 1.15; transform: rotate(-3deg);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6);
}

/* Process */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.step { padding: 40px 32px 40px 0; border-right: 2px solid var(--ink); }
.step + .step { padding-left: 32px; }
.step:last-child { border-right: 0; }
.step .n { font-family: var(--serif); font-size: 120px; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--ink); letter-spacing: -.04em; transition: color .4s; }
.step:hover .n { color: var(--red); -webkit-text-stroke-color: var(--red); }
.step h4 { font-family: var(--serif); font-weight: 600; font-size: 30px; margin: 18px 0 10px; letter-spacing: -.02em; }
.step p { color: #6d655c; }

/* Contact */
.contact { text-align: center; padding: 160px 0 120px; overflow: hidden; }
.contact h2 { font-size: clamp(56px, 11vw, 160px); }
.contact .btns { margin-top: 48px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
footer { background: var(--ink); border-top: 1px solid var(--ink-line); overflow: hidden; }
.foot-row { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0; font-size: 14px; color: var(--fg-dim); flex-wrap: wrap; }
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: var(--paper); }
.wordmark { font-family: var(--serif); font-style: italic; font-size: 25vw; line-height: .75; letter-spacing: -.05em; color: var(--ink-2); text-align: center; white-space: nowrap; margin-bottom: -.12em; user-select: none; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; }

/* SquareCast page */
.sc-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 40px 0 120px; position: relative; z-index: 2; }
.sc-hero .display { font-size: clamp(56px, 9vw, 132px); }
.glow { position: absolute; width: 900px; height: 900px; right: -300px; top: -200px; background: radial-gradient(circle, rgba(255, 77, 46, .45), transparent 62%); pointer-events: none; }
.badge-soon { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 14px; border-radius: 16px; background: var(--paper); color: var(--ink); text-decoration: none; margin-top: 40px; }
.badge-soon svg { width: 28px; height: 28px; }
.badge-soon small { display: block; font-size: 11px; font-weight: 600; opacity: .6; line-height: 1.2; }
.badge-soon b { display: block; font-size: 18px; line-height: 1.2; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { border-radius: 32px; padding: 36px; position: relative; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; }
.tile h4 { font-family: var(--serif); font-weight: 600; font-size: 30px; letter-spacing: -.02em; line-height: 1.05; }
.tile p { margin-top: 10px; font-size: 16px; max-width: 34ch; }
.tile .viz { margin-top: auto; padding-top: 28px; }
.t-ink { background: var(--ink); color: var(--paper); }
.t-ink p { color: var(--fg-dim); }
.t-red { background: var(--red); color: var(--ink); }
.t-sun { background: var(--sun); color: var(--ink); }
.t-line { border: 2px solid var(--ink); }
.t-line p, .t-red p, .t-sun p { color: rgba(15, 14, 13, .72); }
.span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; } .span-2 { grid-column: span 2; }

.queue { display: grid; gap: 10px; }
.q { display: flex; align-items: center; gap: 14px; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 16px; padding: 12px 14px; transition: transform .3s var(--ease); }
.q:hover { transform: translateX(8px); }
.q i { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.q b { display: block; font-size: 14px; }
.q span { font-size: 12px; color: var(--fg-dim); }
.q .grip { margin-left: auto; color: var(--fg-dim); font-size: 18px; letter-spacing: -2px; }

.moon { font-family: var(--serif); font-size: 88px; line-height: 1; display: flex; align-items: end; gap: 8px; }
.moon span { font-family: var(--hand); font-size: 34px; animation: zz 2.4s ease-in-out infinite; }
.moon span:nth-child(3) { animation-delay: .3s; font-size: 28px; } .moon span:nth-child(4) { animation-delay: .6s; font-size: 22px; }
@keyframes zz { 50% { transform: translateY(-10px); opacity: .5; } }

.arabic { font-family: "Noto Naskh Arabic", serif; font-size: clamp(56px, 7vw, 92px); line-height: 1.1; direction: rtl; }
.stories { display: flex; gap: 12px; max-width: 280px; }
.story-card { flex: 1; aspect-ratio: 9 / 16; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; justify-content: end; font-size: 11px; font-weight: 700; color: #fff; transition: transform .4s var(--ease); }
.story-card:nth-child(1) { background: linear-gradient(160deg, #ff4d2e, #8a1c6b); transform: rotate(-6deg); }
.story-card:nth-child(2) { background: linear-gradient(160deg, #111, #444); transform: translateY(-10px); }
.story-card:nth-child(3) { background: linear-gradient(160deg, #1877f2, #0b3d91); transform: rotate(6deg); }
.tile:hover .story-card { transform: none; }
.headlines { display: grid; gap: 0; }
.headlines div { display: flex; gap: 14px; padding: 14px 0; border-top: 1.5px solid rgba(15, 14, 13, .25); font-weight: 600; font-size: 15px; }
.headlines div span { font-family: var(--serif); font-style: italic; opacity: .6; }
.lock { font-family: var(--serif); font-size: 72px; line-height: 1; letter-spacing: -.03em; }
.lock-pill { margin-top: 16px; display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .08); border: 1px solid var(--ink-line); border-radius: 18px; padding: 12px; }
.lock-pill i { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--red), var(--sun)); flex: none; }
.lock-pill b { font-size: 13px; display: block; } .lock-pill span { font-size: 12px; color: var(--fg-dim); }
.lock-pill svg { width: 20px; height: 20px; margin-left: auto; }

/* 404 */
.lost { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 28px; padding: 32px; }

/* Responsive */
@media (max-width: 900px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  nav ul li:not(:last-child) { display: none; }
  .block { padding: 96px 0; }
  .showcase, .sc-hero, .story-grid { grid-template-columns: 1fr; }
  .showcase { padding: 40px 24px 48px; border-radius: 28px; gap: 48px; }
  .story-grid { gap: 48px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 32px 0; border-right: 0; border-bottom: 2px solid var(--ink); }
  .step .n { font-size: 88px; }
  .next-card { padding: 32px 24px; border-radius: 28px; }
  .bento { grid-template-columns: 1fr; }
  .span-4, .span-3, .span-2 { grid-column: auto; }
  .tile { padding: 28px 24px; min-height: 0; border-radius: 26px; }
  .nib { opacity: .5; top: 10%; }
  .head .note { text-align: left; }
  .head .note svg { margin: 4px auto 0 0; transform: none; }
  .phone { width: 270px; height: 560px; }
  .sc-hero { padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
