/* ARV Studio — site styles */

:root {
  --bg: #0B0B0D;
  --bg-2: #101013;
  --surface: #151518;
  --surface-2: #1C1C21;
  --line: rgba(245, 245, 244, 0.1);
  --line-2: rgba(245, 245, 244, 0.18);
  --text: #F5F5F4;
  --text-2: #B6B6BB;
  --text-3: #8A8A91;
  --violet: #7C5CFF;
  --violet-strong: #7253FF;
  --violet-soft: #A898FF;
  --ok: #3DDC84;
  --danger: #FF8A80;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 3.4vw, 48px);
  --section: clamp(104px, 13vw, 200px);
  --radius: 16px;
  --nav-h: 84px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

::selection { background: var(--violet-strong); color: #fff; }
:focus { outline: none; }
[tabindex="-1"]:focus { outline: none; }
.has-cursor [data-cursor] { cursor: none; }
:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: #2C2C33 var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2C2C33; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--violet); }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.muted { color: var(--text-3); }

.wrap { width: 100%; max-width: 1640px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 100;
  background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 999px; font-weight: 560;
  transition: top 0.3s var(--ease-out);
}
.skip:focus { top: 16px; }

/* split text */
.w { display: inline-block; overflow: clip; overflow-clip-margin: 0.12em; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w__i { display: inline-block; will-change: transform; }

/* Buttons & links */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 1rem; font-weight: 560; line-height: 1.2; letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--text);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn--primary { background: var(--violet-strong); color: #fff; }
.btn--primary:hover { color: var(--bg); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { color: var(--bg); border-color: var(--text); }
.btn--lg { padding: 18px 28px; font-size: 1.0625rem; }
.btn--sm { padding: 10px 17px; font-size: 0.93rem; }
.btn__icon { width: 18px; height: 18px; flex: none; transition: transform 0.5s var(--ease-out); }
.btn:hover .btn__icon:not(.btn__icon--lead) { transform: translateX(4px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.link-u {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding-bottom: 3px;
  color: var(--text);
  font-weight: 500;
}
.link-u::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor;
  transform-origin: right;
  transition: transform 0.6s var(--ease-out);
}
.link-u:hover::after { animation: underline 0.8s var(--ease-out); }
@keyframes underline {
  0% { transform: scaleX(1); transform-origin: right; }
  45% { transform: scaleX(0); transform-origin: right; }
  46% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}
.link-u svg { width: 16px; height: 16px; transition: transform 0.5s var(--ease-out); }
.link-u:hover svg { transform: translate(2px, -2px); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: transform 0.6s var(--ease-out), background-color 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 11, 13, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-101%); }
.nav__inner {
  max-width: 1640px; margin-inline: auto; padding-inline: var(--gutter);
  height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { width: 30px; height: 30px; transition: transform 0.6s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__name { font-size: 1.12rem; font-weight: 620; letter-spacing: -0.02em; }
.brand__name span { font-weight: 400; color: var(--text-2); }
.nav__links { margin-left: auto; display: flex; gap: 34px; }
.nav__links a { position: relative; color: var(--text-2); font-size: 0.97rem; transition: color 0.3s ease; }
.nav__links a:hover, .nav__links a.is-current { color: var(--text); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: var(--violet); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.nav__links a.is-current::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 14px; margin-left: 28px; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.lang__btn {
  padding: 6px 11px; border-radius: 999px;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em; color: var(--text-3);
  transition: background-color 0.35s ease, color 0.35s ease;
}
.lang__btn:hover { color: var(--text); }
.lang__btn[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.menu-btn { display: none; align-items: center; gap: 10px; padding: 8px 4px 8px 8px; font-size: 0.95rem; }
.menu-btn__lines { position: relative; width: 22px; height: 10px; }
.menu-btn__lines i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out); }
.menu-btn__lines i:first-child { top: 0; }
.menu-btn__lines i:last-child { top: 8.5px; }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:last-child { top: 4.25px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--bg);
  padding: calc(var(--nav-h) + 32px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
}
.menu__links a {
  display: block; overflow: hidden;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2.4rem, 11vw, 4rem); font-weight: 560; letter-spacing: -0.035em; line-height: 1.05;
}
.menu__links a span { display: inline-block; }
.menu__foot { display: flex; flex-direction: column; gap: 14px; padding-top: 32px; color: var(--text-2); }
.menu__foot a { display: inline-flex; align-items: center; gap: 10px; }
.menu__foot svg { width: 20px; height: 20px; }

/* Hero */
.hero { padding-top: calc(var(--nav-h) + clamp(28px, 4.5vh, 72px)); }
.hero__title {
  font-size: clamp(2.9rem, 0.6rem + 8.4vw, 8.25rem);
  font-weight: 580;
  line-height: 0.93;
  letter-spacing: -0.04em;
  max-width: 13.2em;
  text-wrap: balance;
}
.hero__title .dot, .contact__title .dot { color: var(--violet); }
.hero__row {
  margin-top: clamp(28px, 3.6vh, 48px);
  display: grid;
  grid-template-columns: auto minmax(0, 46ch) 1fr;
  align-items: center;
  gap: clamp(24px, 3.4vw, 56px);
}
.hero__actions { display: flex; align-items: center; gap: 28px; grid-column: 1; grid-row: 1; }
.hero__lede { grid-column: 2; color: var(--text-2); font-size: 1.0625rem; line-height: 1.55; }
.hero__foot { grid-column: 3; justify-self: end; text-align: right; display: flex; flex-direction: column; gap: 6px; color: var(--text-3); font-size: 0.93rem; }
.hero__place { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; }
.hero__place .sep { width: 18px; height: 1px; background: var(--line-2); }
.hero__status.is-busy .pulse, .hero__status.is-busy .pulse::after { background: #F5B544; }
.hero__status { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--text-2); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(3.2); opacity: 0; } }

/* Ticker */
.ticker {
  margin-top: clamp(28px, 4vh, 48px);
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: clamp(14px, 1.5vw, 22px);
  user-select: none;
}
.ticker__track { display: flex; width: max-content; will-change: transform; }
.ticker__list { display: flex; flex: none; }
.ticker__list li {
  display: inline-flex; align-items: center;
  padding-right: clamp(28px, 3.2vw, 52px);
  font-size: clamp(1.35rem, 0.9rem + 1.6vw, 2.35rem);
  font-weight: 460; letter-spacing: -0.025em; line-height: 1.1;
  color: var(--text-2);
  white-space: nowrap;
}
.ticker__list li::after {
  content: ""; width: 0.24em; height: 0.24em; border-radius: 50%;
  background: var(--text-3); margin-left: clamp(28px, 3.2vw, 52px);
}

/* Section heads */
.h2 {
  font-size: clamp(2.3rem, 1rem + 3.7vw, 4.6rem);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.section-head--row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 34ch);
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head__aside { color: var(--text-2); font-size: 1.0625rem; line-height: 1.55; }

/* Work */
.work { padding-top: clamp(32px, 3vw, 48px); padding-bottom: var(--section); }
.work .section-head--row { margin-bottom: clamp(24px, 2.2vw, 36px); }
.work__grid {
  --mh: clamp(300px, 35vw, 580px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row dense;
  column-gap: clamp(16px, 1.8vw, 28px);
  row-gap: clamp(56px, 6vw, 96px);
}
.project { position: relative; min-width: 0; }
.project--feature { grid-column: span 2; }
.project__media {
  position: relative; display: block;
  height: var(--mh);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
  container-type: inline-size;
}
.project__media--site { background: radial-gradient(120% 90% at 50% 0%, #1F1F26 0%, #131317 60%); }
.browser {
  position: absolute; left: 6.5%; right: 6.5%; top: 8%; bottom: -4%;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #1B1B20;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.9s var(--ease-out);
}
.browser__bar {
  position: relative; z-index: 1;
  height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px;
  background: #1D1D22; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A3A42; flex: none; }
.browser__url {
  margin-inline: auto; transform: translateX(-20px);
  font-family: var(--mono); font-size: 0.75rem; color: var(--text-3);
  background: #141418; border-radius: 6px; padding: 3px 12px;
}
.browser__view { position: relative; height: calc(100% - 34px); overflow: hidden; }
.browser__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: opacity 0.8s var(--ease-out), transform 1.2s var(--ease-out); }
.browser__view img + img, .is-cycling > img { opacity: 0; transform: scale(1.04); }
.is-cycling > img.is-on { opacity: 1; transform: none; }
.project__media--site:hover .browser { transform: translateY(-2.5%) scale(1.012); }

.project__info { padding-top: 22px; }
.project__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.project__title { font-size: clamp(1.5rem, 1.05rem + 1vw, 2.1rem); font-weight: 560; letter-spacing: -0.03em; line-height: 1.1; }
.project__tag { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 0.88rem; white-space: nowrap; }
.project__meta { margin-top: 6px; color: var(--text-3); font-size: 0.95rem; }
.project__desc { margin-top: 12px; color: var(--text-2); max-width: 48ch; }
.project__link { margin-top: 18px; }
.project__note {
  position: absolute; top: 3%; left: 9%; z-index: 2;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.01em;
  color: rgba(245, 245, 244, 0.72);
}

/* Narrow live-site card: the browser bleeds off the right edge */
.project__media--site.is-narrow .browser { left: 9%; right: -42%; top: 10%; }
.project__media--site.is-narrow .browser__url { transform: none; margin-left: 12px; }

/* Phone screenshots */
.project__media--phone { background: radial-gradient(120% 90% at 50% 0%, #1F1F26 0%, #131317 60%); }
.phones { position: absolute; inset: 9% 6% auto; display: flex; justify-content: center; align-items: flex-start; gap: 5cqi; transition: transform 0.9s var(--ease-out); }
.project__media--phone:hover .phones { transform: translateY(-2.5%); }
.phone {
  position: relative; flex: none;
  width: 54cqi; aspect-ratio: 9 / 19.2;
  padding: 1.6cqi; border-radius: 9cqi;
  background: #1D1D22;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 7.6cqi; }
.phones--2 .phone { width: 40cqi; }
.phones--2 .phone:nth-child(2) { margin-top: 10%; }
.project--feature .phones--1 .phone { width: 26cqi; }
.project--feature .phones--2 .phone { width: 24cqi; }
.project--feature .phones--3 .phone { width: 22cqi; }
.project--feature .phones--3 .phone:nth-child(2) { margin-top: -3%; }
.project--feature .phones--3 .phone:nth-child(odd) { margin-top: 6%; }

/* Real system screenshots: an app window bleeding off the card's right edge */
.tone-cafe { --ui-accent: #9A4A12; --ui-tint: #F6E7D8; background: radial-gradient(130% 100% at 30% 0%, #2E1E14 0%, #17110D 70%); }
.project__media--app .appwin {
  position: absolute; left: 8%; top: 10%; width: 172%;
  border-radius: 12px 12px 0 0; overflow: hidden;
  background: #1B1B20;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.9s var(--ease-out);
}
.project__media--app .browser__view { position: relative; height: auto; aspect-ratio: 16 / 10; overflow: hidden; }
.project__media--app .browser__url { margin: 0 0 0 12px; transform: none; }
.project__media--app:hover .appwin { transform: translate(-4%, -2.5%); }
.project--feature .project__media--app .appwin { left: 6.5%; width: 87%; }

/* CTA card */
.project--cta {
  grid-column: 1 / -1;
  min-height: clamp(200px, 17vw, 280px);
  display: flex; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding: clamp(24px, 2.6vw, 40px);
  border-radius: var(--radius);
  background: var(--violet-strong);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.project--cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #5E3FF0;
  clip-path: circle(0% at 100% 100%);
  transition: clip-path 0.9s var(--ease-out);
}
.project--cta:hover::before { clip-path: circle(150% at 100% 100%); }
.project--cta__title { font-size: clamp(2rem, 1rem + 2.6vw, 3.8rem); font-weight: 560; letter-spacing: -0.038em; line-height: 1; max-width: 12em; text-wrap: balance; }
.project--cta__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-weight: 560; font-size: 1.0625rem; flex: none; }
.project--cta__icon {
  width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--violet-strong);
  display: grid; place-items: center;
  transition: transform 0.7s var(--ease-out);
}
.project--cta__icon svg { width: 24px; height: 24px; }
.project--cta:hover .project--cta__icon { transform: rotate(-45deg) scale(1.08); }

/* System card tones (also used by the story dashboard logo) */
.tone-resto { --ui-accent: #EC6A2E; --ui-tint: #FDEBE2; background: radial-gradient(130% 100% at 20% 0%, #33190F 0%, #1A110D 70%); }
.tone-ferra { --ui-accent: #F2B21B; --ui-tint: #FEF4DA; background: radial-gradient(130% 100% at 80% 0%, #1E2531 0%, #11151C 70%); }
.tone-skin  { --ui-accent: #D9668C; --ui-tint: #FBE6EE; background: radial-gradient(130% 100% at 30% 0%, #2E1621 0%, #170F13 70%); }
.ui__logo {
  width: 2.2em; height: 2.2em; border-radius: 0.65em; flex: none;
  background: var(--ui-accent, #EC6A2E); color: #fff;
  display: grid; place-items: center; font-weight: 700; margin-bottom: 0.9em;
}

/* Statement */
.statement { padding-block: clamp(40px, 6vw, 96px) clamp(24px, 4vw, 64px); }
.statement__text {
  max-width: 21em;
  font-size: clamp(2rem, 0.9rem + 3.4vw, 4.4rem);
  font-weight: 520;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}
.statement__text .sw { transition: none; }

/* Story */
.story { position: relative; }
.story__pin { min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--nav-h) + 16px) 40px; }
.story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.story__copy .h2 { font-size: clamp(2.1rem, 1rem + 2.9vw, 3.9rem); max-width: 10em; }
.story__steps { margin-top: clamp(32px, 4vw, 56px); }
.story__step { padding: 22px 0; border-top: 1px solid var(--line); transition: opacity 0.6s var(--ease-out); }
.js .story:not(.is-static) .story__step:not(.is-active) { opacity: 0.34; }
.js .story:not(.is-static) .toast { opacity: 0; }
.story.is-static .toast { display: none; }
.story__step h3 { font-size: clamp(1.25rem, 1rem + 0.6vw, 1.6rem); font-weight: 560; letter-spacing: -0.025em; line-height: 1.2; }
.story__step p { margin-top: 8px; color: var(--text-2); max-width: 38ch; }
.story__progress { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.story__progress i { position: absolute; inset: 0; background: var(--violet); transform: scaleX(var(--p, 0)); transform-origin: left; }

.story__stage { position: relative; }
.story__note { position: absolute; right: 2px; bottom: -30px; font-family: var(--mono); font-size: 0.78rem; color: var(--text-3); }
.device {
  position: relative;
  aspect-ratio: 16 / 10.4;
  border-radius: 16px;
  overflow: hidden;
  background: #1B1B20;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.07);
  container-type: inline-size;
}
.device__view { position: relative; height: calc(100% - 34px); overflow: hidden; background: #FAFAF8; color: #17171B; font-size: 1.55cqi; line-height: 1.35; }

.site { position: absolute; inset: 0; display: flex; flex-direction: column; transform-origin: 50% 0; }
.site__nav { display: flex; align-items: center; gap: 1.8em; padding: 1.2em 2.2em; font-size: 0.95em; }
.site__nav b { margin-right: auto; font-size: 1.15em; letter-spacing: -0.02em; }
.site__nav span { color: #5A5A60; }
.site__nav .site__navbtn { background: #17171B; color: #fff; padding: 0.5em 1.05em; border-radius: 99em; }
.site__hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2em; align-items: center; padding: 0.8em 2.2em 1.6em; }
.site__copy b { display: block; font-size: 3.1em; line-height: 1; letter-spacing: -0.04em; font-weight: 660; max-width: 8.5em; }
.site__cta { display: inline-block; margin-top: 1.1em; padding: 0.8em 1.4em; border-radius: 99em; background: #EC6A2E; color: #fff; font-weight: 600; }
.site__plate {
  position: relative; aspect-ratio: 1; width: 82%; justify-self: center; border-radius: 50%;
  background: radial-gradient(circle, #F1B262 0 46%, #E99A45 47% 56%, #FFFFFF 57% 66%, #EDEAE3 67% 69%, #fff 70%);
  box-shadow: 0 1.6em 3em -1em rgba(0, 0, 0, 0.2);
}
.site__plate i { position: absolute; width: 18%; height: 9%; border-radius: 50% 50% 40% 40%; background: #E8553A; border: 0.25em solid #F7C3A5; transform: rotate(var(--r)); }
.site__plate i:nth-child(1) { left: 30%; top: 34%; --r: -20deg; }
.site__plate i:nth-child(2) { left: 50%; top: 44%; --r: 25deg; }
.site__plate i:nth-child(3) { left: 36%; top: 56%; --r: -5deg; }
.site__menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1em; padding: 0 2.2em; }
.site__menu div { background: #fff; border: 1px solid #EAE9E4; border-radius: 0.9em; padding: 0.7em; }
.site__menu i { display: block; aspect-ratio: 16 / 9; border-radius: 0.6em; margin-bottom: 0.6em; }
.site__menu i { --food: #E9853F; --table: #E8D9C4; background: radial-gradient(circle at 50% 54%, var(--food) 0 17%, rgba(0,0,0,0.08) 17.5% 18.5%, #fff 19% 27%, #E6E1D8 27.5% 28.5%, var(--table) 29%); }
.site__menu .c1 { --food: #E46A3A; --table: #2F4A44; }
.site__menu .c2 { --food: #E9A23B; --table: #6B4A33; }
.site__menu .c3 { --food: #5F9A4E; --table: #D9CBB4; }
.site__menu b { display: block; font-size: 0.95em; }
.site__menu span { font-size: 0.85em; color: #75757B; }

.toasts { position: absolute; right: 1.6em; top: 4.6em; width: 19em; display: flex; flex-direction: column; gap: 0.6em; z-index: 3; }
.toast {
  display: flex; align-items: flex-start; gap: 0.75em;
  padding: 0.85em 1em;
  border-radius: 0.95em;
  background: #17171B; color: #fff;
  box-shadow: 0 1.2em 2.4em -0.8em rgba(0, 0, 0, 0.45);
}
.toast b { display: block; font-size: 0.98em; }
.toast span { font-size: 0.85em; color: #B6B6BB; }
.toast__dot { width: 0.6em; height: 0.6em; margin-top: 0.4em; border-radius: 50%; background: var(--ok); flex: none; }
.toast__dot.is-b { background: var(--violet-soft); }

.dash { position: absolute; inset: 0; display: flex; background: #F4F4F1; z-index: 2; }
.dash__side { width: 4.4em; flex: none; display: flex; flex-direction: column; align-items: center; gap: 0.9em; padding: 1.3em 0; background: #EBEAE5; }
.dash__side .ui__logo { --ui-accent: #EC6A2E; margin-bottom: 0.6em; }
.dash__side i { width: 1.7em; height: 1.7em; border-radius: 0.5em; background: #DAD9D3; }
.dash__side i.is-on { background: #17171B; }
.dash__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1em; padding: 1.4em 1.8em; }
.dash__top { display: flex; align-items: baseline; justify-content: space-between; }
.dash__top b { font-size: 1.6em; letter-spacing: -0.03em; font-weight: 640; }
.dash__top .mono { color: #85858C; font-size: 0.9em; }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9em; }
.dash__kpis div, .dash__chart, .dash__list { background: #fff; border: 1px solid #E7E6E1; border-radius: 0.9em; padding: 0.95em 1.05em; }
.dash small { display: block; color: #64646B; font-size: 0.82em; }
.dash__kpis b { display: block; margin-top: 0.15em; font-size: 1.85em; letter-spacing: -0.035em; font-weight: 640; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash__row { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.45fr 1fr; gap: 0.9em; }
.dash__chart { display: flex; flex-direction: column; }
.dash__bars { flex: 1; display: flex; align-items: flex-end; gap: 0.5em; margin-top: 0.8em; min-height: 5em; }
.dash__bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 0.3em 0.3em 0.1em 0.1em; background: #F6CDB8; transform-origin: bottom; }
.dash__bars i:nth-child(8) { background: #EC6A2E; }
.dash__list p { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; padding: 0.55em 0; border-top: 1px solid #F0EFEA; font-size: 0.95em; white-space: nowrap; }
.dash__list small + p { border-top: 0; margin-top: 0.25em; }
.dash__list span { font-size: 0.8em; padding: 0.2em 0.65em; border-radius: 99em; background: #E7F6EC; color: #17703F; font-weight: 600; }
.dash__list .is-warn span { background: #FFEBDD; color: #A4430B; }

.fake-cursor { position: absolute; left: 30%; top: 70%; width: 1.9em; height: 1.9em; z-index: 4; opacity: 0; filter: drop-shadow(0 0.2em 0.4em rgba(0, 0, 0, 0.3)); }

/* Services */
.services { padding-block: var(--section); }
.svc { border-top: 1px solid var(--line); }
.svc__item { border-bottom: 1px solid var(--line); }
.svc__h { font: inherit; }
.svc__btn {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  padding-block: clamp(26px, 3vw, 44px);
  text-align: left;
}
.svc__title {
  font-size: clamp(2rem, 0.9rem + 3.5vw, 4.4rem);
  font-weight: 540; letter-spacing: -0.038em; line-height: 1;
  transition: transform 0.7s var(--ease-out), color 0.4s ease;
}
.svc__line { color: var(--text-2); max-width: 42ch; transition: color 0.4s ease; }
.svc__plus {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: transform 0.6s var(--ease-out), background-color 0.4s ease, border-color 0.4s ease;
}
.svc__plus svg { width: 22px; height: 22px; }
.svc__btn:hover .svc__title { transform: translateX(14px); }
.svc__btn:hover .svc__line { color: var(--text); }
.svc__btn:hover .svc__plus { border-color: var(--text); }
.svc__item.is-open .svc__plus { transform: rotate(45deg); background: var(--violet-strong); border-color: var(--violet-strong); color: #fff; }
.svc__panel { overflow: hidden; }
.svc__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px clamp(16px, 2vw, 32px); padding-bottom: clamp(30px, 3vw, 44px); }
.svc__list li { display: flex; align-items: baseline; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line-2); color: var(--text); }
.svc__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); flex: none; transform: translateY(-2px); }

/* Process */
.process { padding-block: 0 var(--section); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-2); }
.steps::after { height: 2px; top: 6.5px; background: var(--violet); transform: scaleX(var(--p, 1)); transform-origin: left; }
.steps__item { position: relative; padding-top: 48px; }
.steps__dot {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--violet); border: 2px solid var(--violet);
  box-shadow: 0 0 0 6px var(--bg);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}
.js .steps:not(.is-done) .steps__item:not(.is-lit) .steps__dot { background: var(--bg); border-color: var(--line-2); }
.steps__item h3 { font-size: clamp(1.35rem, 1.05rem + 0.6vw, 1.7rem); font-weight: 560; letter-spacing: -0.028em; line-height: 1.15; }
.steps__item p { margin-top: 12px; color: var(--text-2); max-width: 32ch; }

/* Studio */
.studio { padding-block: var(--section); border-top: 1px solid var(--line); }
.studio__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 120px); align-items: start; }
.studio__title { font-size: clamp(2.3rem, 1rem + 3.9vw, 5.1rem); font-weight: 560; letter-spacing: -0.038em; line-height: 1.02; max-width: 12.5em; text-wrap: balance; }
.studio__text { font-size: clamp(1.125rem, 1rem + 0.3vw, 1.3rem); line-height: 1.55; color: var(--text-2); max-width: 44ch; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: clamp(36px, 4vw, 56px); }
.facts > div { border-top: 1px solid var(--line); padding-top: 16px; }
.facts dt { color: var(--text-3); font-size: 0.9rem; }
.facts dd { margin-top: 6px; font-size: 1.125rem; }

/* Contact */
.contact { padding-block: var(--section); background: var(--bg-2); border-top: 1px solid var(--line); }
.contact__title { font-size: clamp(2.8rem, 0.9rem + 6.3vw, 7.4rem); font-weight: 580; letter-spacing: -0.04em; line-height: 0.95; max-width: 11em; text-wrap: balance; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 120px); margin-top: clamp(56px, 6vw, 96px); align-items: start; }
.planner legend { color: var(--text-2); font-size: 0.97rem; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center;
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.chip:hover span { border-color: var(--text-3); color: var(--text); }
.chip input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--violet-soft); outline-offset: 3px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { margin-top: 30px; }
.field label { display: block; color: var(--text-2); font-size: 0.95rem; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  padding: 10px 0 12px;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  font-size: 1.25rem; line-height: 1.4;
  caret-color: var(--violet-soft);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.field textarea { resize: vertical; min-height: 116px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); opacity: 1; }
.field input:hover, .field textarea:hover { border-bottom-color: var(--text-3); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--violet-soft); box-shadow: 0 1px 0 var(--violet-soft); }
.field.is-invalid input { border-bottom-color: var(--danger); box-shadow: 0 1px 0 var(--danger); }
.field__err { color: var(--danger); font-size: 0.9rem; margin-top: 8px; }
.field__err:empty { display: none; }
.planner__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.planner__note { margin-top: 16px; color: var(--text-3); font-size: 0.92rem; max-width: 54ch; }

.contact__side { display: flex; flex-direction: column; gap: 32px; }
.bubble { padding: 22px; border-radius: var(--radius); background: #0E1A1F; border: 1px solid rgba(255, 255, 255, 0.05); }
.bubble__label { display: block; font-family: var(--mono); font-size: 0.78rem; color: #8FA3A8; margin-bottom: 14px; }
.bubble__text {
  margin-left: auto; width: fit-content; max-width: 92%;
  padding: 12px 14px 12px;
  border-radius: 14px 14px 4px 14px;
  background: #005C4B; color: #E9EDEF;
  font-size: 0.98rem; line-height: 1.5;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.direct__label { color: var(--text-3); font-size: 0.92rem; padding-bottom: 6px; }
.direct__row {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--line);
  font-size: 1.1rem;
  transition: color 0.3s ease;
}
.direct__row:last-child { border-bottom: 1px solid var(--line); }
.direct__row > svg:first-child { width: 22px; height: 22px; color: var(--text-2); }
.direct__row small { display: block; font-size: 0.8rem; color: var(--text-3); margin-bottom: 2px; }
.direct__row a, .direct__row span { overflow-wrap: anywhere; }
.direct__go { width: 18px; height: 18px; color: var(--text-3); transition: transform 0.5s var(--ease-out), color 0.3s ease; }
a.direct__row:hover .direct__go { transform: translate(3px, -3px); color: var(--text); }
a.direct__row:hover, .direct__row a:hover { color: var(--violet-soft); }
.direct__copy {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.direct__copy:hover { border-color: var(--text); }
.direct__copy svg { width: 17px; height: 17px; grid-area: 1 / 1; transition: opacity 0.3s ease, transform 0.4s var(--ease-out); }
.direct__copy .i-check { opacity: 0; transform: scale(0.6); }
.direct__copy.is-copied { background: var(--text); color: var(--bg); border-color: var(--text); }
.direct__copy.is-copied .i-copy { opacity: 0; transform: scale(0.6); }
.direct__copy.is-copied .i-check { opacity: 1; transform: none; }

/* Footer */
.foot { padding-top: clamp(80px, 9vw, 140px); border-top: 1px solid var(--line); overflow: hidden; }
.foot__top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.foot__tag { color: var(--text-2); font-size: 1.125rem; max-width: 34ch; }
.foot__nav, .foot__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot__nav a, .foot__contact a { color: var(--text-2); transition: color 0.3s ease; }
.foot__nav a:hover, .foot__contact a:hover { color: var(--text); }
.foot__word {
  margin-top: clamp(64px, 8vw, 120px);
  font-size: 17vw;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.8;
  white-space: nowrap;
  overflow: clip;
  overflow-clip-margin: 0.05em;
  padding-bottom: 0.06em;
}
.foot__word .ch { display: inline-block; will-change: transform; }
.foot__word .ch + .ch { margin-left: 0.24em; }
.foot__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0 36px; border-top: 1px solid var(--line); margin-top: clamp(20px, 2vw, 32px); color: var(--text-3); font-size: 0.92rem; }
.foot__top-btn { color: var(--text-2); }

/* Cursor, toast, grain */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: 96px; height: 96px; margin: -48px 0 0 -48px;
  border-radius: 50%;
  background: var(--violet-strong); color: #fff;
  display: grid; place-items: center;
  pointer-events: none;
  transform: translate3d(-200px, -200px, 0);
}
.cursor__label { font-size: 0.86rem; font-weight: 560; transform: scale(0); opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.3s ease; }
.cursor { scale: 0; transition: scale 0.5s var(--ease-out); }
.cursor.is-on { scale: 1; }
.cursor.is-on .cursor__label { transform: scale(1); opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.toast-copy {
  position: fixed; left: 50%; bottom: 24px; z-index: 80;
  padding: 10px 18px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 560; font-size: 0.95rem;
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.4s ease;
  pointer-events: none;
}
.toast-copy.is-on { transform: translate(-50%, 0); opacity: 1; }

.grain {
  position: fixed; inset: 0; z-index: 70; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Intro guard: content stays visible if scripts never run */
.loading .nav, .loading .hero__title, .loading .hero__row, .loading .ticker { opacity: 0; }

/* Responsive */
@media (max-width: 1180px) {
  .hero__row { grid-template-columns: auto minmax(0, 1fr); }
  .hero__foot { grid-column: 1 / -1; grid-row: 2; justify-self: start; text-align: left; flex-direction: row; flex-wrap: wrap; gap: 8px 28px; }
  .hero__place, .hero__status { justify-content: flex-start; }
  .nav__links { gap: 24px; }
}

@media (max-width: 960px) {
  :root { --nav-h: 72px; }
  .nav__links, .nav__cta { display: none; }
  .nav__right { margin-left: auto; }
  .menu-btn { display: inline-flex; }

  .hero__row { grid-template-columns: 1fr; gap: 24px; }
  .hero__lede { grid-column: 1; grid-row: 1; max-width: 40ch; }
  .hero__actions { grid-column: 1; grid-row: 2; }
  .hero__foot { grid-row: 3; margin-top: 8px; }

  .section-head--row { grid-template-columns: 1fr; gap: 16px; }

  .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); --mh: clamp(300px, 62vw, 520px); }
  .project--feature { grid-column: 1 / -1; }

  .story__pin { padding-block: calc(var(--nav-h) + 12px) 32px; }
  .story__grid { grid-template-columns: 1fr; gap: 24px; }
  .story__copy .h2 { font-size: clamp(1.8rem, 1rem + 3vw, 2.6rem); }
  .story__steps { margin-top: 18px; }
  .js .story:not(.is-static) .story__steps { position: relative; min-height: 7.6em; }
  .js .story:not(.is-static) .story__step { position: absolute; inset: 0 0 auto 0; padding: 16px 0 0; }
  .js .story:not(.is-static) .story__step:not(.is-active) { opacity: 0; }
  .story__step p { font-size: 0.98rem; }
  .story__progress { margin-top: 0; }
  .story__note { bottom: -26px; }

  .svc__btn { grid-template-columns: minmax(0, 1fr) auto; row-gap: 12px; }
  .svc__line { grid-column: 1; grid-row: 2; }
  .svc__plus { grid-column: 2; grid-row: 1 / span 2; width: 48px; height: 48px; }
  .svc__list { grid-template-columns: 1fr 1fr; }

  .steps { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .steps::before, .steps::after { display: none; }

  .studio__grid, .contact__grid { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__tag { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero__actions { flex-wrap: wrap; gap: 20px; }
  .work__grid { grid-template-columns: 1fr; --mh: clamp(280px, 104vw, 520px); }
  .project--feature .project__media { --mh: clamp(240px, 70vw, 400px); }
  .browser { left: 5%; right: 5%; top: 7%; }
  .browser__url { transform: none; }
  .project--cta { flex-direction: column; align-items: stretch; min-height: 260px; gap: 48px; }

  .svc__list { grid-template-columns: 1fr; gap: 0; }
  .svc__list li { padding-block: 12px; }

  .steps { grid-template-columns: 1fr; row-gap: 36px; padding-left: 0; }
  .steps__item { padding-top: 0; padding-left: 40px; }
  .steps__dot { top: 6px; }

  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts > div { padding-block: 14px; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .planner__actions .btn { width: 100%; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .brand__name span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .ticker__track { flex-wrap: wrap; width: auto; }
  .ticker__list { flex-wrap: wrap; row-gap: 8px; }
  .ticker__list[aria-hidden="true"] { display: none; }
}
