/* ==========================================================================
   KC Smokey Studio — styles
   Fonts: Bricolage Grotesque, Fraunces, Instrument Sans (SIL OFL 1.1, self-hosted)
   ========================================================================== */
@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage.woff2") format("woff2-variations");
  font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2-variations");
  font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap;
}

@view-transition { navigation: auto; }

:root {
  --smoke-950: #13100E;
  --smoke-900: #1B1714;
  --smoke-800: #26201C;
  --smoke-700: #3A312B;
  --ash: #A89C90;
  --cream: #F5ECDD;
  --cream-200: #EADCC4;
  --cream-300: #DDCBAE;
  --ink: #1B1714;
  --ink-muted: #5A4D43;
  --ember: #E35D1F;
  --ember-hot: #F0703A;
  --ember-text: #A63A0B;   /* ember for text on cream (AA) */
  --honey: #F4B544;
  --fountain: #63C5D3;

  --f-display: "Bricolage", "Arial Narrow", system-ui, sans-serif;
  --f-serif: "Fraunces", Georgia, serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(.86rem, .82rem + .2vw, .95rem);
  --step-0: clamp(1rem, .96rem + .22vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.6vw, 3.9rem);
  --step-4: clamp(2.6rem, 1.6rem + 5vw, 6rem);
  --step-hero: clamp(3.1rem, 1rem + 8.6vw, 9.6rem);

  --wrap: 1240px;
  --gutter: clamp(1.15rem, .6rem + 2.6vw, 3rem);
  --radius: 28px;
  --radius-sm: 16px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  min-height: 100vh;
  background: var(--smoke-950);
  color: var(--cream);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.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 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
p { text-wrap: pretty; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; }
::selection { background: var(--ember); color: var(--smoke-950); }

:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 6px; }
.light :focus-visible { outline-color: var(--ember-text); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 200; padding: .7rem 1rem; border-radius: 12px;
  background: var(--honey); color: var(--smoke-950); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .9rem; --pad-x: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: var(--pad-y) var(--pad-x); border-radius: 999px; border: 2px solid transparent;
  font-family: var(--f-display); font-weight: 650; font-size: 1rem; letter-spacing: -.005em; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease-out), background-color .25s, color .25s, box-shadow .35s var(--ease-out), border-color .25s;
}
.btn svg { width: 1.15em; height: 1.15em; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sm { --pad-y: .7rem; --pad-x: 1.1rem; font-size: .95rem; }
.btn-lg { --pad-y: 1.1rem; --pad-x: 1.7rem; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-ember { background: var(--ember); color: var(--smoke-950); box-shadow: 0 10px 30px -10px rgb(227 93 31 / .7), inset 0 1px 0 rgb(255 255 255 / .25); }
.btn-ember:hover { background: var(--ember-hot); box-shadow: 0 16px 40px -10px rgb(240 112 58 / .85), inset 0 1px 0 rgb(255 255 255 / .3); transform: translateY(-2px); }
.btn-ghost { border-color: rgb(245 236 221 / .28); color: var(--cream); background: rgb(245 236 221 / .04); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--cream); background: rgb(245 236 221 / .1); transform: translateY(-2px); }
.btn-dark { background: var(--smoke-950); color: var(--cream); }
.btn-dark:hover { background: var(--smoke-700); transform: translateY(-2px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 12px var(--gutter) 0;
}
.nav {
  position: relative;
  display: flex; align-items: center; gap: 1rem;
  max-width: var(--wrap); margin-inline: auto; height: calc(var(--header-h) - 12px);
  padding: 0 .55rem 0 .9rem;
  border-radius: 999px;
  background: rgb(27 23 20 / .55);
  border: 1px solid rgb(245 236 221 / .1);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 40px -20px rgb(0 0 0 / .8), inset 0 1px 0 rgb(255 255 255 / .06);
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .nav { animation: nav-solidify linear both; animation-timeline: scroll(root); animation-range: 0 220px; }
    @keyframes nav-solidify {
      from { background: rgb(27 23 20 / .2); border-color: rgb(245 236 221 / .06); box-shadow: none; }
      to   { background: rgb(27 23 20 / .72); border-color: rgb(245 236 221 / .12); }
    }
  }
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; border-radius: 12px; }
.brand-mark { width: 38px; height: 38px; flex: none; transition: transform .5s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-name { font-family: var(--f-display); font-weight: 750; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1; }
.brand-name span { font-weight: 400; color: var(--ash); }
.nav-links { display: flex; gap: .2rem; padding: 0; list-style: none; }
.nav-links a {
  display: block; padding: .55rem .9rem; border-radius: 999px; text-decoration: none;
  font-weight: 550; font-size: .95rem; color: rgb(245 236 221 / .82);
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--cream); background: rgb(245 236 221 / .08); }
.nav-links a[aria-current="true"] { color: var(--cream); background: rgb(245 236 221 / .1); }
.menu-btn {
  display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(245 236 221 / .16);
  background: rgb(245 236 221 / .06); cursor: pointer; place-content: center; gap: 6px;
}
.menu-btn span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--cream); }
.menu-btn span:last-child { width: 14px; margin-left: 6px; }

.mobile-menu {
  inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 0;
  background: radial-gradient(120% 60% at 100% 0%, rgb(227 93 31 / .35), transparent 60%), var(--smoke-950);
  color: var(--cream);
}
.mobile-menu-inner { display: flex; flex-direction: column; gap: 1.6rem; min-height: 100%; padding: 1.4rem var(--gutter) 2.4rem; }
.menu-close {
  align-self: flex-end; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(245 236 221 / .2);
  background: transparent; cursor: pointer; display: grid; place-items: center;
}
.menu-close svg { width: 22px; height: 22px; }
.mobile-menu ol { list-style: none; padding: 0; display: grid; gap: .2rem; }
.mobile-menu ol a {
  display: flex; align-items: baseline; gap: .9rem; padding: .35rem 0;
  font-family: var(--f-display); font-weight: 750; font-size: clamp(2.2rem, 11vw, 3.4rem); letter-spacing: -.03em; line-height: 1.05;
  text-decoration: none;
}
.mobile-menu ol a span { min-width: 1.6rem; font-variant-numeric: tabular-nums; font-family: var(--f-body); font-size: .85rem; font-weight: 600; color: var(--ember-hot); letter-spacing: 0; }
.mobile-menu ol a:hover, .mobile-menu ol a:focus-visible { color: var(--ember-hot); }
.mobile-menu .btn { margin-top: auto; }
.mobile-menu-mail { text-align: center; color: var(--ash); }
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu { transition: opacity .35s var(--ease-out), translate .45s var(--ease-out), display .45s allow-discrete, overlay .45s allow-discrete; opacity: 0; translate: 0 -12px; }
  .mobile-menu:popover-open { opacity: 1; translate: 0 0; }
  @starting-style { .mobile-menu:popover-open { opacity: 0; translate: 0 -12px; } }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: grid; }
}

/* ---------- Shared section bits ---------- */
.section { position: relative; padding-block: clamp(5rem, 3rem + 8vw, 9.5rem); }
.light { background: var(--cream); color: var(--ink); }
.light.alt { background: var(--cream-200); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-body); font-weight: 650; font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase;
  color: var(--honey);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.light .eyebrow { color: var(--ember-text); }
.hero-eyebrow::before { display: none; }
.section-head { max-width: 62rem; margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section-head.split { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; }
.section-head.split .section-lede { max-width: 30rem; }
.section-title { font-size: var(--step-3); font-weight: 780; margin-top: 1.1rem; font-stretch: 92%; }
.section-title.big { font-size: var(--step-4); }
.section-title em { color: var(--ember-hot); font-weight: 500; }
.light .section-title em { color: var(--ember-text); }
.section-lede { margin-top: 1.2rem; font-size: var(--step-1); line-height: 1.5; max-width: 42rem; color: rgb(245 236 221 / .78); }
.light .section-lede { color: var(--ink-muted); }
.section-lede a { color: var(--ember-hot); font-weight: 600; text-underline-offset: 4px; }
.light .section-lede a { color: var(--ember-text); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(680px, 100svh);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 3rem) 0 calc(clamp(150px, 15vw, 220px) + 1.5rem);
  background:
    radial-gradient(70% 55% at 85% 100%, rgb(227 93 31 / .42), transparent 70%),
    radial-gradient(45% 40% at 10% 15%, rgb(99 197 211 / .1), transparent 70%),
    radial-gradient(60% 60% at 50% 120%, rgb(244 181 68 / .18), transparent 70%),
    var(--smoke-950);
}
.hero-smoke { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.puff { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.p1 { width: 46vw; height: 46vw; left: -10vw; top: 10%; background: radial-gradient(circle, rgb(168 156 144 / .22), transparent 65%); }
.p2 { width: 38vw; height: 38vw; right: -6vw; top: -10%; background: radial-gradient(circle, rgb(168 156 144 / .18), transparent 65%); }
.p3 { width: 30vw; height: 30vw; left: 35%; bottom: -5%; background: radial-gradient(circle, rgb(240 112 58 / .3), transparent 65%); }
.p4 { width: 22vw; height: 22vw; right: 18%; bottom: 18%; background: radial-gradient(circle, rgb(244 181 68 / .18), transparent 65%); }
@media (prefers-reduced-motion: no-preference) {
  .p1 { animation: drift 26s ease-in-out infinite alternate; }
  .p2 { animation: drift 32s ease-in-out -8s infinite alternate-reverse; }
  .p3 { animation: rise 18s ease-in-out infinite alternate; }
  .p4 { animation: rise 22s ease-in-out -6s infinite alternate-reverse; }
  @keyframes drift { to { transform: translate(8vw, -6vh) scale(1.15); } }
  @keyframes rise { to { transform: translate(-4vw, -14vh) scale(1.3); opacity: .25; } }
}
.hero-inner { position: relative; z-index: 2; }
.hero-eyebrow {
  padding: .45rem .9rem .45rem .7rem; border-radius: 999px;
  background: rgb(245 236 221 / .06); border: 1px solid rgb(245 236 221 / .12);
  color: var(--cream); letter-spacing: .1em; font-size: .78rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember-hot); box-shadow: 0 0 0 4px rgb(240 112 58 / .25), 0 0 14px var(--ember-hot); }
.hero-title {
  margin-top: clamp(1.2rem, 1rem + 1.5vw, 2rem);
  font-size: var(--step-hero); font-weight: 800; line-height: .9; letter-spacing: -.045em; font-stretch: 88%;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.hero-title em {
  font-weight: 400; letter-spacing: -.035em; padding-right: .08em;
  background: linear-gradient(100deg, var(--honey) 0%, var(--ember-hot) 45%, var(--ember) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 2rem clamp(2.5rem, 1rem + 4vw, 5.5rem); }
.hero-side { padding-bottom: .5rem; max-width: 34rem; justify-self: end; }
.hero-lede { max-width: 34rem; font-size: var(--step-1); line-height: 1.5; color: rgb(245 236 221 / .82); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 1.8rem; padding: 0; list-style: none; font-size: var(--step--1); color: rgb(245 236 221 / .78); font-weight: 550; }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-points svg { width: 18px; height: 18px; color: var(--fountain); }

@media (prefers-reduced-motion: no-preference) {
  .hero-title .line > span { animation: line-up 1.1s var(--ease-out) both; }
  .hero-title .line:nth-child(2) > span { animation-delay: .1s; }
  .hero-title .line:nth-child(3) > span { animation-delay: .2s; }
  .hero-eyebrow, .hero-side { animation: fade-up 1s var(--ease-out) both; }
  .hero-side { animation-delay: .35s; }
  .skyline { animation: fade-up 1.4s var(--ease-out) .2s both; }
  @keyframes line-up { from { transform: translateY(105%); } }
  @keyframes fade-up { from { opacity: 0; transform: translateY(24px); } }
}

.badge {
  position: absolute; z-index: 3;
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  /* Sit in the skyline band, clear of the hero subhead at every width. */
  top: auto;
  bottom: max(1rem, calc((clamp(150px, 15vw, 220px) - clamp(104px, 9.5vw, 136px)) / 2));
  width: clamp(104px, 9.5vw, 136px); aspect-ratio: 1;
}
@media (max-width: 1279px) {
  .badge { display: none; }
}
.badge > svg:first-child { width: 100%; height: 100%; fill: var(--cream); font-family: var(--f-display); font-weight: 650; font-size: 15.5px; letter-spacing: .1em; }
.badge-mark { position: absolute; inset: 31%; width: 38%; height: 38%; }
@media (prefers-reduced-motion: no-preference) {
  .badge > svg:first-child { animation: spin 26s linear infinite; }
  @keyframes spin { to { transform: rotate(1turn); } }
}

.skyline { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(150px, 15vw, 220px); }
.flame { transform-origin: 272px 50px; }
@media (prefers-reduced-motion: no-preference) {
  .flame { animation: flicker 2.6s ease-in-out infinite alternate; }
  @keyframes flicker { 0% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.25); opacity: 1; } 100% { transform: scale(.9); opacity: .75; } }
}

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { justify-self: start; }
}
@media (max-width: 600px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 2.4rem); padding-bottom: 150px; }
  .hero-title { font-size: 15vw; letter-spacing: -.04em; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .skyline { height: 130px; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden; background: var(--ember); color: var(--smoke-950);
  border-block: 1px solid rgb(0 0 0 / .2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee ul { display: flex; flex: none; padding: 0; list-style: none; }
.marquee li {
  display: flex; align-items: center; gap: 1.6rem; padding: 1.05rem 0 1.05rem 1.6rem;
  font-family: var(--f-display); font-weight: 750; font-size: clamp(1.15rem, 1rem + .8vw, 1.7rem); letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap;
}
.marquee li::after { content: "✦"; font-size: .7em; opacity: .7; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
}

/* ---------- Services / bento ---------- */
.services { background:
  radial-gradient(60% 40% at 100% 0%, rgb(244 181 68 / .18), transparent 70%),
  var(--cream); }
.bento {
  display: grid; gap: clamp(.9rem, .6rem + 1vw, 1.25rem);
  grid-template-columns: repeat(6, 1fr);
}
.card {
  position: relative; overflow: hidden; container-type: inline-size;
  padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.3rem);
  border-radius: var(--radius);
  background: #FFF9EF;
  border: 1px solid rgb(27 23 20 / .08);
  box-shadow: 0 1px 0 rgb(255 255 255 / .8) inset, 0 20px 50px -30px rgb(80 40 10 / .35);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgb(255 255 255 / .8) inset, 0 30px 60px -30px rgb(80 40 10 / .45); }
.card h3 { font-size: var(--step-2); font-weight: 760; margin: .55rem 0 .65rem; }
.card p { color: var(--ink-muted); max-width: 34rem; }
.card-kicker { font-size: var(--step--1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ember-text) !important; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; padding: 0; list-style: none; }
.tags li { padding: .35rem .8rem; border-radius: 999px; background: var(--cream-200); font-size: .85rem; font-weight: 600; color: var(--ink); }

.card-web { grid-column: 1 / 5; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  background: var(--smoke-900); color: var(--cream); border-color: transparent;
  background-image: radial-gradient(80% 70% at 100% 100%, rgb(227 93 31 / .45), transparent 70%), radial-gradient(50% 50% at 0% 0%, rgb(99 197 211 / .12), transparent 70%);
}
.card-web h3 { font-size: var(--step-3); }
.card-web p { color: rgb(245 236 221 / .8); }
.card-web .card-kicker { color: var(--honey) !important; }
.card-web .tags li { background: rgb(245 236 221 / .1); color: var(--cream); border: 1px solid rgb(245 236 221 / .12); }
.card-redesign { grid-column: 5 / 7; grid-row: 1; }
.card-brand { grid-column: 5 / 7; grid-row: 2; }
.card-seo { grid-column: 1 / 4; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; background: #FFF4E0; }
.card-care { grid-column: 4 / 7; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center;
  background: var(--fountain); border-color: transparent; }
.card-care p { color: #18363A; }
.card-care .card-kicker { color: #12393E !important; }

/* art: browser mockup */
.art-browser { position: relative; min-height: 260px; }
.browser {
  position: absolute; inset: 0 12% 0 0; border-radius: 16px; overflow: hidden;
  background: var(--cream); box-shadow: 0 30px 60px -20px rgb(0 0 0 / .6);
  transform: perspective(1200px) rotateX(6deg) rotateY(-8deg); transform-origin: left center;
  transition: transform .8s var(--ease-out);
}
.card-web:hover .browser { transform: perspective(1200px) rotateX(2deg) rotateY(-3deg); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--cream-200); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--cream-300); }
.browser-bar i:first-child { background: var(--ember); }
.browser-bar span { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: #FFF9EF; font-size: 11px; color: var(--ink-muted); }
.browser-body { padding: 18px; display: grid; gap: 14px; }
.mock-hero { display: grid; gap: 8px; padding: 18px; border-radius: 12px; background: linear-gradient(120deg, var(--smoke-900), #3b2516); }
.mock-hero b { height: 14px; width: 70%; border-radius: 6px; background: var(--cream); }
.mock-hero b.short { width: 45%; background: var(--ember-hot); }
.mock-hero em { width: 90px; height: 22px; margin-top: 6px; border-radius: 999px; background: var(--ember); }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-grid s { height: 56px; border-radius: 10px; background: var(--cream-200); }
.mock-grid s:nth-child(2) { background: #CDE9EC; }
.phone {
  position: absolute; right: 0; bottom: -20px; width: 26%; min-width: 96px; aspect-ratio: 9 / 18;
  border-radius: 22px; padding: 8px; background: #0b0908; box-shadow: 0 25px 50px -15px rgb(0 0 0 / .7);
  transform: rotate(6deg); transition: transform .8s var(--ease-out);
}
.card-web:hover .phone { transform: rotate(2deg) translateY(-8px); }
.phone-body { height: 100%; border-radius: 15px; background: var(--cream); padding: 14px 10px; display: flex; flex-direction: column; gap: 7px; }
.phone-body b { height: 9px; width: 85%; border-radius: 4px; background: var(--smoke-900); }
.phone-body b.short { width: 55%; background: var(--ember); }
.phone-body em { height: 18px; width: 60%; margin-top: 4px; border-radius: 999px; background: var(--ember); }
.phone-body s { flex: 1; margin-top: 6px; border-radius: 8px; background: var(--cream-200); }

/* art: before/after */
.art-before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 110px; margin-bottom: 1.2rem; }
.ba { position: relative; border-radius: 14px; overflow: hidden; display: flex; align-items: end; padding: 8px; }
.ba span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.before { background: repeating-linear-gradient(0deg, #d9d2c6 0 8px, #e8e2d8 8px 16px); filter: grayscale(1); }
.before span { background: #fff; color: #555; }
.after { background: radial-gradient(80% 80% at 80% 100%, var(--ember-hot), transparent 70%), var(--smoke-900); }
.after span { background: var(--ember); color: var(--smoke-950); }
.after::before { content: ""; position: absolute; left: 10px; top: 12px; width: 60%; height: 10px; border-radius: 4px; background: var(--cream); box-shadow: 0 16px 0 -2px rgb(245 236 221 / .5); }

/* art: brand swatches */
.art-brand { position: relative; height: 110px; margin-bottom: 1.2rem; display: flex; align-items: center; }
.sw { width: clamp(54px, 21cqi, 74px); height: auto; aspect-ratio: 1; border-radius: 50%; margin-right: -22px; border: 4px solid #FFF9EF; transition: transform .5s var(--ease-out); }
.s1 { background: var(--ember); } .s2 { background: var(--smoke-900); } .s3 { background: var(--honey); } .s4 { background: var(--fountain); }
.card-brand:hover .sw { transform: translateY(-6px); }
.card-brand:hover .s2 { transition-delay: .04s; } .card-brand:hover .s3 { transition-delay: .08s; } .card-brand:hover .s4 { transition-delay: .12s; }
.aa { margin-left: auto; font-family: var(--f-serif); font-style: italic; font-size: clamp(3rem, 18cqi, 4.2rem); line-height: 1; color: var(--ember-text); }

/* art: search */
.art-search { position: relative; width: 210px; }
.search-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; background: #fff; box-shadow: 0 10px 30px -12px rgb(80 40 10 / .35); font-size: .9rem; color: var(--ink-muted); }
.search-bar svg { width: 18px; height: 18px; flex: none; color: var(--ink); }
.pin { position: absolute; right: 8px; top: -54px; width: 46px; color: var(--ember); filter: drop-shadow(0 8px 10px rgb(166 58 11 / .35)); }
@media (prefers-reduced-motion: no-preference) {
  .pin { animation: bob 3s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translateY(-8px); } }
}

/* art: care heartbeat */
.art-care { width: 190px; color: var(--smoke-950); }
.art-care svg { width: 100%; height: 70px; overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  .art-care path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pulse-line 3.2s ease-in-out infinite; }
  @keyframes pulse-line { 0% { stroke-dashoffset: 1; } 55%, 100% { stroke-dashoffset: 0; } }
}

@container (max-width: 520px) {
  .card-seo, .card-care { grid-template-columns: 1fr; }
}
.pricing-note { margin-top: 2rem; color: var(--ink-muted); font-size: var(--step--1); text-align: center; }
.pricing-note strong { color: var(--ink); }
.placeholder-inline { padding: .1rem .55rem; border-radius: 6px; border: 1.5px dashed var(--ember-text); color: var(--ember-text); font-weight: 650; white-space: nowrap; }

@media (max-width: 1060px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-web { grid-column: 1 / -1; grid-row: auto; }
  .card-redesign, .card-brand { grid-column: span 1; grid-row: auto; }
  .card-seo, .card-care { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .card-redesign, .card-brand { grid-column: 1 / -1; }
  .card-seo, .card-care { grid-template-columns: 1fr; }
  .art-search { width: 100%; max-width: 260px; margin-top: 2.6rem; }
  .art-browser { min-height: 220px; }
}

/* ---------- Promise ---------- */
.promise {
  background:
    radial-gradient(50% 60% at 0% 100%, rgb(227 93 31 / .28), transparent 70%),
    radial-gradient(40% 50% at 100% 0%, rgb(99 197 211 / .1), transparent 70%),
    var(--smoke-950);
}
.promise .section-head { max-width: 72rem; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.promise-card {
  padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(245 236 221 / .07), rgb(245 236 221 / .02));
  border: 1px solid rgb(245 236 221 / .1);
  backdrop-filter: blur(8px);
  transition: border-color .4s, transform .5s var(--ease-out);
}
.promise-card:hover { border-color: rgb(240 112 58 / .6); transform: translateY(-4px); }
.promise-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgb(240 112 58 / .14); color: var(--ember-hot); margin-bottom: 1.6rem; }
.promise-card:nth-child(2) .promise-icon { background: rgb(99 197 211 / .14); color: var(--fountain); }
.promise-card:nth-child(3) .promise-icon { background: rgb(244 181 68 / .14); color: var(--honey); }
.promise-icon svg { width: 30px; height: 30px; }
.promise-card h3 { font-size: var(--step-2); font-weight: 760; margin-bottom: .7rem; }
.promise-card p { color: rgb(245 236 221 / .76); }
@media (max-width: 900px) { .promise-grid { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 2.1rem; height: 2px;
  background: linear-gradient(90deg, var(--ember-text), var(--ember-hot) 50%, var(--honey));
  transform-origin: left;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps::before { animation: grow-x linear both; animation-timeline: view(); animation-range: entry 60% cover 50%; }
    @keyframes grow-x { from { transform: scaleX(0); } }
  }
}
.step { position: relative; padding-top: 5rem; }
.step-num {
  position: absolute; top: 0; left: 0; display: grid; place-items: center;
  width: 4.2rem; height: 4.2rem; border-radius: 50%;
  background: var(--smoke-950); color: var(--cream);
  font-family: var(--f-display); font-weight: 750; font-size: 1.2rem;
  box-shadow: 0 0 0 6px var(--cream-200);
}
.step:nth-child(4) .step-num { background: var(--ember); color: var(--smoke-950); }
.step h3 { font-size: var(--step-2); font-weight: 760; margin-bottom: .6rem; }
.step p { color: var(--ink-muted); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.25rem; }
  .steps::before { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 2.4rem 5.4rem; min-height: 4.2rem; }
  .step::before { content: ""; position: absolute; left: 2.1rem; top: 4.2rem; bottom: 0; width: 2px; background: linear-gradient(var(--ember-hot), transparent); }
  .step:last-child::before { display: none; }
  .step:last-child { padding-bottom: 0; }
  .step h3 { padding-top: .9rem; }
}

/* ---------- Work ---------- */
.work { background: var(--smoke-900); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.work-card { border-radius: var(--radius); overflow: hidden; background: var(--smoke-800); border: 1px solid rgb(245 236 221 / .08); transition: transform .5s var(--ease-out); }
.work-card:hover { transform: translateY(-6px); }
.work-thumb {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px dashed rgb(245 236 221 / .2);
}
.work-thumb span {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(4rem, 3rem + 4vw, 7rem); letter-spacing: -.05em; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgb(245 236 221 / .55);
  transition: transform .8s var(--ease-out);
}
.work-card:hover .work-thumb span { transform: scale(1.08) rotate(-3deg); }
.t1 { background: repeating-linear-gradient(-45deg, rgb(245 236 221 / .04) 0 14px, transparent 14px 28px), radial-gradient(90% 90% at 100% 100%, rgb(227 93 31 / .55), transparent 70%), var(--smoke-800); }
.t2 { background: repeating-linear-gradient(-45deg, rgb(245 236 221 / .04) 0 14px, transparent 14px 28px), radial-gradient(90% 90% at 0% 100%, rgb(99 197 211 / .45), transparent 70%), var(--smoke-800); }
.t3 { background: repeating-linear-gradient(-45deg, rgb(245 236 221 / .04) 0 14px, transparent 14px 28px), radial-gradient(90% 90% at 50% 0%, rgb(244 181 68 / .45), transparent 70%), var(--smoke-800); }
.work-meta { padding: 1.4rem 1.6rem 1.7rem; }
.work-meta h3 { font-size: var(--step-2); font-weight: 760; margin: .8rem 0 .35rem; }
.work-meta p { color: var(--ash); }
.pill { display: inline-block; padding: .25rem .7rem; border-radius: 999px; border: 1.5px dashed rgb(244 181 68 / .7); color: var(--honey); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr; } .work-thumb { aspect-ratio: 16 / 9; } }

/* ---------- About ---------- */
.about { background: radial-gradient(50% 60% at 0% 0%, rgb(244 181 68 / .2), transparent 70%), var(--cream); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 5vw, 6rem); align-items: center; }
.about-photo { position: relative; }
.photo-frame {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: var(--cream-200);
  transform: rotate(-1.5deg);
  box-shadow:
    0 0 0 7px var(--cream),
    0 0 0 9px rgb(227 93 31 / .5),
    0 22px 40px -18px rgb(166 58 11 / .55);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.about-photo figcaption { margin-top: 1.4rem; font-size: var(--step--1); color: var(--ink-muted); font-weight: 600; }
.about-lede { margin-top: 1.4rem; font-size: var(--step-1); line-height: 1.5; color: var(--ink); max-width: 40rem; }
.about-bio { margin: 1.35rem 0 2rem; max-width: 40rem; display: grid; gap: .95rem; }
.about-bio p { color: var(--ink); line-height: 1.6; }
.about-bio a { color: var(--ember-text); font-weight: 650; text-underline-offset: .16em; }
.about-bio a:hover { color: var(--ink); }
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; }
}

/* ---------- Contact ---------- */
.contact { overflow: hidden; isolation: isolate; background: var(--smoke-950); }
.contact-glow { position: absolute; z-index: -1; inset: auto -10% -40% -10%; height: 90%; background: radial-gradient(50% 50% at 50% 100%, rgb(227 93 31 / .5), transparent 70%); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 5vw, 5.5rem); align-items: start; }
.contact-title { font-size: var(--step-4); font-weight: 800; letter-spacing: -.04em; line-height: .92; margin-top: 1.1rem; font-stretch: 88%; }
.contact-title em { color: var(--ember-hot); font-weight: 400; }
.email-card { margin-top: 2.4rem; padding: 1.4rem 1.5rem; border-radius: var(--radius-sm); border: 1px solid rgb(245 236 221 / .12); background: rgb(245 236 221 / .04); display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.email-label { width: 100%; font-size: var(--step--1); color: var(--ash); font-weight: 600; }
.email-link { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.35rem, 1rem + 1.6vw, 2.1rem); letter-spacing: -.02em; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease-out), color .2s; overflow-wrap: anywhere; }
.email-link:hover { color: var(--ember-hot); background-size: 100% 2px; }
.copy-btn { padding: .5rem .9rem; border-radius: 999px; border: 1px solid rgb(245 236 221 / .25); background: transparent; cursor: pointer; font-size: .85rem; font-weight: 600; }
.copy-btn:hover { background: rgb(245 236 221 / .08); }
.copy-status { font-size: .85rem; color: var(--fountain); font-weight: 600; }

.contact-form {
  display: grid; gap: 1.3rem; padding: clamp(1.4rem, 1rem + 2vw, 2.4rem);
  border-radius: var(--radius);
  background: rgb(38 32 28 / .7); border: 1px solid rgb(245 236 221 / .1);
  backdrop-filter: blur(14px);
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / .8);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field { display: grid; gap: .5rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 650; font-size: .95rem; }
.opt { color: var(--ash); font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: .9rem 1rem; border-radius: 14px;
  background: rgb(19 16 14 / .7); border: 1.5px solid rgb(245 236 221 / .16);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgb(168 156 144 / .9); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ember-hot); box-shadow: 0 0 0 4px rgb(240 112 58 / .25); }
.field [aria-invalid="true"] { border-color: #FF8A65; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips legend { margin-bottom: .6rem; padding: 0; float: left; width: 100%; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: .55rem 1rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  border: 1.5px solid rgb(245 236 221 / .2); transition: background-color .2s, border-color .2s, color .2s;
}
.chips label:hover span { border-color: rgb(245 236 221 / .5); }
.chips input:checked + span { background: var(--ember); border-color: var(--ember); color: var(--smoke-950); }
.chips input:focus-visible + span { outline: 3px solid var(--honey); outline-offset: 2px; }
.form-error { color: #FFB199; font-weight: 600; font-size: .95rem; }
.form-note { text-align: center; font-size: .88rem; color: var(--ash); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--smoke-950); border-top: 1px solid rgb(245 236 221 / .08); padding: 3.5rem 0 2rem; overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.footer-top .brand { margin-right: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; padding: 0; list-style: none; }
.footer-links a, .footer-mail, .to-top { text-decoration: none; color: rgb(245 236 221 / .78); font-weight: 550; transition: color .2s; }
.footer-links a:hover, .footer-mail:hover, .to-top:hover { color: var(--ember-hot); }
.footer-mail { color: var(--cream); font-weight: 650; }
.footer-word {
  margin: 2.5rem 0 1rem; font-family: var(--f-display); font-weight: 800; font-stretch: 80%;
  font-size: clamp(4rem, 1rem + 17vw, 17rem); line-height: .8; letter-spacing: -.05em; text-transform: uppercase; white-space: nowrap; text-align: center;
  color: transparent;
  background: linear-gradient(180deg, rgb(240 112 58 / .42), rgb(240 112 58 / .04) 90%); -webkit-background-clip: text; background-clip: text;
  user-select: none;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid rgb(245 236 221 / .08); font-size: var(--step--1); color: var(--ash); }

/* ---------- Scroll reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 5% entry 75%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(48px) scale(.98); } }
  }
  @supports not (animation-timeline: view()) {
    .js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
    .js .reveal.is-in { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
