/* ==========================================================================
   Surya Kumar — Freelance Web Design & Development
   Hand-written CSS. No framework, no build step.

   Contents
   01  Design tokens
   02  Reset & base
   03  Typography primitives
   04  Buttons
   05  Layout primitives (shell, section, eyebrow)
   06  Header & navigation
   07  Hero + CSS interface mockups
   08  Trust / value strip
   09  Selected work (frames, tags, case studies)
   10  Services
   11  Process
   12  About
   13  Free review band
   14  Contact form
   15  Footer
   16  Motion & reveal
   17  Responsive refinements
   ========================================================================== */

/* -------------------------------------------------- 01  Design tokens --- */
:root {
  /* Palette — warm neutrals + a single restrained clay accent */
  --paper:        #f7f5f1;
  --paper-sunk:   #f1eee7;
  --paper-raised: #fffefb;
  --ink:          #16150f;
  --ink-soft:     #3a3830;
  --stone:        #6e6a61;
  --stone-light:  #98938a;  /* decorative only — 2.8:1, never real text */
  --line:         #e2ddd3;
  --line-strong:  #cfc8bb;
  --clay:         #a8492e;
  --clay-deep:    #8d3c24;
  --clay-tint:    #f3e7e1;

  /* Typography */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans:    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.12rem, 1.05rem + 0.35vw, 1.3rem);
  --step-2:  clamp(1.35rem, 1.2rem + 0.72vw, 1.75rem);
  --step-3:  clamp(1.75rem, 1.45rem + 1.5vw, 2.6rem);
  --step-4:  clamp(2.3rem, 1.75rem + 2.7vw, 4rem);
  --step-5:  clamp(2.85rem, 1.9rem + 4.1vw, 4.5rem);

  /* Space */
  --gutter:  clamp(1.25rem, 4vw, 3rem);
  --shell:   72rem;          /* 1152px */
  --s-1: 0.5rem;  --s-2: 0.75rem; --s-3: 1rem;   --s-4: 1.5rem;
  --s-5: 2rem;    --s-6: 3rem;    --s-7: 4.5rem; --s-8: 6rem;
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  /* Form */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;
  --header-h:  72px;

  --shadow-sm: 0 1px 2px rgba(22, 21, 15, .05);
  --shadow-md: 0 14px 34px -18px rgba(22, 21, 15, .28);
  --shadow-lg: 0 40px 80px -40px rgba(22, 21, 15, .42), 0 2px 8px rgba(22, 21, 15, .05);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur:  .42s;
}

/* ---------------------------------------------------- 02  Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;           /* belt-and-braces against stray overflow */
}

/* Very fine paper grain — adds warmth without weight (one inline SVG). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--clay); color: var(--paper); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -110%);
  z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: .7rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: var(--step--1); font-weight: 500;
  text-decoration: none;
  transition: transform var(--dur) var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ------------------------------------------ 03  Typography primitives --- */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.022em;
  color: var(--ink);
  font-optical-sizing: auto;
  text-wrap: balance;
}
h4 { line-height: 1.25; }

em { font-style: italic; }

.eyebrow {
  margin: 0 0 var(--s-4);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--stone);
}
.eyebrow--index {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.eyebrow--index span { color: var(--clay); }
.eyebrow--index::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line-strong);
  max-width: 7rem;
}
.eyebrow--light { color: rgba(247, 245, 241, .62); }

/* ------------------------------------------------------- 04  Buttons --- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  min-height: 48px;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn--solid { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink); }
.btn--solid:hover  { --btn-bg: var(--clay); --btn-bd: var(--clay); }
.btn--ghost:hover  { --btn-bd: var(--ink); background: rgba(22, 21, 15, .04); }
.btn--invert { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }
.btn--invert:hover { --btn-bg: var(--clay-tint); --btn-bd: var(--clay-tint); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: .6rem 1.15rem; min-height: 42px; font-size: .82rem; }
.btn--block { width: 100%; }

/* "Live site not published yet" state */
.btn--pending {
  --btn-bg: transparent;
  --btn-fg: var(--stone);
  --btn-bd: var(--line-strong);
  border-style: dashed;
}
.btn--pending:hover { --btn-fg: var(--ink); --btn-bd: var(--stone); background: transparent; }

.btn__ext { font-size: .9em; line-height: 1; transform: translateY(-1px); }

/* --------------------------------------------- 05  Layout primitives --- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--services { background: var(--paper-sunk); border-block: 1px solid var(--line); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section__title { font-size: var(--step-3); }
.section__lede {
  margin-top: var(--s-4);
  max-width: 40rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--stone);
  text-wrap: pretty;
}

/* ------------------------------------------------ 06  Header & nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark__name {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}
.wordmark__rule { width: 18px; height: 1px; background: var(--line-strong); }
.wordmark__role {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--stone);
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }
.nav__list { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }

.nav__link {
  position: relative;
  display: inline-block;
  padding-block: .35rem;
  font-size: .9rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .6rem;
  padding: .5rem .85rem .5rem .7rem;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
}
.nav-toggle__box { display: grid; gap: 4px; width: 17px; }
.nav-toggle__bar {
  display: block; height: 1.5px; width: 100%;
  background: var(--ink); border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child  { transform: translateY(-2.75px) rotate(-45deg); }

/* ----------------------------------------------------------- 07  Hero --- */
.hero {
  position: relative;
  padding-top: clamp(3.5rem, 7vw, 6.5rem);
  padding-bottom: clamp(4rem, 8vw, 7.5rem);
  overflow: hidden;
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 8.3333%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 72%);
  opacity: .8;
}
.hero__inner {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
  align-items: center;
}
.hero__copy { max-width: 36rem; }

.hero__title {
  font-size: var(--step-5);
  letter-spacing: -.035em;
  line-height: .98;
}
.hero__title em {
  display: block;
  color: var(--clay);
  font-weight: 300;
}
.hero__lede {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 34rem;
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--stone);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stone);
}
.hero__meta li { display: flex; align-items: center; gap: .6rem; }
.hero__meta li::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--clay);
}

/* --- CSS-only interface mockups (decorative) --- */
/* Capped so the stacked (tablet) hero doesn't stretch the mockup
   edge-to-edge; at desktop the column is narrower than this anyway. */
.hero__visual { position: relative; max-width: 34rem; padding-bottom: 3.5rem; }

.mock { background: var(--paper-raised); border: 1px solid var(--line); }

.mock--browser {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock__chrome {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .7rem .85rem;
  background: var(--paper-sunk);
  border-bottom: 1px solid var(--line);
}
.mock__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.mock__dot:first-child { background: #d9b1a4; }
.mock__url {
  flex: 1 1 auto;
  margin-left: .5rem;
  padding: .28rem .7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--stone-light);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock__screen { padding: 1.1rem 1.1rem 1.35rem; }

.mock__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.mock__logo { width: 46px; height: 9px; border-radius: 2px; background: var(--ink); }
.mock__navlinks { display: flex; gap: .45rem; margin-left: auto; }
.mock__navlinks i { display: block; width: 26px; height: 5px; border-radius: 2px; background: var(--line-strong); }
.mock__pill { width: 52px; height: 18px; border-radius: 999px; background: var(--clay); }

.mock__hero { display: grid; gap: .5rem; padding: 1.5rem 0 1.35rem; }
.mock__h1 { height: 15px; width: 82%; border-radius: 3px; background: var(--ink); }
.mock__h1--short { width: 54%; background: var(--clay); opacity: .85; }
.mock__text { height: 6px; width: 68%; border-radius: 3px; background: var(--line-strong); }
.mock__text--short { width: 46%; }
.mock__cta { width: 96px; height: 24px; margin-top: .55rem; border-radius: 999px; background: var(--ink); }

.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.mock__card {
  height: 52px;
  border-radius: 6px;
  background: var(--paper-sunk);
  border: 1px solid var(--line);
}
.mock__card:nth-child(2) { background: var(--clay-tint); border-color: #e7d3ca; }

.mock--phone {
  position: absolute;
  left: -1.5rem;
  bottom: -.5rem;
  width: 128px;
  padding: .5rem;
  border-radius: 20px;
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.mock__phone-screen {
  display: grid;
  gap: .4rem;
  padding: .7rem .6rem .85rem;
  border-radius: 14px;
  background: var(--paper);
}
.mock__phone-bar { height: 5px; width: 60%; border-radius: 3px; background: var(--ink); }
.mock__phone-block { height: 42px; border-radius: 6px; background: var(--clay); opacity: .92; }
.mock__phone-cta { height: 18px; margin-top: .25rem; border-radius: 999px; background: var(--ink); }

/* ------------------------------------------------------- 08  Strip --- */
.strip {
  border-block: 1px solid var(--line);
  background: var(--paper-sunk);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.strip__grid { display: grid; gap: var(--s-5); }
.value__title {
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -.015em;
  margin-bottom: .55rem;
}
.value p { color: var(--stone); font-size: .95rem; line-height: 1.6; max-width: 26rem; }

/* -------------------------------------------------------- 09  Work --- */
.project {
  display: grid;
  gap: clamp(2rem, 4.5vw, 3.5rem);
  align-items: start;
  padding-top: clamp(3rem, 6vw, 5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}
.project:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }

.project__label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 var(--s-3);
  padding: .3rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stone);
  background: var(--paper-raised);
}
.project__name { font-size: var(--step-2); margin-bottom: var(--s-3); }
.project__desc { color: var(--stone); font-size: 1.02rem; line-height: 1.65; max-width: 34rem; }

.project__spec {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem .9rem;
  margin: var(--s-4) 0 0;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.project__spec dt { color: var(--stone); }
.project__spec dd { margin: 0; color: var(--ink); }

.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: var(--s-4); }
.tags li {
  padding: .3rem .7rem;
  border-radius: var(--radius-sm);
  background: var(--paper-sunk);
  border: 1px solid var(--line);
  font-size: .76rem;
  color: var(--stone);
}

.project__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
}

/* Browser frame around the screenshots */
.frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.frame__chrome {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem .8rem;
  background: var(--paper-sunk);
  border-bottom: 1px solid var(--line);
}
.frame__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; }
.frame__url {
  flex: 1 1 auto;
  margin-left: .5rem;
  padding: .26rem .7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--stone);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frame__shot { width: 100%; height: auto; background: var(--paper-sunk); }
.project__figure { margin: 0; }

/* Case studies (native <details>) */
.case {
  margin-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.case__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: var(--s-3) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color var(--dur) var(--ease);
}
.case__summary::-webkit-details-marker { display: none; }
.case__summary:hover { color: var(--ink); }
.case__chev {
  position: relative;
  width: 11px; height: 11px;
  flex: none;
}
.case__chev::before, .case__chev::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.case__chev::before { top: 5px; left: 0; width: 11px; height: 1px; }
.case__chev::after  { left: 5px; top: 0; width: 1px; height: 11px; }
.case[open] .case__chev::after { transform: scaleY(0); opacity: 0; }

.case__body { padding-bottom: var(--s-4); }
.case__row { padding-top: var(--s-4); }
.case__row + .case__row { border-top: 1px dashed var(--line); }
.case__row h4 {
  margin-bottom: .5rem;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clay);
}
.case__row p, .case__row li { color: var(--stone); font-size: .95rem; line-height: 1.7; }
.case__row ul { display: grid; gap: .4rem; }
.case__row li { position: relative; padding-left: 1.1rem; }
.case__row li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 5px; height: 1px;
  background: var(--line-strong);
}

/* ---------------------------------------------------- 10  Services --- */
.services {
  display: grid;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.service {
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  transition: background-color var(--dur) var(--ease);
}
.service:hover { background: var(--paper-raised); }
.service__num {
  margin: 0 0 var(--s-4);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--clay);
}
.service__title { font-size: var(--step-2); margin-bottom: var(--s-2); }
.service p { color: var(--stone); font-size: .97rem; line-height: 1.65; max-width: 28rem; }
.services__cta { margin-top: clamp(2.25rem, 4.5vw, 3.25rem); }

/* ----------------------------------------------------- 11  Process --- */
.process {
  display: grid;
  gap: var(--s-5);
  counter-reset: step;
}
.step { padding-top: var(--s-4); border-top: 1px solid var(--line-strong); }
.step__num {
  display: block;
  margin-bottom: var(--s-4);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--clay);
}
.step__title { font-size: var(--step-1); margin-bottom: .5rem; }
.step p { color: var(--stone); font-size: .95rem; line-height: 1.65; }

/* ------------------------------------------------------- 12  About --- */
.about { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.about .section__title { font-size: var(--step-3); }
.about__lead {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.015em;
  color: var(--ink);
  margin-bottom: var(--s-5);
  text-wrap: pretty;
}
.about__body p { color: var(--stone); max-width: 38rem; line-height: 1.75; }
.about__body p + p { margin-top: 1.1em; }
.about__list {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.about__list li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--stone);
  font-size: .97rem;
  line-height: 1.6;
  max-width: 38rem;
}
.about__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .68em;
  width: 8px; height: 1px;
  background: var(--clay);
}
.about__list strong { color: var(--ink); font-weight: 600; }

/* -------------------------------------------------- 13  Review band --- */
.review {
  position: relative;
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--ink);
  color: rgba(247, 245, 241, .74);
  overflow: hidden;
}
.review::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(to right, rgba(247,245,241,.07) 0 1px, transparent 1px 8.3333%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, rgba(0,0,0,.9), transparent 70%);
  mask-image: radial-gradient(120% 90% at 50% 0%, rgba(0,0,0,.9), transparent 70%);
}
.review__inner { position: relative; max-width: 44rem; text-align: center; margin-inline: auto; }
.review .eyebrow { margin-bottom: var(--s-4); }
.review__title { font-size: var(--step-3); color: var(--paper); margin-bottom: var(--s-4); }
.review__copy {
  font-size: var(--step-1);
  line-height: 1.6;
  margin-bottom: var(--s-5);
  text-wrap: pretty;
}
.review__note {
  margin-top: var(--s-4);
  font-size: .84rem;
  color: rgba(247, 245, 241, .48);
}

/* ------------------------------------------------------ 14  Contact --- */
.contact { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.contact__direct {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--stone);
}
.contact__direct a {
  font-family: var(--font-mono);
  font-size: .92rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  word-break: break-word;
}
.contact__direct a:hover { color: var(--clay); border-color: var(--clay); }

.form {
  display: grid;
  gap: var(--s-4);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form__row { display: grid; gap: var(--s-4); }

.field { display: grid; gap: .45rem; min-width: 0; align-content: start; }
.field label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
}
.req { color: var(--clay); }

.field input,
.field textarea,
.select select {
  width: 100%;
  min-width: 0;
  padding: .8rem .95rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: var(--stone); }

.field input:hover,
.field textarea:hover,
.select select:hover { border-color: var(--stone-light); }

.field input:focus,
.field textarea:focus,
.select select:focus {
  outline: none;
  border-color: var(--clay);
  background: var(--paper-raised);
  box-shadow: 0 0 0 3px rgba(168, 73, 46, .13);
}
.field input:focus-visible,
.field textarea:focus-visible,
.select select:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

.select { position: relative; }
.select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  cursor: pointer;
}
.select select:invalid { color: var(--stone); }
.select__chev {
  position: absolute;
  right: 1rem; top: 50%;
  width: 8px; height: 8px;
  margin-top: -6px;
  border-right: 1.5px solid var(--stone);
  border-bottom: 1.5px solid var(--stone);
  transform: rotate(45deg);
  pointer-events: none;
}

.field__hint { margin: 0; font-size: .78rem; color: var(--stone); line-height: 1.5; }
.field__error {
  margin: 0;
  font-size: .78rem;
  font-weight: 500;
  color: var(--clay-deep);
  line-height: 1.5;
  display: none;
}
.field.has-error .field__error { display: block; }
.field.has-error input,
.field.has-error textarea,
.field.has-error .select select { border-color: var(--clay-deep); }

/* Honeypot — visually and semantically out of the way, still in the DOM. */
.hp {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form__foot { display: grid; gap: var(--s-2); margin-top: var(--s-1); }
.form__note { margin: 0; font-size: .76rem; color: var(--stone); text-align: center; }

.form__status {
  margin: 0;
  min-height: 0;
  font-size: .88rem;
  line-height: 1.55;
}
.form__status:empty { display: none; }
.form__status.is-error {
  padding: .8rem 1rem;
  border-radius: var(--radius);
  background: var(--clay-tint);
  border: 1px solid #e8d2c9;
  color: var(--clay-deep);
}
.form__status.is-success {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.form.is-sent { opacity: 1; }
.form.is-sent .form__row,
.form.is-sent .field,
.form.is-sent .form__foot { display: none; }

.btn[data-submit][disabled] { opacity: .6; cursor: progress; transform: none; }

/* ------------------------------------------------------- 15  Footer --- */
.site-footer {
  background: var(--ink);
  color: rgba(247, 245, 241, .6);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.site-footer__inner { display: grid; gap: var(--s-5); }
.site-footer__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--paper);
}
.site-footer__role {
  margin: .25rem 0 0;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, .6);
}
.site-footer__mail { margin: var(--s-3) 0 0; }
.site-footer__mail a {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: rgba(247, 245, 241, .82);
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 245, 241, .22);
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  word-break: break-word;
}
.site-footer__mail a:hover { color: var(--paper); border-color: var(--paper); }

.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-footer__nav a {
  /* Transparent vertical padding lifts the tap target to ~42px without
     changing how the link looks. */
  display: inline-block;
  padding-block: .65rem;
  font-size: .9rem;
  color: rgba(247, 245, 241, .62);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.site-footer__nav a:hover { color: var(--paper); }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  justify-content: space-between;
  margin: 0;
  padding-top: var(--s-4);
  border-top: 1px solid rgba(247, 245, 241, .12);
  font-size: .78rem;
  color: rgba(247, 245, 241, .6);
}
.site-footer :focus-visible { outline-color: var(--paper); }

/* ------------------------------------------------- 16  Motion/reveal --- */
/* Elements are visible by default; the .js class (set by an inline snippet in
   <head>) opts them into the reveal. If JavaScript never runs, nothing hides. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal-delay="1"] { --reveal-delay: 1; }
.js [data-reveal-delay="2"] { --reveal-delay: 2; }
.js [data-reveal-delay="3"] { --reveal-delay: 3; }
.js [data-reveal-delay="4"] { --reveal-delay: 4; }

.error-page { min-height: calc(100svh - 7rem); display: flex; align-items: center; }
.error-page__inner { width: 100%; padding-block: clamp(5rem, 12vw, 9rem); }
.error-page .hero__title { max-width: 12ch; }
.error-page .hero__lede { max-width: 35rem; }
.nav-toggle { min-width: 44px; }

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

/* --------------------------------------------- 17  Responsive rules --- */

/* ≥ 560px — two-up form fields, side-by-side values */
@media (min-width: 35em) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .strip__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-5); }
}

/* ≥ 720px — service grid, process row, three-up strip */
@media (min-width: 45em) {
  .strip__grid { grid-template-columns: repeat(3, 1fr); }

  /* Let the phone hang further past the browser frame so the overlap reads
     as deliberate layering rather than one card being covered. */
  .mock--phone { left: -2.5rem; bottom: -1rem; width: 142px; }

  .services { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-5); }
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .site-footer__legal { grid-column: 1 / -1; }
}

/* ≥ 900px — full desktop navigation + two-column compositions */
@media (min-width: 56.25em) {
  :root { --header-h: 80px; }

  .process { grid-template-columns: repeat(4, 1fr); }

  .project { grid-template-columns: 1.08fr 1fr; align-items: center; }
  .project__figure { order: 2; }
  .project__body  { order: 1; }
  .project--reverse .project__figure { order: 1; }
  .project--reverse .project__body  { order: 2; }

  .about { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); }
  .about__head { position: sticky; top: calc(var(--header-h) + 2rem); }

  .contact { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); }
  .contact__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ≥ 1000px — hero becomes a two-column composition */
@media (min-width: 62.5em) {
  .hero__inner { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); }
  .hero__visual { padding-left: 1.5rem; }
}

/* ≥ 1200px — give the headline the room to break exactly where it should:
   "Modern Websites" / "for Local Businesses." */
@media (min-width: 75em) {
  .hero__inner { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
}

/* ---------- Mobile navigation (< 900px) ---------- */
@media (max-width: 56.24em) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    align-content: start;
    gap: 0;
    padding: calc(var(--header-h) + 2.5rem) var(--gutter) var(--gutter);
    background: var(--paper);
    /* Hidden from mouse, keyboard and screen readers until opened. */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease),
                transform var(--dur) var(--ease),
                visibility 0s linear var(--dur);
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }

  .nav__list { display: grid; gap: 0; width: 100%; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link {
    display: block;
    padding: 1.15rem 0;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: -.02em;
    color: var(--ink);
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--clay); }

  .nav__cta { margin-top: var(--s-5); width: 100%; }

  /* The panel is a child of the header, so it would paint over its siblings.
     Lift the wordmark and the close button back above it. */
  .wordmark, .nav-toggle { position: relative; z-index: 95; }

  /* Scroll lock while the panel is open (html is the scrolling element). */
  html.nav-open, html.nav-open body { overflow: hidden; }

  /* backdrop-filter would make .site-header a containing block for the
     position:fixed nav panel, trapping it inside the header box. Drop it
     here and use an opaque background instead. */
  .site-header {
    z-index: 100;
    background: var(--paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ---------- Small phones ---------- */
@media (max-width: 26.25em) {
  .wordmark__rule, .wordmark__role { display: none; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: .5rem .7rem; }
  .hero__actions .btn { width: 100%; }
  .project__actions .btn { width: 100%; }
  .mock--phone { width: 108px; left: -.5rem; }
  .mock__cards { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .hero__visual, .review, .form { display: none; }
  body { background: #fff; color: #000; }
}
