:root {
  --bg: #f3f3ee;
  --surface: #fdfdfb;
  --ink: #15171c;
  --muted: #565b66;
  --line: #dfe0d8;
  --accent: #ff5a1f;
  --on-accent: #15171c;
  --tile-site: #cbebe5;
  --tile-poster: #ffe1d2;
  --shadow: 0 30px 60px -30px rgba(21, 23, 28, .35);
  --r: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111216;
    --surface: #1a1c22;
    --ink: #eef0ea;
    --muted: #a3a8b1;
    --line: #2b2e36;
    --accent: #ff6a33;
    --tile-site: #133538;
    --tile-poster: #3a2319;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 Onest, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 700; line-height: 1.02; letter-spacing: -.02em; margin: 0; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.accent { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.nav__in { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.15rem; text-decoration: none; white-space: nowrap; }
.logo__mark { width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
.nav nav { display: flex; gap: 28px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav nav a:hover { color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600; padding: 15px 26px; border-radius: 999px; border: 0; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .2s; box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--accent) 90%, transparent); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { padding: 10px 18px; font-size: .95rem; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--dark { background: #15171c; color: #f3f3ee; box-shadow: none; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(32px, 5vw, 72px); padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 7vw, 96px); min-height: calc(100dvh - 68px); }
.badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: .92rem; font-weight: 500; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #1faa59; box-shadow: 0 0 0 0 rgba(31, 170, 89, .5); animation: live 2.2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(31, 170, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 170, 89, 0); } }
h1 { font-size: clamp(3rem, 7vw, 6.2rem); font-weight: 800; letter-spacing: -.035em; }
.hero__sub { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 44ch; margin: 24px 0 0; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.collage { position: relative; aspect-ratio: 1 / .92; }
.collage__site { position: absolute; top: 4%; right: 0; width: 88%; border-radius: var(--r); box-shadow: var(--shadow); transform: rotate(2deg); animation: floatA 9s var(--ease) infinite alternate; }
.collage__poster { position: absolute; left: 0; bottom: 0; width: 42%; border-radius: 12px; box-shadow: var(--shadow); transform: rotate(-6deg); animation: floatB 11s var(--ease) infinite alternate; }
.collage__glow { position: absolute; inset: 10% 5% 0 15%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent), radial-gradient(closest-side at 30% 70%, color-mix(in srgb, #3ec6b3 50%, transparent), transparent); filter: blur(40px); }
@keyframes floatA { to { transform: rotate(1deg) translateY(-10px); } }
@keyframes floatB { to { transform: rotate(-4deg) translateY(8px); } }

/* marquee */
.marquee { background: var(--ink); color: var(--bg); overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: 0 -2vw; }
.marquee__track { display: flex; gap: 44px; width: max-content; animation: slide 32s linear infinite; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2.1rem); white-space: nowrap; }
.marquee__track span { display: inline-flex; align-items: center; gap: 44px; }
.marquee__track span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections */
.section { padding: clamp(80px, 11vw, 140px) 0 0; }
.section > h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); margin-bottom: clamp(32px, 4vw, 52px); }

/* work bento */
.work { display: grid; grid-template-columns: 1.75fr 1fr; gap: 20px; }
.card { display: flex; flex-direction: column; border-radius: calc(var(--r) + 8px); overflow: hidden; text-decoration: none; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card--site { background: var(--tile-site); }
.card--poster { background: var(--tile-poster); }
.card__media { padding: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px) 0; }
.card__media img { border-radius: 14px 14px 0 0; box-shadow: 0 -2px 30px -12px rgba(0, 0, 0, .25); transition: transform .7s var(--ease); transform-origin: bottom center; }
.card:hover .card__media img { transform: scale(1.02); }
.card--poster .card__media { display: flex; justify-content: center; }
.card--poster .card__media img { width: min(78%, 300px); border-radius: 10px; transform: rotate(-3deg) translateY(8px); }
.card--poster:hover .card__media img { transform: rotate(-1deg) translateY(0); }
.card__body { background: var(--surface); padding: clamp(22px, 2.6vw, 32px); flex: 1; display: flex; flex-direction: column; gap: 12px; }
.card__body h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.card__body p { margin: 0; color: var(--muted); max-width: 60ch; }
.tags { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .85rem; font-weight: 500; padding: 4px 12px; border-radius: 999px; background: var(--bg); }
.card__link { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--accent); }
.card__link span { display: inline-block; transition: transform .35s var(--ease); }
.card:hover .card__link span { transform: translateX(5px); }

/* offer */
.offer { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: stretch; }
.offer__item { border-radius: calc(var(--r) + 8px); padding: clamp(28px, 4vw, 48px); }
.offer__item h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 14px; }
.offer__item p { margin: 0 0 24px; max-width: 46ch; }
.offer__item ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.offer__item li { display: flex; gap: 12px; align-items: baseline; font-weight: 500; }
.offer__item li::before { content: ""; flex: none; width: 14px; height: 2px; transform: translateY(-5px); }
.offer__item--ink { background: #15171c; color: #eef0ea; box-shadow: inset 0 0 0 1px var(--line); }
.offer__item--ink p { color: #b9bdc5; }
.offer__item--ink li::before { background: var(--accent); }
.offer__item--accent { background: var(--accent); color: #15171c; margin-top: clamp(0px, 5vw, 64px); }
.offer__item--accent p { color: #2b1a12; }
.offer__item--accent li::before { background: #15171c; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 0; left: 0; height: 3px; border-radius: 3px; }
.timeline::before { right: 0; background: var(--line); }
.timeline::after { width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.timeline.is-in::after { transform: scaleX(1); }
.timeline li { padding-top: 32px; }
.timeline h3 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); margin-bottom: 10px; }
.timeline p { margin: 0; color: var(--muted); }

/* contact */
.contact { margin-top: clamp(100px, 13vw, 170px); background: var(--accent); color: #15171c; padding: clamp(72px, 10vw, 130px) 0; }
.contact__in h2 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-weight: 800; letter-spacing: -.035em; max-width: 13ch; }
.contact__in p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 48ch; margin: 22px 0 36px; color: #2b1a12; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.copy { display: inline-flex; align-items: center; gap: 14px; font: inherit; font-weight: 600; color: #15171c; background: rgba(255, 255, 255, .28); border: 1.5px solid rgba(21, 23, 28, .25); border-radius: 999px; padding: 13px 16px 13px 22px; cursor: pointer; transition: background .2s, transform .35s var(--ease); max-width: 100%; }
.copy:hover { background: rgba(255, 255, 255, .45); }
.copy:active { transform: scale(.98); }
.copy__text { overflow-wrap: anywhere; }
.copy__hint { font-size: .85rem; background: #15171c; color: #f3f3ee; padding: 4px 12px; border-radius: 999px; }

.foot { display: flex; justify-content: space-between; padding: 28px 0; color: var(--muted); font-size: .92rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { --d: .08s; }
.hero .reveal:nth-child(3) { --d: .16s; }
.hero .reveal:nth-child(4) { --d: .24s; }

/* responsive */
@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav .btn--sm { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .collage { max-width: 520px; width: 100%; margin: 12px auto 0; }
  .work, .offer { grid-template-columns: 1fr; }
  .offer__item--accent { margin-top: 0; }
  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 28px; }
  .timeline::before, .timeline::after { top: 0; bottom: 0; left: 0; right: auto; width: 3px; height: auto; }
  .timeline::after { transform: scaleY(0); transform-origin: top; }
  .timeline.is-in::after { transform: scaleY(1); }
  .timeline li { padding: 0 0 32px; }
}
@media (max-width: 480px) {
  .hero__cta .btn { flex: 1 1 100%; }
  .nav__in { gap: 12px; }
  .nav .btn--sm { padding: 9px 14px; font-size: .88rem; }
  .copy { width: 100%; justify-content: space-between; padding: 12px 12px 12px 18px; gap: 10px; font-size: .9rem; }
  .copy__text { overflow-wrap: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .collage__site, .collage__poster, .marquee__track, .live { animation: none; }
  .timeline::after { transition: none; transform: none; }
  .card, .card__media img, .btn { transition: none; }
}
