/* ==========================================================
   Anand Verma — portfolio
   ========================================================== */

/* Self-hosted fonts (no render-blocking request to Google) */
/* Bricolage Grotesque — latin-ext */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/bricolage-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Bricolage Grotesque — latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(../fonts/bricolage-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono — latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono — latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono — latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono — latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Manrope — latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Manrope — latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Manrope — latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Manrope — latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Manrope — latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Manrope — latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Manrope — latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Manrope — latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
  --paper: #f5f2ec;
  --paper-2: #ebe6dc;
  --card: #fffdf9;
  --ink: #151413;
  --ink-2: #57534b;
  --ink-3: #6b665d;
  --line: rgba(21, 20, 19, .12);
  --accent: #ff5a1f;
  --accent-2: #e84a10;
  --accent-text: #c2410c; /* orange for small text on light backgrounds (AA) */
  --dark: #141312;
  --dark-2: #1e1c1a;
  --dark-line: rgba(245, 242, 236, .14);

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r: 22px;
  --r-sm: 12px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.02; letter-spacing: -.025em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.accent { color: var(--accent-2); }
.footer .accent { color: var(--accent); }
.muted { color: var(--ink-3); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 15px 26px; border-radius: 999px;
  font: 700 15px/1 var(--body); text-decoration: none; letter-spacing: .01em;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .chip:focus-visible, .currency button:focus-visible, .copy-btn:focus-visible, .dialog__close:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,90,31,.4); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-2); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--accent); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- Header: full bar at the top, floating pill once scrolled ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: 76px; display: flex; align-items: center;
  transition: transform .45s var(--ease);
}
.header.is-hidden { transform: translateY(-110%); }
.header__inner {
  position: relative; display: flex; align-items: center; gap: 20px; height: 76px;
  border: 1px solid transparent; border-radius: 0;
  transition: max-width .5s var(--ease), height .5s var(--ease), padding .5s var(--ease), border-radius .5s var(--ease),
              background-color .4s, border-color .4s, box-shadow .4s;
}
.header.is-scrolled .header__inner {
  max-width: 1120px; height: 60px; padding: 0 8px 0 20px; border-radius: 999px;
  background: rgba(255, 253, 249, .78); border-color: var(--line);
  box-shadow: 0 18px 40px -24px rgba(21, 20, 19, .35), 0 1px 0 rgba(255,255,255,.6) inset;
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; font: 700 18px/1 var(--display); letter-spacing: -.01em; }
.brand img { height: 28px; width: auto; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }

.nav { position: relative; display: flex; gap: 2px; margin-left: auto; }
.nav a {
  position: relative; z-index: 1; text-decoration: none; font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  padding: 9px 14px; border-radius: 999px; transition: color .25s;
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav__pill {
  position: absolute; z-index: 0; top: 0; left: 0; height: 100%; width: var(--pw, 0); border-radius: 999px;
  background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line);
  translate: var(--px, 0) 0; opacity: 0;
  transition: translate .45s var(--ease), width .45s var(--ease), opacity .25s;
}
.nav__pill.is-on { opacity: 1; }
.nav__pill.no-anim { transition: none; }
.header__cta { flex: none; }
.header__cta .dot { width: 7px; height: 7px; }

.header__progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--accent), #ffb27f); transform-origin: left; transform: scaleX(var(--p, 0));
}
.header.is-scrolled .header__progress { left: 26px; right: 26px; }

.menu-btn { display: none; }

/* Mobile menu (full screen) */
.mmenu {
  position: fixed; inset: 0; z-index: 49; background: var(--paper);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; clip-path: circle(0 at calc(100% - 40px) 38px);
  transition: clip-path .6s var(--ease), opacity .3s, visibility 0s .6s;
}
.menu-open .mmenu { opacity: 1; visibility: visible; clip-path: circle(150% at calc(100% - 40px) 38px); transition: clip-path .7s var(--ease), opacity .2s; }
.mmenu__inner { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; width: 100%; padding: 104px var(--gutter) max(32px, env(safe-area-inset-bottom)); }
.mmenu__links li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mmenu__links a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0; text-decoration: none;
  font: 700 clamp(32px, 9vw, 44px)/1.05 var(--display); letter-spacing: -.03em; color: var(--ink);
  translate: 0 105%; transition: translate .6s var(--ease), color .2s;
}
.mmenu__links a .mono { font-size: 12px; color: var(--accent); letter-spacing: .04em; }
.mmenu__links a.is-active { color: var(--accent); }
@media (hover: hover) { .mmenu__links a:hover { color: var(--accent); } }
.menu-open .mmenu__links a { translate: none; }
.menu-open .mmenu__links li:nth-child(1) a { transition-delay: .12s; }
.menu-open .mmenu__links li:nth-child(2) a { transition-delay: .16s; }
.menu-open .mmenu__links li:nth-child(3) a { transition-delay: .2s; }
.menu-open .mmenu__links li:nth-child(4) a { transition-delay: .24s; }
.menu-open .mmenu__links li:nth-child(5) a { transition-delay: .28s; }
.menu-open .mmenu__links li:nth-child(6) a { transition-delay: .32s; }
.menu-open .mmenu__links li:nth-child(7) a { transition-delay: .36s; }
.mmenu__foot { display: grid; gap: 18px; opacity: 0; translate: 0 12px; transition: opacity .4s, translate .5s var(--ease); }
.menu-open .mmenu__foot { opacity: 1; translate: none; transition-delay: .4s; }
.mmenu__foot .btn { justify-content: center; }
.mmenu__mail { font: 600 18px/1.2 var(--display); text-decoration: none; }
.mmenu__social { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.mmenu__social a { text-decoration: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
.hero__grid { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #1fb26b; box-shadow: 0 0 0 0 rgba(31,178,107,.5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(31,178,107,0); } 100% { box-shadow: 0 0 0 0 rgba(31,178,107,0); } }

.hero__hello { font: 500 clamp(18px, 2vw, 22px)/1 var(--mono); color: var(--ink-2); margin-bottom: 10px; }
.hero__title { margin: 0; font-family: var(--display); font-size: inherit; font-weight: inherit; letter-spacing: normal; line-height: normal; }
.hero__name, .hero__role { display: block; }
.hero__name { font-size: clamp(64px, 11.5vw, 156px); font-weight: 800; line-height: .88; letter-spacing: -.045em; margin-bottom: 26px; }
.hero__role { font: 600 clamp(22px, 2.6vw, 32px)/1.2 var(--display); letter-spacing: -.015em; margin-bottom: 10px; max-width: 20ch; }
.hero__role em { font-style: normal; background: linear-gradient(transparent 62%, rgba(255,90,31,.32) 62%); }
.hero__lede { color: var(--ink-2); max-width: 44ch; margin-bottom: 32px; }
.hero__lede a, .about__copy > p a { color: var(--ink); font-weight: 700; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }

.stats { display: flex; flex-wrap: wrap; gap: 0; margin: 0; border-top: 1px solid var(--line); padding-top: 22px; }
.stats > div { padding-right: clamp(20px, 3.5vw, 44px); margin-right: clamp(20px, 3.5vw, 44px); border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.stats dt { font: 500 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 8px; }
.stats dd { margin: 0; font: 700 clamp(30px, 3.4vw, 44px)/1 var(--display); letter-spacing: -.03em; }
.stats__txt { font-size: clamp(22px, 2.4vw, 30px) !important; padding-top: 6px; }

.hero__media { position: relative; }
.photo {
  position: relative; border-radius: 32px; overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--paper-2);
  box-shadow: 0 30px 60px -30px rgba(21,20,19,.35);
}
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__media::before {
  content: ""; position: absolute; inset: auto -18px -18px auto; width: 62%; height: 62%;
  border-radius: 32px; background: var(--accent); z-index: -1;
}
.float {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 10px 16px 10px 10px; font-size: 14px; font-weight: 600;
  box-shadow: 0 16px 34px -16px rgba(21,20,19,.35);
  animation: bob 6s ease-in-out infinite;
}
.float b { font-family: var(--mono); font-weight: 500; color: var(--accent-text); }
.float__ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #21759b; color: #fff; font: 800 15px/1 var(--display); }
.float__ico--g { background: #5e8e3e; }
.float--a { left: -28px; top: 14%; }
.float--b { right: -20px; bottom: 16%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.hero__squiggle { position: absolute; width: 90px; top: -34px; right: 22px; color: var(--ink); transform: rotate(-8deg); }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 20px 0; transform: rotate(-1.2deg); margin: 0 -2vw; }
.marquee__track { display: flex; width: max-content; gap: 34px; align-items: center; animation: marquee 34s linear infinite; }
.marquee span { font: 700 clamp(24px, 3vw, 38px)/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--accent); font-size: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 124px) 0; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 60px); }
.section__note { max-width: 36ch; color: var(--ink-2); margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }
.h2 { font-size: clamp(40px, 6vw, 76px); font-weight: 750; }
.h2--xl { font-size: clamp(48px, 8vw, 110px); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.about__photo { position: relative; }
.about__photo img { border-radius: var(--r); aspect-ratio: 1; object-fit: cover; width: 100%; background: #ddd; }
.about__badge {
  position: absolute; left: -16px; bottom: 28px;
  display: flex; align-items: center; gap: 12px;
  background: var(--accent); color: var(--ink); padding: 16px 22px; border-radius: 18px;
  box-shadow: 0 20px 40px -18px rgba(232,74,16,.7);
}
.about__badge strong { font: 800 44px/1 var(--display); letter-spacing: -.04em; }
.about__badge span { font-size: 13px; line-height: 1.3; font-weight: 600; }
.about__copy .h2 { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 26px; }
.about__copy > p { color: var(--ink-2); font-size: 18px; }

.skills { margin: 34px 0 36px; padding: 26px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.skills__intro { font-size: 15px; color: var(--ink-2); margin-bottom: 22px; }
.skill + .skill { margin-top: 18px; }
.skill__row { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.skill__bar { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.skill__bar i { display: block; height: 100%; width: calc(var(--v) * 1%); background: linear-gradient(90deg, var(--ink), var(--accent)); border-radius: inherit; transform-origin: left; transition: transform 1.4s var(--ease) .2s; }
.js .skills:not(.is-in) .skill__bar i { transform: scaleX(0); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(60px, 8vw, 100px); }
.value { padding: 30px 28px 28px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); transition: transform .35s var(--ease), border-color .3s; }
.value:hover { transform: translateY(-4px); border-color: var(--ink); }
.value__num { display: inline-block; font-size: 13px; color: var(--accent); margin-bottom: 40px; }
.value h3 { font-size: 26px; margin-bottom: 10px; }
.value p { color: var(--ink-2); margin: 0; font-size: 16px; }

.facts { margin: 30px 0 0; padding: 22px 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); display: grid; gap: 12px; }
.facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; font-size: 15px; }
.facts dt { font: 500 12px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.facts dd { margin: 0; color: var(--ink); font-weight: 600; }

/* ---------- Work ---------- */
.work { background: var(--paper-2); border-radius: 40px 40px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  border: 1.5px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 8px 10px 8px 16px; font: 700 14px/1.2 var(--body); cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.chip__count {
  display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-2); font: 500 12px/1 var(--mono); font-variant-numeric: tabular-nums;
  transition: background .2s, color .2s;
}
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.97); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.is-on .chip__count { background: var(--accent); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* filter re-layout animation (View Transitions) */
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.project { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); padding: 12px; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.project[hidden] { display: none; }
.project:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(21,20,19,.35); }
.project__media { position: relative; display: block; aspect-ratio: 16 / 10.4; border-radius: 14px; overflow: hidden; background: var(--paper-2); }
.project__body { padding: 20px 12px 10px; }
.project__body h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.02em; margin: 12px 0 8px; }
.project__body h3 a { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.project:hover .project__body h3 a, .project__body h3 a:focus-visible { background-size: 100% 2px; }
.project__body h3 a span { color: var(--accent); font-size: .8em; }
.project__body p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.tag { display: inline-flex; align-items: center; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); border: 1px solid transparent; }

.browser { display: flex; flex-direction: column; border: 1px solid var(--line); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--line); flex: none; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #e6e1d7; }
.browser__bar i:first-child { background: #ff6b5b; }
.browser__bar i:nth-child(2) { background: #ffc23d; }
.browser__bar i:nth-child(3) { background: #33c25a; }
.browser__bar b { margin: 0 auto; font: 500 11px/1 var(--mono); color: var(--ink-3); padding: 4px 12px; background: var(--paper); border-radius: 6px; transform: translateX(-20px); }
.browser img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease); }
.project:hover .browser img { transform: scale(1.04); }

.phone-stage { background: var(--tint, var(--paper-2)); display: flex; justify-content: center; align-items: flex-start; padding-top: 7%; }
.phone {
  display: block; width: 38%; height: 120%;
  border: 7px solid var(--ink); border-radius: 30px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 50px -20px rgba(21,20,19,.4);
  transition: transform .6s var(--ease);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: object-position 3.5s ease-in-out; }
.project:hover .phone { transform: translateY(-3%); }
.project:hover .phone img { object-position: bottom; }

/* ---------- Services ---------- */
.services { background: var(--dark); color: var(--paper); }
.services .section__note { color: rgba(245,242,236,.72); }
.services .eyebrow, .footer .eyebrow, .cta-card .eyebrow { color: var(--accent); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 26px 26px; border-radius: var(--r);
  background: var(--dark-2); border: 1px solid var(--dark-line);
  transition: transform .35s var(--ease), border-color .3s;
}
.plan:hover { transform: translateY(-6px); border-color: rgba(245,242,236,.4); }
.plan h3 { font-size: 26px; margin-bottom: 18px; }
.plan h3::after { content: "Website"; display: block; margin-top: 8px; font: 500 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; opacity: .55; }
.plan:first-child h3::after { content: "Website / blog"; }
.plan__price { font: 800 54px/1 var(--display); letter-spacing: -.04em; margin: 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.plan__price .price__alt { font: 500 13px/1 var(--mono); letter-spacing: 0; text-transform: none; color: rgba(245,242,236,.72); }
.plan--hot .plan__price .price__alt { color: var(--ink); }
.plan__price small { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(245,242,236,.55); }
.plan__top { padding-bottom: 4px; border-bottom: 1px solid var(--dark-line); margin-bottom: 22px; }
.plan--hot .plan__top { border-color: rgba(21,20,19,.2); }
.plan > p { font-size: 15px; color: rgba(245,242,236,.72); margin-bottom: 22px; }
.plan__cta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 15px;
  border: 1px solid var(--dark-line); transition: background .25s, color .25s, border-color .25s;
}
.plan__cta:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.plan--hot { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.plan--hot > p, .plan--hot .plan__price small { color: var(--ink); }
.plan--hot .plan__cta { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.plan--hot .plan__cta:hover { background: var(--paper); color: var(--ink); }
.plan__flag { position: absolute; top: -12px; right: 20px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; background: var(--ink); color: var(--paper); padding: 6px 10px; border-radius: 999px; }


/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.contact__copy .h2 { margin-bottom: 24px; }
.contact__copy > p { color: var(--ink-2); max-width: 40ch; font-size: 18px; }
.channels { margin-top: 36px; border-top: 1px solid var(--line); }
.channels a {
  display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 12px;
  padding: 20px 4px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding .3s var(--ease), color .2s;
}
.channels a:hover { padding-left: 14px; color: var(--accent); }
.channels__k { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.channels__v { font: 600 clamp(17px, 1.8vw, 22px)/1.2 var(--display); overflow-wrap: anywhere; }
.channels__arr { font-size: 20px; transition: transform .3s var(--ease); }
.channels a:hover .channels__arr { transform: translate(3px, -3px); }

.form { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 3.5vw, 40px); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.field .req { color: var(--accent-text); }
.field .opt { text-transform: none; letter-spacing: 0; color: var(--ink-3); margin-left: 4px; }
.field__top { display: flex; justify-content: space-between; align-items: baseline; }
.field__count { font-size: 11px; color: var(--ink-3); transition: color .2s; }
.field__count.is-near { color: var(--accent-text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid rgba(21,20,19,.18); background: #fff; font-size: 16px; font-weight: 500;
  box-shadow: 0 1px 2px rgba(21,20,19,.05);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field textarea { resize: vertical; min-height: 130px; field-sizing: content; max-height: 360px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2357534b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(21,20,19,.32); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,90,31,.22); border-radius: var(--r-sm); }
.field [aria-invalid="true"] { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.14); }
.field__msg { margin: 0; min-height: 0; font-size: 13px; font-weight: 600; color: #b91c1c; }
.field__msg:empty { display: none; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--paper); padding: clamp(70px, 9vw, 120px) 0 30px; border-radius: 40px 40px 0 0; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; padding-bottom: 60px; border-bottom: 1px solid var(--dark-line); }
.footer__big { font: 800 clamp(44px, 7vw, 100px)/.95 var(--display); letter-spacing: -.045em; margin: 0; }
.socials { display: flex; flex-direction: column; gap: 6px; }
.socials a { text-decoration: none; font-size: 18px; font-weight: 600; color: rgba(245,242,236,.75); transition: color .2s; }
.socials a::after { content: " ↗"; color: var(--accent); }
.socials a:hover { color: var(--paper); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 26px; font-size: 14px; color: rgba(245,242,236,.55); }
.totop { text-decoration: none; }
.totop:hover { color: var(--paper); }

/* ---------- Project meta ---------- */
.project__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; font-size: 12.5px; color: var(--ink-3); }
.project__meta .tag { margin-right: 2px; }
.status { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); cursor: help; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .6; }
.status--live { color: #16894f; border-color: rgba(22,137,79,.3); background: rgba(22,137,79,.06); }
.status--live::before { opacity: 1; box-shadow: 0 0 0 3px rgba(22,137,79,.15); }
.project__result { margin-top: 12px !important; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14.5px !important; }
.project__result b { color: var(--ink); }
div.project__media { cursor: default; }

/* ---------- Currency toggle ---------- */
.section__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 36ch; }
.currency { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--dark-2); border: 1px solid var(--dark-line); }
.currency button { border: 0; background: none; color: rgba(245,242,236,.65); padding: 8px 16px; border-radius: 999px; font: 600 13px/1 var(--body); cursor: pointer; transition: background .2s, color .2s; }
.currency button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.price { font-variant-numeric: tabular-nums; }

/* ---------- Testimonials ---------- */
.testimonials { padding-bottom: 0; }
/* 6-col grid: feature (4) + 1 card (2) on top, 2 cards (3 + 3) below */
.tgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tgrid > .tcard { grid-column: span 3; }
.tgrid > .tcard--feature { grid-column: span 4; }
.tgrid > .tcard--feature + .tcard { grid-column: span 2; }
.tcard {
  position: relative; margin: 0; display: flex; flex-direction: column;
  padding: clamp(26px, 2.6vw, 34px); border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}
.tcard:hover { transform: translateY(-5px); border-color: rgba(21,20,19,.25); box-shadow: 0 26px 46px -30px rgba(21,20,19,.4); }
.tcard blockquote { margin: 0 0 26px; flex: 1; font: 500 17px/1.6 var(--body); color: var(--ink-2); }
.tcard blockquote::before { content: "\201C"; display: block; font: 800 56px/.55 var(--display); color: var(--accent); margin: 8px 0 16px; }
.tcard mark { background: linear-gradient(transparent 58%, rgba(255,90,31,.26) 58%); color: var(--ink); font-weight: 700; padding: 0 1px; }
.tcard figcaption { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.tcard figcaption > span:last-child { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.tcard figcaption strong { font: 700 16px/1.25 var(--display); letter-spacing: -.01em; }
.tcard figcaption small { color: var(--ink-3); font-size: 13.5px; }

.tcard--feature { background: var(--ink); color: var(--paper); border-color: var(--ink); overflow: hidden; }
.tcard--feature:hover { border-color: var(--ink); }
.tcard--feature::after { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(255,90,31,.38), transparent 68%); pointer-events: none; }
.tcard__mark { width: 46px; color: var(--accent); margin-bottom: 26px; }
.tcard--feature blockquote { font: 600 clamp(22px, 2.3vw, 30px)/1.38 var(--display); letter-spacing: -.015em; color: var(--paper); max-width: 34ch; }
.tcard--feature blockquote::before { content: none; }
.tcard--feature mark { background: linear-gradient(transparent 60%, rgba(255,90,31,.55) 60%); color: #fff; font-weight: inherit; }
.tcard--feature figcaption { border-top-color: var(--dark-line); }
.tcard--feature figcaption small { color: rgba(245,242,236,.6); }
.tcard__logo { flex: none; display: grid; place-items: center; width: 120px; height: 56px; padding: 7px 10px; text-decoration: none; border-radius: 14px; background: #fff; }
.tcard__logo img { width: 100%; height: 100%; object-fit: contain; }
a.tcard__logo { border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
a.tcard__logo:hover { transform: translateY(-2px); border-color: var(--accent); }
.wordmark { font: 800 13.5px/1 var(--display); letter-spacing: -.02em; color: #f58220; white-space: nowrap; }
.wordmark b { color: var(--ink); font-weight: 800; }
.tgrid__hint { display: none; }
.project:target { outline: 3px solid var(--accent); outline-offset: 4px; }

/* ---------- Blog cards ---------- */
.posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.posts--page { grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 50px; }
.post { display: flex; flex-direction: column; }
.post__img { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 1200 / 630; background: var(--paper-2); margin-bottom: 16px; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post__img img { transform: scale(1.04); }
.post__meta { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.post h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.015em; margin-bottom: 8px; }
.posts--page .post h3 { font-size: clamp(22px, 2.4vw, 28px); }
.post h3 a { text-decoration: none; }
.post h3 a:hover { color: var(--accent); }
.post > p:last-child { font-size: 15px; color: var(--ink-2); margin: 0; }

/* ---------- Footer legal ---------- */
.legal { display: flex; flex-wrap: wrap; gap: 18px; }
.legal a { text-decoration: none; }
.legal a:hover, .totop:hover { color: var(--paper); }

/* ---------- Inner pages ---------- */
.page { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 130px); }
.page .eyebrow { display: flex; }
.byline { margin: -12px 0 32px; font-size: 15px; color: var(--ink-2); }
.byline a { color: var(--ink); font-weight: 700; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.page__title { font-size: clamp(36px, 5.4vw, 64px); font-weight: 750; margin-bottom: 30px; max-width: 22ch; }
.page__title--xl { font-size: clamp(48px, 8vw, 104px); max-width: 16ch; }
.page__lede { font-size: 19px; color: var(--ink-2); max-width: 48ch; margin-bottom: 32px; }
.page--404 { min-height: 60vh; }
.article { max-width: 820px; }
.back { display: table; margin-bottom: 28px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--ink-2); }
.back:hover { color: var(--accent); }
.article__cover { margin: 0 0 44px; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.article__cover img { width: 100%; height: auto; }
.prose { font-size: 18px; line-height: 1.75; color: #2b2925; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 1.8em; line-height: 1.15; }
.prose h3 { font-size: clamp(21px, 2.2vw, 25px); margin-top: 1.6em; line-height: 1.2; }
.prose a { color: var(--ink); font-weight: 700; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); }
.prose figure { margin: 2em 0; }
.prose img { border-radius: 14px; width: 100%; height: auto; }
.prose figcaption { font-size: 14px; color: var(--ink-3); text-align: center; margin-top: 10px; }
.prose pre { background: var(--dark); color: #f1ede6; padding: 20px 22px; border-radius: 14px; overflow-x: auto; font: 14px/1.6 var(--mono); }
.prose code { font-family: var(--mono); font-size: .88em; }
.prose strong { color: var(--ink); }
.prose .updated { font: 500 13px/1.4 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.prose--legal { font-size: 16.5px; }
.cta-card {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap;
  margin-top: 70px; padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: var(--dark); color: var(--paper);
}
.cta-card h2 { font-size: clamp(26px, 3vw, 36px); max-width: 18ch; }
.cta-card__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--light { border-color: rgba(245,242,236,.4); color: var(--paper); }
.btn--light:hover { background: var(--paper); color: var(--ink); }

/* ==========================================================
   21st.dev-inspired UI layer (hero bg, text rotate, shine button,
   logo cloud, spotlight cards, timeline, pricing list, FAQ, WhatsApp)
   ========================================================== */

/* Hero: grid lines + cursor spotlight */
.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(21,20,19,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(21,20,19,.055) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 62% 38%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 65% at 62% 38%, #000 25%, transparent 78%);
}
.hero__spot {
  position: absolute; width: 640px; height: 640px; border-radius: 50%;
  left: var(--mx, 72%); top: var(--my, 32%); translate: -50% -50%;
  background: radial-gradient(circle, rgba(255,90,31,.17), rgba(255,90,31,.05) 40%, transparent 65%);
  transition: left .35s ease-out, top .35s ease-out;
}

/* Text rotate */
.hero__role .rotator { display: inline-grid; font-style: normal; vertical-align: bottom; background: none; }
.rotator__word {
  grid-area: 1 / 1; justify-self: start; background: linear-gradient(transparent 62%, rgba(255,90,31,.32) 62%);
  opacity: 0; transform: translateY(.45em); filter: blur(4px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), filter .35s;
}
.rotator__word.is-on { opacity: 1; transform: none; filter: none; }
/* extra words come from CSS so the H1 text reads as one sentence */
.rotator__word[data-w]::before { content: attr(data-w); }

/* Shine button */
.btn--shine { position: relative; overflow: hidden; isolation: isolate; }
.btn--shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  translate: -120% 0; animation: shine 3.6s ease-in-out infinite 1.2s;
}
@keyframes shine { 0% { translate: -120% 0; } 45%, 100% { translate: 120% 0; } }

/* Logo cloud */
.logos { position: relative; z-index: 1; margin-top: clamp(48px, 7vw, 88px); }
.logos__label { text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 22px; }
.logos__viewport {
  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);
}
.logos__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.logos__viewport:hover .logos__track { animation-play-state: paused; }
.logos__set { display: flex; align-items: center; gap: clamp(40px, 6vw, 72px); padding-right: clamp(40px, 6vw, 72px); }
.logos__set li { flex: none; display: grid; place-items: center; height: 48px; }
.logos__set img { height: 38px; width: auto; max-width: 150px; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: .55; transition: filter .3s, opacity .3s; }
.logos__set li:hover img { filter: none; opacity: 1; }
.wordmark--lg { font-size: 22px; filter: grayscale(1); opacity: .55; transition: filter .3s, opacity .3s; }
.logos__set li:hover .wordmark--lg { filter: none; opacity: 1; }

/* Spotlight cards (projects + plans) */
.project { position: relative; }
.project::before, .plan::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  opacity: 0; transition: opacity .35s;
}
.project::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,90,31,.12), transparent 45%); }
.plan::after { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.09), transparent 45%); }
.project:hover::before, .plan:hover::after { opacity: 1; }
.project > *, .plan > * { position: relative; z-index: 1; }
.plan > .plan__flag { position: absolute; z-index: 2; }

/* Project media overlay */
.project__cta {
  position: absolute; left: 50%; bottom: 16px; z-index: 3; translate: -50% 10px; opacity: 0;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font: 600 13px/1 var(--body); white-space: nowrap; pointer-events: none;
  box-shadow: 0 12px 28px -12px rgba(21,20,19,.55);
  transition: opacity .3s, translate .4s var(--ease);
}
.project__cta--muted { background: rgba(255,253,249,.94); color: var(--ink-2); border: 1px solid var(--line); box-shadow: none; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.project:hover .project__cta { opacity: 1; translate: -50% 0; }

/* Process timeline */
.process { padding-bottom: clamp(40px, 5vw, 70px); }
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 28px); }
.steps::before, .steps::after { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 2px; border-radius: 2px; }
.steps::before { background: var(--line); }
.steps::after { background: linear-gradient(90deg, var(--ink), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .2s; }
.steps.is-in::after { transform: none; }
.step__dot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink); font-size: 13px; color: var(--ink);
  transition: background .4s, border-color .4s, color .4s, box-shadow .4s;
}
.steps.is-in .step__dot { background: var(--accent); border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 6px rgba(255,90,31,.14); }
.steps.is-in .step:nth-child(2) .step__dot { transition-delay: .35s; }
.steps.is-in .step:nth-child(3) .step__dot { transition-delay: .7s; }
.steps.is-in .step:nth-child(4) .step__dot { transition-delay: 1.05s; }
.steps.is-in .step:nth-child(5) .step__dot { transition-delay: 1.4s; }
.step h3 { font-size: 22px; margin: 22px 0 8px; }
.step p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* Pricing: what's included */
.plan__list { flex: 1; display: grid; align-content: start; gap: 10px; margin-bottom: 26px; font-size: 14.5px; line-height: 1.4; color: rgba(245,242,236,.88); }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; }
.plan__list li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: rgba(255,90,31,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23ff5a1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plan--hot .plan__list { color: var(--ink); }
.plan--hot .plan__list li::before { background-color: rgba(21,20,19,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23151413' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan--hot { box-shadow: 0 34px 70px -34px rgba(255,90,31,.85); }

/* FAQ */
.faq { padding-top: clamp(40px, 5vw, 70px); }
.faq__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.faq__intro { position: sticky; top: 110px; }
.faq__intro > p:not(.eyebrow) { color: var(--ink-2); max-width: 36ch; margin: 22px 0 26px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer; list-style: none;
  padding: 22px 0; font: 600 clamp(18px, 1.7vw, 21px)/1.3 var(--display); letter-spacing: -.01em; transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); transition: transform .35s var(--ease), background .3s, border-color .3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; background: currentColor; border-radius: 2px; translate: -50% -50%; }
.faq__icon::after { rotate: 90deg; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.faq__a p { margin: 0; padding: 0 56px 24px 0; color: var(--ink-2); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
  .faq__item[open]::details-content { block-size: auto; }
}

/* Floating WhatsApp */
.wa-float {
  position: fixed; z-index: 45; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  display: flex; align-items: center; height: 58px; border-radius: 999px; padding: 0 6px 0 0;
  background: #13874a; color: #fff; text-decoration: none; font: 700 15px/1 var(--body);
  box-shadow: 0 16px 34px -12px rgba(18,140,74,.6);
  opacity: 0; translate: 0 20px; pointer-events: none; transition: opacity .35s, translate .45s var(--ease), box-shadow .3s;
}
.wa-float.is-shown { opacity: 1; translate: none; pointer-events: auto; }
.wa-float svg { width: 58px; height: 58px; padding: 13px; flex: none; }
.wa-float::before { content: ""; position: absolute; left: 0; top: 0; width: 58px; height: 58px; border-radius: 50%; border: 2px solid #13874a; animation: waPing 3s ease-out 3; }
@keyframes waPing { from { transform: scale(1); opacity: .6; } to { transform: scale(1.35); opacity: 0; } }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ease), padding .4s var(--ease); }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 200px; padding-right: 16px; }

/* ==========================================================
   shadcn/ui ports: tooltip, copy button, dialog, toast, skeleton
   ========================================================== */

/* Tooltip (data-tip) */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip); position: absolute; z-index: 60; left: 50%; bottom: calc(100% + 10px);
  width: max-content; max-width: 240px; padding: 7px 11px; border-radius: 8px;
  background: var(--ink); color: var(--paper); font: 500 12px/1.35 var(--body); letter-spacing: 0; text-transform: none; text-align: center; white-space: normal;
  box-shadow: 0 10px 24px -12px rgba(21,20,19,.5);
  opacity: 0; translate: -50% 4px; scale: .95; pointer-events: none; transition: opacity .15s, translate .2s var(--ease), scale .2s var(--ease);
}
[data-tip]::before {
  content: ""; position: absolute; z-index: 60; left: 50%; bottom: calc(100% + 5px); width: 10px; height: 10px; border-radius: 2px;
  background: var(--ink); rotate: 45deg; translate: -50% 4px; opacity: 0; pointer-events: none; transition: opacity .15s, translate .2s var(--ease);
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; translate: -50% 0; scale: 1; transition-delay: .12s; }
[data-tip]:hover::before, [data-tip]:focus-visible::before { opacity: 1; translate: -50% 0; transition-delay: .12s; }

/* Copy button on the email row */
.channels__copyable { position: relative; }
.channels__copyable .channels__arr { margin-left: 46px; }
.copy-btn {
  position: absolute; right: 34px; top: 50%; translate: 0 -50%; z-index: 2;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.copy-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.copy-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.copy-btn.is-done { background: #16894f; border-color: #16894f; color: #fff; }

/* Archived project media is a button that opens the dialog */
button.project__media { width: 100%; padding: 0; font: inherit; color: inherit; text-align: left; cursor: zoom-in; }
.phone-stage.project__media { border: 0; }
button.project__media.phone-stage { padding-top: 7%; }

/* Dialog */
.dialog {
  width: min(1040px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible;
}
.dialog::backdrop { background: rgba(10,10,10,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog[open] { animation: dialogIn .25s var(--ease); }
.dialog[open]::backdrop { animation: fadeIn .25s ease; }
@keyframes dialogIn { from { opacity: 0; scale: .95; } }
@keyframes fadeIn { from { opacity: 0; } }
.dialog__panel { display: flex; flex-direction: column; max-height: calc(100dvh - 48px); border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); overflow: hidden; }
.dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 20px 20px 16px 24px; border-bottom: 1px solid var(--line); }
.dialog__title { font-size: clamp(20px, 2vw, 24px); letter-spacing: -.02em; margin-bottom: 6px; }
.dialog__desc { margin: 0; font-size: 14.5px; color: var(--ink-2); max-width: 60ch; }
.dialog__close { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.dialog__close:hover { background: var(--ink); color: var(--paper); }
.dialog__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dialog__body { overflow: auto; background: var(--paper-2); display: grid; place-items: start center; overscroll-behavior: contain; }
.dialog__body img { width: 100%; height: auto; }
.dialog__body img.is-phone { width: min(420px, 100%); margin: 24px auto; border-radius: 22px; border: 6px solid var(--ink); }
.dialog__foot { margin: 0; padding: 12px 24px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); border-top: 1px solid var(--line); }
html:has(.dialog[open]) { overflow: hidden; }

/* Toast (Sonner) */
.toaster { position: fixed; z-index: 70; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); translate: -50% 0; display: grid; gap: 10px; width: min(380px, calc(100% - 32px)); margin: 0; padding: 0; list-style: none; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 14px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 22px 44px -18px rgba(21,20,19,.35), 0 2px 6px rgba(21,20,19,.06);
  animation: toastIn .35s var(--ease);
}
.toast.is-leaving { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; translate: 0 12px; scale: .97; } }
@keyframes toastOut { to { opacity: 0; translate: 0 8px; scale: .97; } }
.toast__icon { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #16894f; margin-top: 1px; }
.toast__icon svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.toast__text { flex: 1; min-width: 0; }
.toast__title { margin: 0; font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.toast__desc { margin: 2px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.toast__action { flex: none; align-self: center; padding: 8px 12px; border-radius: 9px; border: 0; background: var(--ink); color: var(--paper); font: 700 13px/1 var(--body); cursor: pointer; transition: background .2s; }
.toast__action:hover { background: var(--accent); }

/* Skeleton while images load */
img[data-loading] { background: var(--paper-2); color: transparent; animation: skeleton 1.6s ease-in-out infinite; }
@keyframes skeleton { 50% { opacity: .5; } }

/* ---------- Reveal ---------- */
/* uses `translate` so cards keep their own `transform` hover effects */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .7s var(--ease) var(--d, 0s), translate .7s var(--ease) var(--d, 0s), transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.js .reveal.is-in { opacity: 1; translate: none; }
/* Hero animates on load, not on scroll */
.js .hero .reveal { opacity: 1; translate: none; animation: rise .8s var(--ease) both; animation-delay: var(--d, 0s); }
/* the photo slides in without fading, so it stays the LCP element */
.js .hero .hero__media.reveal { animation-name: riseMove; }
@keyframes riseMove { from { transform: translateY(22px); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1080px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
  .tgrid { grid-template-columns: repeat(3, 1fr); }
  .tgrid > .tcard, .tgrid > .tcard--feature + .tcard { grid-column: span 1; }
  .tgrid > .tcard--feature { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .header__inner { gap: 12px; }
  .header.is-scrolled .header__inner { max-width: calc(100% - 20px); padding: 0 6px 0 16px; }
  .menu-btn {
    position: relative; z-index: 2; display: grid; place-content: center; gap: 6px; margin-left: auto;
    width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); cursor: pointer;
    transition: background .3s, border-color .3s;
  }
  .header.is-scrolled .menu-btn { width: 44px; height: 44px; }
  .menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), background .3s; }
  .menu-open .menu-btn { background: var(--ink); border-color: var(--ink); }
  .menu-open .menu-btn span { background: var(--paper); }
  .menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu-open { overflow: hidden; }
  /* while the menu is open the header sits flat on top of it */
  .menu-open .header { transform: none; }
  .menu-open .header .header__inner { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-open .header__progress { opacity: 0; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 480px; width: 100%; margin: 10px auto 0; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 520px; }
  .values { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  /* filter chips: one swipeable row */
  .filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: calc(100% + 2 * var(--gutter));
    margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }
  .filters::-webkit-scrollbar { display: none; }
  .contact__grid { grid-template-columns: 1fr; }
  .faq__grid { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
  /* Timeline goes vertical */
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before, .steps::after { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; }
  .steps::after { background: linear-gradient(180deg, var(--ink), var(--accent)); transform: scaleY(0); transform-origin: top; }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; }
  .step__dot { grid-row: span 2; }
  .step h3 { margin: 10px 0 6px; }
  /* Testimonials become a swipeable row */
  .tgrid {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .tgrid::-webkit-scrollbar { display: none; }
  .tcard { flex: 0 0 min(84%, 420px); scroll-snap-align: start; }
  .tcard--feature { flex-basis: min(92%, 560px); }
  .tcard--feature blockquote { font-size: 19px; }
  .tcard blockquote { font-size: 16px; }
  .tcard:hover { transform: none; box-shadow: none; }
  .tgrid__hint { display: block; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin: 0; }
}

@media (max-width: 600px) {
  .posts, .posts--page { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .prose { font-size: 17px; }
  body { font-size: 16px; }
  .brand span { display: none; }
  .hero__media::before { inset: auto -10px -10px auto; }
  .float { font-size: 13px; padding: 8px 12px 8px 8px; }
  .float--a { left: -6px; }
  .float--b { right: -6px; }
  .hero__squiggle { width: 64px; top: -24px; }
  .stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .stats > div { padding-right: 0; margin-right: 0; border-right: 0; }
  .stats dt { font-size: 12px; letter-spacing: .02em; }
  .stats__txt { font-size: 20px !important; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .plans { grid-template-columns: 1fr; }
  .about__badge { left: 10px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .channels a { grid-template-columns: 1fr auto; }
  .channels__k { grid-column: 1 / -1; }
  .work, .footer { border-radius: 28px 28px 0 0; }
  .phone { width: 46%; border-width: 6px; border-radius: 24px; }
  .form__actions .btn { flex: 1 1 auto; justify-content: center; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .legal a, .socials a, .totop, .back { display: inline-flex; align-items: center; min-height: 44px; }
  .legal { gap: 6px 18px; }
  .currency button { padding: 0 18px; min-height: 44px; }
  .copy-btn { width: 44px; height: 44px; }
  .brand { min-height: 44px; }
  .logos__set img { height: 30px; max-width: 120px; }
  .faq__a p { padding-right: 0; }
  .wa-float { height: 54px; }
  .wa-float svg, .wa-float::before { width: 54px; height: 54px; }
}

@media (hover: none) {
  .project__cta { opacity: 1; translate: -50% 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; }
  .js .skills:not(.is-in) .skill__bar i { transform: none; }
  img[data-loading] { animation: none; }
  .steps::after { transform: none !important; }
  .hero__spot { transition: none; }
  .mmenu__links a, .mmenu__foot { translate: none; opacity: 1; }
}
