/* Agency template by uniDev.
   Colors live in the two theme blocks below. --a1 and --a2 are the two aurora colors. */
:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1360px;
  --radius: 24px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
[data-theme="dark"] {
  --bg: #071214;
  --surface: #0d1c1f;
  --ink: #e8f2f0;
  --muted: #8ea6a3;
  --line: rgba(232, 242, 240, .12);
  --a1: #3ee0c5;
  --a2: #8b7bff;
  --accent: #3ee0c5;
  --on-accent: #04201b;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #eef4f3;
  --surface: #ffffff;
  --ink: #0b1d20;
  --muted: #4e6466;
  --line: rgba(11, 29, 32, .12);
  --a1: #19c2a6;
  --a2: #7a68ff;
  --accent: #0c8f7b;
  --on-accent: #ffffff;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .4s, color .4s; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.04em; line-height: 1.02; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* Header */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--pad); padding-top: max(16px, env(safe-area-inset-top)); transition: background-color .3s, transform .45s var(--ease);
}
.top.scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.top.hide { transform: translateY(-100%); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -.03em; text-decoration: none; }
.logo .mark { color: var(--a1); transition: transform .8s var(--ease); }
.logo:hover .mark { transform: rotate(180deg); }
#nav { display: flex; align-items: center; gap: 4px; }
#nav a { text-decoration: none; padding: 9px 14px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: color .2s; }
#nav a:hover { color: var(--ink); }
#nav .nav-cta { margin-left: 8px; color: var(--on-accent); background: var(--accent); font-weight: 600; }
#nav .nav-cta:hover { color: var(--on-accent); filter: brightness(1.08); }
.top-actions { display: flex; gap: 8px; }
.icon-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: border-color .2s, transform .2s var(--ease), background-color .2s; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:active { transform: scale(.93); }
.icon-btn:disabled { opacity: .35; cursor: default; }
[data-theme="light"] .i-moon, [data-theme="dark"] .i-sun { display: none; }
.menu-btn { display: none; }
.burger { position: relative; width: 18px; height: 10px; }
.burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger i:first-child { top: 0; }
.burger i:last-child { top: 8px; }
.menu-btn[aria-expanded="true"] .burger i:first-child { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:last-child { top: 4px; transform: rotate(-45deg); }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px;
  border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  font: 600 15px var(--font); text-decoration: none; cursor: pointer; overflow: hidden; transition: transform .3s var(--ease), border-color .2s, color .2s;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); border-radius: inherit; transition: transform .45s var(--ease); }
.btn > * { position: relative; }
.btn:hover::before { transform: none; }
.btn:hover { color: var(--bg); border-color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost::before { display: none; }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.magnetic span { pointer-events: none; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.aurora { position: absolute; inset: -20%; z-index: -2; filter: blur(80px) saturate(1.2); opacity: .75; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
[data-theme="light"] .aurora { opacity: .55; }
[data-theme="light"] .aurora i { mix-blend-mode: multiply; }
.aurora i:nth-child(1) { width: 55vmax; height: 30vmax; left: 10%; top: 10%; background: var(--a1); animation: drift1 18s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 45vmax; height: 35vmax; right: 0; top: 25%; background: var(--a2); animation: drift2 22s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 35vmax; height: 20vmax; left: 35%; top: 0; background: color-mix(in srgb, var(--a1) 50%, #ffffff); opacity: .5; animation: drift3 15s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 10vh) rotate(25deg) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-22vw, -8vh) rotate(-20deg) scale(.9); } }
@keyframes drift3 { to { transform: translate(-10vw, 18vh) scale(1.3); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, transparent 30%, var(--bg) 96%); }
.grain { position: absolute; inset: 0; z-index: -1; opacity: .08; pointer-events: none; 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='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: 140px var(--pad) clamp(56px, 9vh, 96px); display: grid; gap: clamp(24px, 4vh, 40px); }
.kicker { color: var(--muted); font-size: 15px; }
.hero-title { font-size: clamp(48px, min(9.4vw, 15vh), 150px); max-width: 15ch; letter-spacing: -.055em; line-height: .98; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .w > span { display: inline-block; }
.js .hero-title .w > span { transform: translateY(110%) rotate(4deg); animation: up 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 200ms); }
@keyframes up { to { transform: none; } }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.lead { max-width: 50ch; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--ink); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

/* Clients */
.clients { padding: 40px 0 24px; display: grid; gap: 22px; }
.clients > p { text-align: center; color: var(--muted); font-size: 14px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; gap: clamp(40px, 6vw, 88px); align-items: center; animation: marquee 30s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.wm { font-size: clamp(22px, 2.6vw, 32px); color: var(--muted); white-space: nowrap; transition: color .3s; }
.wm:hover { color: var(--ink); }
.wm1 { font-weight: 700; letter-spacing: -.04em; }
.wm2 { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: clamp(19px, 2.2vw, 27px); }
.wm3 { font-weight: 800; letter-spacing: .14em; }
.wm4 { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.wm5 { font-weight: 300; letter-spacing: -.02em; }
.wm6 { font-weight: 600; }
.wm7 { font-weight: 500; letter-spacing: .3em; font-size: clamp(17px, 2vw, 24px); }
.wm8 { font-weight: 700; font-style: italic; letter-spacing: -.05em; }

/* Statement */
.statement { max-width: var(--max); margin: 0 auto; padding: clamp(96px, 16vw, 200px) var(--pad); }
.statement p { font-size: clamp(30px, 4.6vw, 68px); line-height: 1.12; letter-spacing: -.04em; font-weight: 500; max-width: 22ch; }
.statement .sw { color: var(--muted); opacity: .3; transition: opacity .25s, color .25s; }
.statement .sw.lit { opacity: 1; color: var(--ink); }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 11vw, 140px) var(--pad); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head h2 { font-size: clamp(42px, 6.4vw, 96px); }
.section-head p { color: var(--muted); max-width: 40ch; }

/* Services accordion */
.services { border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(22px, 3vw, 34px) 0; cursor: pointer; }
.service summary::-webkit-details-marker { display: none; }
.s-name { font-size: clamp(30px, 4.4vw, 60px); font-weight: 600; letter-spacing: -.045em; line-height: 1.05; transition: transform .4s var(--ease), color .3s; }
.service summary:hover .s-name { transform: translateX(10px); }
.service[open] .s-name { color: var(--accent); }
.s-icon { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); transition: transform .4s var(--ease), background-color .3s; }
.s-icon::before, .s-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px 0 0 -8px; background: currentColor; border-radius: 2px; }
.s-icon::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.service[open] .s-icon { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.service[open] .s-icon::after { transform: rotate(0); }
.s-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; padding: 0 0 32px; animation: open .5s var(--ease); }
.s-body p { color: var(--muted); font-size: 18px; max-width: 48ch; }
.s-body ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.s-body li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } }

/* Cases carousel */
.carousel-nav { display: flex; gap: 8px; }
.cases {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 620px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--pad) 24px; margin: 0 calc(var(--pad) * -1); scroll-padding-inline: var(--pad); scrollbar-width: none; overscroll-behavior-x: contain;
}
.cases::-webkit-scrollbar { display: none; }
.case { scroll-snap-align: start; }
.case a { display: grid; gap: 18px; text-decoration: none; }
.case-art { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; background: radial-gradient(120% 90% at 0% 0%, var(--a) 0, transparent 60%), var(--b); }
.case-art .shape { position: absolute; transition: transform .9s var(--ease); }
.case-art .s1 { width: 46%; aspect-ratio: 1; right: 10%; top: 14%; border-radius: 50%; background: linear-gradient(160deg, #fff6, transparent); border: 1px solid #fff5; }
.case-art .s2 { width: 50%; height: 50%; right: 12%; top: 12%; border-radius: 40px; background: linear-gradient(135deg, var(--a), transparent); transform: rotate(18deg); }
.case-art .s3 { width: 0; height: 0; right: 14%; top: 10%; border-left: 120px solid transparent; border-right: 120px solid transparent; border-bottom: 200px solid color-mix(in srgb, var(--a) 70%, #fff); opacity: .8; }
.case-art .s4 { width: 56%; aspect-ratio: 1; right: -6%; top: -8%; border-radius: 50%; background: repeating-radial-gradient(circle, var(--a) 0 6px, transparent 6px 18px); opacity: .7; }
.case a:hover .shape { transform: translate(-14px, 12px) rotate(-10deg) scale(1.06); }
.case-word { position: absolute; left: 7%; bottom: 6%; font-size: clamp(56px, 9vw, 120px); font-weight: 700; letter-spacing: -.06em; color: #fff; line-height: .9; }
.case-info { display: grid; gap: 6px; }
.case-info h3 { font-size: 26px; letter-spacing: -.03em; }
.case-info p { color: var(--muted); }
.metric { margin-top: 6px; font-size: 15px; color: var(--muted); }
.metric b { color: var(--accent); font-size: 17px; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { position: relative; padding: 28px 24px 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; overflow: hidden; }
.steps li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--a1), var(--a2)); transform: scaleX(0); transform-origin: 0; transition: transform .8s var(--ease) .3s; }
.steps li.in::after { transform: none; }
.step-n { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600; }
.steps h3 { font-size: 28px; }
.steps p { color: var(--muted); }

/* Numbers */
.numbers { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.numbers > div { display: grid; gap: 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.numbers b { font-size: clamp(48px, 6.6vw, 96px); letter-spacing: -.06em; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; background: linear-gradient(120deg, var(--ink) 40%, var(--a1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.numbers span { color: var(--muted); }

/* Testimonial */
.testimonial figure { margin: 0; display: grid; gap: 32px; max-width: 1100px; }
.testimonial blockquote { margin: 0; font-size: clamp(28px, 4vw, 54px); line-height: 1.15; letter-spacing: -.035em; font-weight: 500; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.testimonial figcaption b { display: block; color: var(--ink); }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--a1), var(--a2)); color: #04201b; font-weight: 700; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.contact-copy { display: grid; gap: 22px; align-content: start; }
.contact-copy h2 { font-size: clamp(40px, 5.6vw, 80px); }
.contact-copy > p { color: var(--muted); font-size: 18px; max-width: 44ch; }
.contact-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; font-size: 18px; }
.contact-list span { font-size: 13px; color: var(--muted); }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); width: fit-content; }
.contact-list a:hover { border-color: var(--accent); }
#form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(20px, 3vw, 36px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); align-content: start; }
#form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
#form .wide { grid-column: 1 / -1; }
input, textarea, select { width: 100%; min-height: 50px; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 16px var(--font); transition: border-color .2s, box-shadow .2s; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
#form .btn { justify-self: start; }
.form-note { grid-column: 1 / -1; min-height: 1.6em; font-size: 14px; color: var(--muted); }

/* Footer */
.foot { overflow: hidden; border-top: 1px solid var(--line); }
.foot-row { max-width: var(--max); margin: 0 auto; padding: 28px var(--pad); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.foot-row ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot-word { text-align: center; font-size: 22.5vw; line-height: .78; font-weight: 700; letter-spacing: -.07em; margin: 0 0 -.06em; background: linear-gradient(180deg, var(--ink), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; user-select: none; }

/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .numbers { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .menu-btn { display: grid; }
  #nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
    padding: 100px var(--pad) 48px; background: var(--bg); clip-path: circle(0 at calc(100% - 44px) 40px); visibility: hidden;
    transition: clip-path .7s var(--ease), visibility 0s .7s;
  }
  #nav.open { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; transition: clip-path .7s var(--ease); }
  #nav a { font-size: 42px; font-weight: 600; letter-spacing: -.045em; color: var(--ink); padding: 6px 0; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  #nav.open a { opacity: 1; transform: none; }
  #nav.open a:nth-child(2) { transition-delay: .05s; }
  #nav.open a:nth-child(3) { transition-delay: .1s; }
  #nav.open a:nth-child(4) { transition-delay: .15s; }
  #nav.open a:nth-child(5) { transition-delay: .2s; }
  #nav .nav-cta { margin: 24px 0 0; font-size: 17px; letter-spacing: 0; padding: 16px 26px; color: var(--on-accent); }
  .top.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; background: transparent; }
  .hero-foot { grid-template-columns: 1fr; }
  .s-body { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-inner { padding-top: 110px; padding-bottom: 80px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .scroll-cue { display: none; }
  .steps { grid-template-columns: 1fr; }
  .cases { grid-auto-columns: 86%; gap: 14px; }
  .carousel-nav { display: none; }
  #form { grid-template-columns: 1fr; }
  #form .btn { justify-self: stretch; }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .s-icon { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero-title .w > span { transform: none; }
  .statement .sw { opacity: 1; color: var(--ink); }
}
