/* ==========================================================================
   Karan Patel Digital Studio — styles
   Structure: tokens → base → layout → components → sections → utilities
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --charcoal: #17191C;
  --charcoal-2: #212428;
  --charcoal-3: #2C3035;
  --ivory: #F5F3EF;
  --ivory-2: #ECE9E3;
  --sage: #B7C3B0;
  --sage-deep: #7E8F76;
  --stone: #A6A29B;
  --stone-dark: #6E6A64;
  --white: #FFFFFF;

  --text: var(--charcoal);
  --text-muted: #5C5A56;
  --line: rgba(23, 25, 28, 0.12);
  --line-light: rgba(245, 243, 239, 0.14);

  --font-display: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(88px, 12vw, 152px);
  --header-h: 76px;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(23, 25, 28, 0.06), 0 2px 8px rgba(23, 25, 28, 0.04);
  --shadow: 0 10px 30px -12px rgba(23, 25, 28, 0.18), 0 2px 6px rgba(23, 25, 28, 0.05);
  --shadow-lg: 0 40px 80px -30px rgba(23, 25, 28, 0.35), 0 12px 24px -12px rgba(23, 25, 28, 0.15);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mark-ink: var(--ivory);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

::selection { background: var(--sage); color: var(--charcoal); }

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--charcoal);
  color: var(--ivory);
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn__arrow { display: inline-block; transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { --btn-bg: var(--charcoal); --btn-fg: var(--ivory); }
.btn--primary:hover { --btn-bg: #000; box-shadow: 0 12px 24px -10px rgba(23, 25, 28, 0.5); }

.btn--ghost { --btn-fg: var(--charcoal); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--charcoal); background: var(--white); }

.btn--outline { border-color: var(--charcoal); }
.btn--outline:hover { --btn-bg: var(--charcoal); --btn-fg: var(--ivory); }

.btn--sage { --btn-bg: var(--sage); --btn-fg: var(--charcoal); }
.btn--sage:hover { --btn-bg: #C8D2C2; box-shadow: 0 14px 28px -12px rgba(183, 195, 176, 0.6); }

.btn--sm { padding: 11px 18px; font-size: 0.9rem; }
.btn--lg { padding: 18px 30px; font-size: 1rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: gap 0.3s var(--ease), color 0.2s;
}
.link-arrow:hover { gap: 14px; }

.text-link {
  color: var(--charcoal);
  text-decoration: underline;
  text-decoration-color: var(--sage-deep);
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}
.text-link:hover { text-decoration-color: var(--charcoal); }

/* ---------- Brand / logo ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--charcoal);
}
.brand__mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: transform 0.5s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.04); }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand__sub {
  margin-top: 5px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--stone-dark);
}
.brand--light { color: var(--ivory); --mark-ink: var(--charcoal); }
.brand--light .brand__sub { color: var(--stone); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.site-header.is-scrolled {
  background: rgba(245, 243, 239, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__menu { display: flex; align-items: center; gap: 36px; }
.nav__menu ul { display: flex; gap: 30px; }
.nav__menu ul a {
  position: relative;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-muted);
  padding-block: 6px;
  transition: color 0.2s;
}
.nav__menu ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--charcoal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__menu ul a:hover,
.nav__menu ul a.is-active { color: var(--charcoal); }
.nav__menu ul a:hover::after,
.nav__menu ul a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 110;
}
.nav__toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 24px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Section headings ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-dark);
}
.section-label span {
  font-family: var(--font-display);
  color: var(--charcoal);
  padding-right: 12px;
  border-right: 1px solid var(--line);
}
.section-label--light { color: var(--stone); }
.section-label--light span { color: var(--sage); border-color: var(--line-light); }

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  max-width: 18ch;
  text-wrap: balance;
}
.section-intro {
  margin-top: 20px;
  max-width: 46ch;
  color: var(--text-muted);
}
.section-head { margin-bottom: clamp(48px, 7vw, 80px); }
.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.section-head--split .section-intro { margin-top: 0; }
.section-head--center { text-align: center; }
.section-head--center .section-title,
.section-head--center .section-intro { margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-deep);
  box-shadow: 0 0 0 4px rgba(183, 195, 176, 0.45);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
  overflow: hidden;
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 10%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -140px;
  top: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 195, 176, 0.55), rgba(183, 195, 176, 0) 68%);
  filter: blur(10px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.hero__title {
  position: relative;
  z-index: 0;
  margin: 28px 0 26px;
  font-size: clamp(2.75rem, 6.6vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: 0.06em;
  height: 0.22em;
  background: var(--sage);
  z-index: -1;
  border-radius: 3px;
  transform-origin: left;
  animation: underline 1.1s 0.7s var(--ease) both;
}
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__lede {
  max-width: 34ch;
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  line-height: 1.6;
  color: var(--text-muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}
.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 48px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hero__points li { display: inline-flex; align-items: center; gap: 10px; }
.hero__points li::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--stone);
}

/* Hero visual: abstract browser + phone */
.hero__visual {
  position: relative;
  aspect-ratio: 1 / 0.92;
  width: 100%;
}
.mock {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.mock--desktop {
  inset: 6% 6% 12% 0;
  border-radius: 18px;
  overflow: hidden;
  animation: float 9s ease-in-out infinite;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: var(--ivory-2);
  border-bottom: 1px solid var(--line);
}
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--stone); opacity: 0.55; }
.mock__url {
  margin-left: 14px;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--white);
  font-size: 0.68rem;
  color: var(--stone-dark);
}
.mock__body { padding: 6% 7%; display: grid; gap: 9%; height: calc(100% - 36px); grid-template-rows: auto 1fr auto; }
.mk-nav { display: flex; align-items: center; gap: 8px; }
.mk-nav b { width: 22px; height: 22px; border-radius: 6px; background: var(--charcoal); margin-right: auto; }
.mk-nav span { width: 34px; height: 6px; border-radius: 3px; background: var(--ivory-2); }
.mk-nav em { width: 54px; height: 18px; border-radius: 999px; background: var(--charcoal); margin-left: 6px; }
.mk-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 8%; align-items: center; }
.mk-lines { display: grid; gap: 10px; }
.mk-lines span { height: 12px; border-radius: 4px; background: var(--charcoal); }
.mk-lines span.thin { height: 7px; background: var(--stone); opacity: 0.5; margin-top: 4px; }
.mk-lines .w90 { width: 90%; } .mk-lines .w70 { width: 70%; } .mk-lines .w50 { width: 50%; }
.mk-lines .mk-btn { width: 42%; height: 20px; border-radius: 999px; background: var(--sage); margin-top: 8px; }
.mk-img {
  aspect-ratio: 1 / 0.95;
  border-radius: 12px;
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.7) 0 12%, transparent 13%),
    linear-gradient(160deg, var(--sage) 0%, #9FAE97 55%, var(--stone) 100%);
}
.mk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mk-cards span { height: 46px; border-radius: 10px; background: var(--ivory); border: 1px solid var(--line); }

.mock--phone {
  right: 0;
  bottom: 0;
  width: 31%;
  aspect-ratio: 9 / 18;
  border-radius: 26px;
  padding: 26px 12px 14px;
  border: 6px solid var(--charcoal);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: float 9s -4.5s ease-in-out infinite;
}
.mock__notch {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 34%;
  height: 8px;
  border-radius: 999px;
  background: var(--charcoal);
  transform: translateX(-50%);
}
.mk-img--sm { aspect-ratio: 1 / 0.9; border-radius: 10px; }
.mock--phone .mk-lines { gap: 7px; }
.mock--phone .mk-lines span { height: 8px; }
.mock--phone .mk-lines .mk-btn { height: 14px; width: 60%; }

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.chip--a { left: -4%; bottom: 20%; animation-delay: -2s; }
.chip--b { right: 24%; top: 0; background: var(--white); color: var(--charcoal); border: 1px solid var(--line); animation-delay: -5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { background: var(--white); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.about__grid > div:first-child { position: sticky; top: calc(var(--header-h) + 40px); }
.about__body p { color: var(--text-muted); font-size: 1.08rem; }
.about__body p + p { margin-top: 20px; }
.about__body p:first-child {
  color: var(--charcoal);
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.values {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.values li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.values strong { font-family: var(--font-display); font-weight: 700; }
.values span { color: var(--text-muted); }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service {
  position: relative;
  padding: clamp(32px, 3.4vw, 44px);
  background: var(--ivory);
  transition: background-color 0.4s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service:hover { background: var(--white); }
.service:hover::before { transform: scaleX(1); }
.service__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 36px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: background-color 0.4s var(--ease), transform 0.5s var(--ease), border-color 0.4s;
}
.service__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--charcoal);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service:hover .service__icon { background: var(--sage); border-color: var(--sage); transform: translateY(-4px); }
.service h3 { font-size: 1.25rem; margin-bottom: 12px; }
.service p { color: var(--text-muted); font-size: 0.98rem; }

/* ==========================================================================
   PORTFOLIO
   ========================================================================== */
.work { background: var(--white); }
.work__list { display: grid; gap: clamp(64px, 9vw, 120px); }
.project {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.project--reverse .project__preview { order: 2; }

.project__preview {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 48px);
  background: linear-gradient(145deg, #EDE6DD, #E4DACE);
  overflow: hidden;
  isolation: isolate;
}
.project__preview > img,
.project__preview > .preview {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.8s var(--ease);
}
.project__preview:hover > img,
.project__preview:hover > .preview { transform: translateY(-8px) scale(1.015); }
.project__visit {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s, transform 0.45s var(--ease);
}
.project__preview:hover .project__visit,
.project__preview:focus-visible .project__visit { opacity: 1; transform: none; }

/* Illustrated preview of Sweet Creations by Bhavi (replace with screenshot anytime) */
.preview { background: var(--white); overflow: hidden; }
.preview__bar {
  display: flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  background: #F3EFEA;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.preview__bar i { width: 8px; height: 8px; border-radius: 50%; background: #D3CBC1; }
.preview__bar span {
  margin-left: 12px; padding: 2px 12px; border-radius: 999px;
  background: var(--white); font-size: 0.66rem; color: var(--stone-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.preview__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 5% 6%;
  background:
    radial-gradient(circle at 78% 62%, rgba(232, 196, 196, 0.55), transparent 42%),
    linear-gradient(180deg, #FFF9F5, #FBEFEA);
  overflow: hidden;
}
.pv-nav { display: flex; justify-content: space-between; align-items: center; }
.pv-logo { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: clamp(0.7rem, 1.3vw, 0.95rem); color: #7A4E55; }
.pv-links { display: flex; gap: 8px; }
.pv-links b { width: 28px; height: 5px; border-radius: 3px; background: #E3CFCB; }
.pv-hero { position: relative; z-index: 1; margin-top: 12%; max-width: 52%; }
.pv-kicker { font-size: clamp(0.5rem, 0.9vw, 0.66rem); letter-spacing: 0.2em; text-transform: uppercase; color: #B58A8F; margin-bottom: 8px; }
.pv-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2.6vw, 2rem);
  line-height: 1.08;
  color: #5A3238;
}
.pv-btn { display: block; width: 44%; height: clamp(14px, 2vw, 22px); margin-top: 10%; border-radius: 999px; background: #C98D93; }
.pv-cake {
  position: absolute;
  right: 12%;
  bottom: 0;
  width: 30%;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}
.tier { display: block; border-radius: 6px 6px 2px 2px; box-shadow: inset 0 6px 0 rgba(255,255,255,0.45); }
.tier--1 { width: 100%; height: 3.2vw; max-height: 44px; background: #EFD3D0; }
.tier--2 { width: 76%; height: 2.8vw; max-height: 38px; background: #F7E4DF; }
.tier--3 { width: 52%; height: 2.4vw; max-height: 32px; background: #EFD3D0; position: relative; }
.tier--3::before {
  content: ""; position: absolute; left: 50%; top: -12px; width: 12px; height: 12px;
  border-radius: 50%; background: #C98D93; transform: translateX(-50%);
}

.project__meta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.project__title { margin: 14px 0 18px; font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.project__desc { color: var(--text-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 32px; }
.tags li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.work__next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(64px, 9vw, 112px);
  padding: 32px 36px;
  border: 1px dashed var(--stone);
  border-radius: var(--radius-lg);
}
.work__next p { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; }

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process { background: var(--charcoal); color: var(--ivory); overflow: hidden; }
.process .section-title { color: var(--ivory); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 28px 36px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--charcoal-2);
  transition: transform 0.5s var(--ease), border-color 0.4s, background-color 0.4s;
}
.step:hover { transform: translateY(-6px); border-color: rgba(183, 195, 176, 0.5); background: var(--charcoal-3); }
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(183, 195, 176, 0.55);
  margin-bottom: 56px;
  transition: color 0.4s;
}
.step:hover .step__num { color: var(--sage); }
.step h3 { font-size: 1.2rem; margin-bottom: 12px; color: var(--ivory); }
.step p { color: var(--stone); font-size: 0.96rem; }

/* ==========================================================================
   PRICING
   ========================================================================== */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 34px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan--featured {
  background: var(--charcoal);
  color: var(--ivory);
  border-color: var(--charcoal);
  box-shadow: var(--shadow-lg);
}
.plan--featured .plan__for,
.plan--featured .plan__from { color: var(--stone); }
.plan--featured .plan__list li { border-color: var(--line-light); }
.plan--featured .plan__list li::before { background-color: var(--sage); }
.plan--featured .btn--primary { --btn-bg: var(--sage); --btn-fg: var(--charcoal); }
.plan--featured .btn--primary:hover { --btn-bg: #C8D2C2; }
.plan__badge {
  align-self: flex-start;
  margin: -14px 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--charcoal);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plan__name { font-size: 1.3rem; }
.plan__for { margin-top: 10px; color: var(--text-muted); font-size: 0.95rem; min-height: 3.2em; }
.plan__price { display: flex; flex-direction: column; margin: 28px 0 28px; }
.plan__from { font-size: 0.82rem; font-weight: 500; color: var(--stone-dark); letter-spacing: 0.04em; }
.plan__amount {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.plan__list { margin-bottom: 34px; flex: 1; }
.plan__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.plan__list li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.5 9.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2317191C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.pricing__note {
  max-width: 62ch;
  margin: 40px auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { background: var(--white); }
.faq__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.faq__grid > div:first-child { position: sticky; top: calc(var(--header-h) + 40px); }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  position: relative;
  display: block;
  padding: 26px 56px 26px 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before,
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform 0.4s var(--ease);
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }
.faq__item summary:hover { color: var(--sage-deep); }
.faq__answer { overflow: hidden; }
.faq__answer p { padding: 0 48px 28px 0; color: var(--text-muted); max-width: 64ch; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { background: var(--charcoal); color: var(--ivory); }
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}
.contact .section-title { color: var(--ivory); }
.contact__intro > p:not(.section-label) { margin-top: 24px; color: var(--stone); max-width: 42ch; }
.contact__details {
  margin-top: 48px;
  display: grid;
  gap: 22px;
  padding-top: 32px;
  border-top: 1px solid var(--line-light);
}
.contact__details dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 6px;
}
.contact__details dd { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }

.placeholder {
  display: inline-block;
  padding: 2px 10px;
  border: 1px dashed var(--sage);
  border-radius: 6px;
  color: var(--sage);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
}

.form {
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--ivory);
  color: var(--charcoal);
  display: grid;
  gap: 22px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label,
.field__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
}
.req { color: var(--sage-deep); }
.optional { font-weight: 400; color: var(--stone-dark); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(23, 25, 28, 0.16);
  border-radius: 12px;
  background: var(--white);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.25s;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  padding-right: 44px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2317191C' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") right 18px center / 12px no-repeat;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--stone); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--charcoal);
  box-shadow: 0 0 0 4px rgba(183, 195, 176, 0.55);
}
.field textarea::placeholder { color: #9A968F; }
.form.was-validated :invalid:not(fieldset):not(input[type="radio"]) {
  border-color: #B4574F;
}

.radios { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.radio { position: relative; cursor: pointer; }
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span {
  display: block;
  padding: 13px 10px;
  border: 1px solid rgba(23, 25, 28, 0.16);
  border-radius: 12px;
  background: var(--white);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.radio:hover span { border-color: var(--stone); }
.radio input:checked + span { background: var(--charcoal); border-color: var(--charcoal); color: var(--ivory); }
.radio input:focus-visible + span { box-shadow: 0 0 0 4px rgba(183, 195, 176, 0.7); }

.form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.form .btn--sage { --btn-bg: var(--charcoal); --btn-fg: var(--ivory); }
.form .btn--sage:hover { --btn-bg: #000; box-shadow: 0 12px 24px -10px rgba(23, 25, 28, 0.5); }
.form .btn[disabled] { opacity: 0.6; pointer-events: none; }
.form__note { font-size: 0.85rem; color: var(--stone-dark); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--charcoal);
  color: var(--ivory);
  border-top: 1px solid var(--line-light);
  padding-top: 72px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 64px;
}
.footer__tagline {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 14ch;
}
.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__nav h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 18px;
}
.footer__nav li + li { margin-top: 10px; }
.footer__nav a { color: rgba(245, 243, 239, 0.82); transition: color 0.2s; font-size: 0.96rem; }
.footer__nav a:hover { color: var(--sage); }
.placeholder--dark { font-size: 0.8rem; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 28px 36px;
  border-top: 1px solid var(--line-light);
  font-size: 0.85rem;
  color: var(--stone);
}
.footer__top-link { transition: color 0.2s; }
.footer__top-link:hover { color: var(--ivory); }

/* ==========================================================================
   Simple pages (thank-you, 404)
   ========================================================================== */
.simple-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px var(--gutter);
  text-align: center;
}
.simple-page__inner { max-width: 560px; }
.simple-page .brand { margin-bottom: 56px; }
.simple-page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 20px; }
.simple-page p { color: var(--text-muted); margin-bottom: 36px; }
.simple-page .check {
  width: 64px; height: 64px; margin: 0 auto 28px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--sage);
}

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav__menu ul { gap: 22px; }
  .nav__menu { gap: 24px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan--featured { order: -1; grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }

  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: 105;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 40px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
    background: var(--ivory);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .nav__menu ul { flex-direction: column; gap: 4px; }
  .nav__menu ul a {
    display: block;
    padding: 10px 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--charcoal);
  }
  .nav__menu ul a::after { display: none; }
  .nav__cta { align-self: flex-start; padding: 16px 28px; font-size: 1rem; }
  .menu-open .nav__menu { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  /* backdrop-filter would trap the fixed menu inside the header */
  .menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; box-shadow: none; }
  .brand { position: relative; z-index: 110; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; margin-top: 16px; }
  .hero { min-height: auto; }

  .about__grid,
  .faq__grid,
  .contact__grid,
  .project,
  .footer__top { grid-template-columns: 1fr; }
  .about__grid > div:first-child,
  .faq__grid > div:first-child { position: static; }
  .project--reverse .project__preview { order: 0; }
  .project__visit { opacity: 1; transform: none; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  .services__grid,
  .steps,
  .plans,
  .form__row { grid-template-columns: 1fr; }
  .plan--featured { grid-column: auto; }
  .values li { grid-template-columns: 1fr; gap: 4px; }
  .footer__nav { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
  .chip--a { left: 0; }
  .step__num { margin-bottom: 32px; }
  .work__next { padding: 28px 24px; }
  .mk-nav em { display: none; }
  .brand__sub { letter-spacing: 0.26em; }
}

@media (max-width: 400px) {
  .footer__nav { grid-template-columns: 1fr; }
  .hero__points { gap: 8px 20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* Contact detail links */
.contact__link {
  border-bottom: 1px solid var(--line-light);
  transition: color 0.2s, border-color 0.2s;
}
.contact__link:hover { color: var(--sage); border-color: var(--sage); }
