/* ==========================================================================
   PriiEra — Freelance Digital Marketer
   style.css
   Sections:
   01 Tokens        02 Base          03 Layout helpers   04 Header & menu
   05 Buttons       06 Hero          07 Marquee          08 Intro
   09 Why           10 Services      11 Portfolio        12 Results
   13 About preview 14 Testimonials  15 Final CTA        16 Footer
   17 Inner pages   18 Services page 19 FAQ              20 Contact form
   21 Dialog        22 Motion        23 Responsive       24 Reduced motion
   ========================================================================== */

/* 01 TOKENS ---------------------------------------------------------------- */
:root {
  --cream: #FCF9F2;
  --sand: #E1DFD6;
  --ink: #2F2F2F;
  --terra: #B86F59;
  --terra-deep: #9A5540;   /* darker terracotta: use for small text (contrast) */
  --clay: #D9A18E;         /* lighter terracotta: use on dark backgrounds */
  --blush: #F0DDD2;
  --error: #A3392B;

  --font-display: "Playfair Display", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --maxw: 1360px;
  --radius: 28px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --line: rgba(47, 47, 47, .22);

  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='6' viewBox='0 0 14 6'%3E%3Cpath d='M0 3 Q3.5 -1 7 3 T14 3' fill='none' stroke='%23B86F59' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.menu-open,
body.dialog-open { overflow: hidden; }

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.015em;
}
h2 { font-size: clamp(2.3rem, 5.4vw, 4.75rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; }

:focus-visible {
  outline: 2.5px solid var(--terra-deep);
  outline-offset: 4px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--cream); }

::selection { background: var(--terra); color: var(--cream); }

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

.skip-link {
  position: fixed;
  top: .75rem; left: .75rem;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }

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

.section {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 9rem);
}
.bg-sand { background: var(--sand); }
.bg-ink  { background: var(--ink); color: var(--cream); }
.bg-blush { background: var(--blush); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.4rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--terra-deep);
}
.eyebrow::before {
  content: "";
  width: .55rem; height: .55rem;
  border-radius: 50%;
  background: var(--terra);
}
.on-dark .eyebrow { color: var(--clay); }

.section-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head p { max-width: 30rem; font-size: 1.1rem; }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 36rem; }

/* wavy boundary: the SVG sits on top edge of a section, coloured by currentColor */
.wave {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: clamp(36px, 6vw, 92px);
  transform: translateY(calc(-100% + 1px));
  pointer-events: none;
}
.wave svg { width: 100%; height: 100%; }
.wave path { fill: currentColor; }

/* hand-drawn doodles */
.doodle { position: absolute; pointer-events: none; color: var(--terra); }
.doodle svg { width: 100%; height: 100%; }
.hl { position: relative; display: inline-block; color: var(--terra); white-space: nowrap; }
.hl .scribble {
  position: absolute;
  left: -4%; bottom: -.14em;
  width: 108%; height: .3em;
  overflow: visible;
}
.hl .scribble path { fill: none; stroke: var(--terra); stroke-width: 3; stroke-linecap: round; }
.hl .ring {
  position: absolute;
  left: -9%; top: -14%;
  width: 118%; height: 128%;
  overflow: visible;
}
.hl .ring path { fill: none; stroke: var(--terra); stroke-width: 2.4; stroke-linecap: round; }

/* 04 HEADER & MOBILE MENU -------------------------------------------------- */
.page-curtain {
  position: fixed; inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  background: var(--terra);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 5rem);
  pointer-events: none;
}
html.js .page-curtain {
  display: grid;
  animation: curtain .9s var(--ease) .25s forwards;
}
.page-curtain span { animation: curtain-text .5s ease .05s forwards; }
@keyframes curtain { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes curtain-text { to { opacity: 0; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-header.is-scrolled {
  background: rgba(252, 249, 242, .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 rgba(47, 47, 47, .09);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 76px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -.02em;
  text-decoration: none;
  line-height: 1;
}
.logo span { font-style: italic; font-weight: 500; color: var(--terra); }

.nav { justify-self: center; }
.nav ul { display: flex; gap: clamp(1.4rem, 3vw, 2.6rem); }
.nav a {
  position: relative;
  display: inline-block;
  padding: .35rem 0;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 6px;
  background: var(--squiggle) repeat-x center / 14px 6px;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .3s ease, transform .3s var(--ease);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { opacity: 1; transform: none; }

.menu-toggle {
  display: none;
  position: relative;
  width: 46px; height: 46px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  padding: 0;
}
.menu-toggle span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--gutter) 2.5rem;
  background: var(--cream);
  visibility: hidden;
  clip-path: circle(0% at calc(100% - 2.5rem) 2.5rem);
  transition: clip-path .7s var(--ease), visibility 0s linear .7s;
  overflow-y: auto;
}
.mobile-menu.is-open {
  visibility: visible;
  clip-path: circle(150% at calc(100% - 2.5rem) 2.5rem);
  transition: clip-path .7s var(--ease), visibility 0s;
}
.mobile-menu ul { display: grid; gap: .25rem; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu li a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .7rem 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  line-height: 1.1;
  text-decoration: none;
}
.mobile-menu li a small {
  font-family: var(--font-body);
  font-size: .75rem;
  letter-spacing: .15em;
  color: var(--terra-deep);
}
.mobile-menu li a[aria-current="page"] { color: var(--terra-deep); font-style: italic; }
.mobile-menu .btn { margin-top: 2rem; align-self: flex-start; }
.mobile-menu-note { margin-top: 1.5rem; font-size: .9rem; opacity: .75; }

body.menu-open .site-header {
  z-index: 80;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

/* 05 BUTTONS --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: 1rem 1.7rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: .98rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s var(--ease);
}
.btn .arr { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--terra-deep); border-color: var(--terra-deep); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-small { padding: .7rem 1.25rem; font-size: .9rem; }
.btn-big { padding: 1.35rem 2.6rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.btn-light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-light:hover { background: var(--clay); border-color: var(--clay); }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem 0;
  border: 0;
  border-bottom: 1.5px solid currentColor;
  background: none;
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .25s ease, gap .3s var(--ease);
}
.link-btn:hover { color: var(--terra-deep); gap: .85rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .9rem 1rem; }

/* 06 HERO ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(4rem, 8vw, 7rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 6.4rem);
  line-height: .96;
  letter-spacing: -.025em;
}
.hero-sub { margin-top: 1.8rem; max-width: 33rem; font-size: clamp(1.1rem, 1.5vw, 1.25rem); }
.hero .btn-row { margin-top: 2.4rem; }

.hero-visual {
  position: relative;
  width: min(100%, 470px);
  margin-inline: auto;
}
.hero-visual .blob {
  position: absolute;
  right: -12%; bottom: -5%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--terra);
}
.arch {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 26px 26px;
  overflow: hidden;
  background: var(--sand);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

.tag {
  position: absolute;
  z-index: 2;
  padding: .5rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  animation: bob 6s ease-in-out infinite;
}
.tag-1 { left: -9%;  top: 14%;    --r: -6deg; }
.tag-2 { right: -8%; top: 26%;    --r: 5deg;  animation-delay: -1.5s; }
.tag-3 { left: -12%; bottom: 24%; --r: 4deg;  animation-delay: -3s; }
.tag-4 { right: -3%; bottom: 8%;  --r: -5deg; animation-delay: -4.5s; background: var(--ink); color: var(--cream); }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-7px) rotate(var(--r, 0deg)); }
}

.hero .doodle-star  { width: 46px; left: 47%; top: 5%; }
.hero .doodle-star2 { width: 26px; right: 3%; top: 4%; color: var(--ink); }
.hero .doodle-arrow { width: 110px; left: 30%; bottom: 3%; color: var(--ink); transform: rotate(8deg); }

/* 07 MARQUEE --------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  padding: 1.2rem 0;
  background: var(--ink);
  color: var(--cream);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; align-items: center; }
.marquee-group span {
  padding: 0 1.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.9rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-group .sep { padding: 0; color: var(--terra); font-size: 1.1em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 08 INTRO ----------------------------------------------------------------- */
.intro { padding-block: clamp(5rem, 12vw, 11rem); }
.intro .statement {
  font-size: clamp(2.4rem, 6.6vw, 6.2rem);
  line-height: 1.04;
  letter-spacing: -.028em;
}
.intro .support {
  margin: clamp(2rem, 5vw, 4rem) 0 0 auto;
  max-width: 34rem;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
}
.intro .doodle-star { width: clamp(34px, 5vw, 64px); right: 6%; top: 10%; }

/* 09 WHY ------------------------------------------------------------------- */
.why-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.why-head p { margin-top: 1.4rem; font-size: 1.15rem; max-width: 32rem; }
.reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(2rem, 6vw, 6rem);
  padding-bottom: 2.5rem;
}
.reason {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem clamp(1.2rem, 3vw, 2.4rem);
  padding: 2.2rem 0 2.6rem;
  border-top: 1px solid var(--line);
}
.reason .n {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 7vw, 6.2rem);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--terra-deep);
}
.reason h3 { margin-bottom: .7rem; }
.reason p { max-width: 24rem; }

/* 10 SERVICES (home list) -------------------------------------------------- */
.svc-list { border-top: 1px solid var(--ink); }
.svc-row {
  display: grid;
  grid-template-columns: 4.5rem 1.1fr 1.5fr 3rem;
  gap: 1.5rem;
  align-items: center;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding .45s var(--ease), background .35s ease;
}
.svc-row .num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--terra-deep);
}
.svc-row h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); transition: transform .45s var(--ease), color .3s ease; }
.svc-row p { max-width: 34rem; }
.svc-row .go {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 2.8rem; height: 2.8rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  transition: transform .45s var(--ease), background .3s ease, color .3s ease, border-color .3s ease;
}
.svc-row:hover, .svc-row:focus-visible {
  padding-inline: 1.25rem;
  background: rgba(184, 111, 89, .1);
}
.svc-row:hover h3, .svc-row:focus-visible h3 { transform: translateX(.5rem); color: var(--terra-deep); }
.svc-row:hover .go, .svc-row:focus-visible .go {
  transform: rotate(-45deg);
  background: var(--ink); color: var(--cream);
}
.section-foot { margin-top: 2.5rem; }

/* 11 PORTFOLIO ------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.chip {
  padding: .7rem 1.2rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease, transform .25s var(--ease);
}
.chip:hover { transform: translateY(-2px); background: var(--blush); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 3.2rem clamp(1rem, 2vw, 2rem);
  align-items: start;
}
.work-grid .work { grid-column: span var(--span, 4); margin-top: var(--shift, 0); }

.masonry { column-count: 3; column-gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.masonry .work { display: block; margin: 0 0 3.2rem; break-inside: avoid; }

.work[hidden] { display: none !important; }
.work.is-showing { animation: showing .6s var(--ease); }
@keyframes showing { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.work-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ar, 4 / 5);
  border-radius: var(--radius);
  background: var(--sand);
  cursor: pointer;
}
.work-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.work:hover .work-media img { transform: scale(1.06); }
.work-media .pill {
  position: absolute;
  left: 1rem; bottom: 1rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: var(--cream);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .4s var(--ease);
}
.work:hover .pill { opacity: 1; transform: none; }

.work-info { padding-top: 1.1rem; }
.work-cat {
  margin-bottom: .35rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terra-deep);
}
.work-info h3 { margin-bottom: .45rem; }
.work-info p { margin-bottom: .9rem; max-width: 26rem; }

.work-more {
  grid-column: span 5;
  align-self: center;
  padding: 1rem 0 1rem clamp(0rem, 3vw, 3rem);
}
.work-more h3 { font-size: clamp(1.8rem, 3.4vw, 3rem); margin-bottom: 1.4rem; }

.filter-status { min-height: 1.5rem; margin-bottom: 1.5rem; font-size: .9rem; color: rgba(47, 47, 47, .75); }

/* 12 RESULTS --------------------------------------------------------------- */
.results { padding-top: clamp(5rem, 11vw, 10rem); }
.results-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.results-head p { margin-top: 1.3rem; max-width: 30rem; opacity: .85; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat { padding-top: 1.4rem; border-top: 1px solid rgba(252, 249, 242, .35); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--clay);
}
.stat-label {
  margin-top: .6rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* 13 ABOUT PREVIEW --------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}
.about-visual { position: relative; width: min(100%, 480px); margin-inline: auto; }
.scallop {
  position: absolute;
  left: -14%; top: -8%;
  width: 78%;
  aspect-ratio: 1;
  color: var(--terra);
  animation: spin 60s linear infinite;
}
.scallop svg { width: 100%; height: 100%; }
.scallop path { fill: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }
.about-visual .arch { border-radius: 999px 999px 26px 26px; }
.about-visual .organic {
  position: absolute;
  right: -10%; bottom: -6%;
  z-index: 2;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  background: var(--sand);
  border: 1.5px solid var(--ink);
}
.about-copy h2 { margin-bottom: 1.6rem; }
.about-copy p + p { margin-top: 1.1rem; }
.about-copy .link-btn { margin-top: 2rem; font-size: 1.05rem; }

/* 14 TESTIMONIALS ---------------------------------------------------------- */
.quotes { display: grid; gap: clamp(3rem, 6vw, 5.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.quote { position: relative; max-width: 60rem; margin: 0; }
.quote:nth-child(even) { margin-left: auto; }
.quote::before {
  content: "\201C";
  display: block;
  margin-bottom: -.35em;
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 1;
  color: var(--terra);
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.quote figcaption { margin-top: 1.4rem; font-size: .95rem; }
.quote figcaption strong { display: block; font-weight: 600; }
.quote figcaption span { color: var(--terra-deep); }

/* 15 FINAL CTA ------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(6rem, 14vw, 13rem);
  background: var(--cream);
  text-align: center;
}
.cta .wave { color: var(--cream); }
.cta .wrap { position: relative; z-index: 2; }
.cta h2 {
  font-size: clamp(3rem, 10.5vw, 9.5rem);
  line-height: .93;
  letter-spacing: -.035em;
}
.cta p { margin: 2rem auto 2.6rem; max-width: 30rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.cta-shape { position: absolute; z-index: 1; border-radius: 50%; pointer-events: none; }
.cta-shape.c1 { width: clamp(150px, 26vw, 380px); aspect-ratio: 1; left: -6%; top: 12%; background: var(--terra); }
.cta-shape.c2 { width: clamp(70px, 10vw, 150px); aspect-ratio: 1; right: 8%; top: 9%; background: var(--terra); opacity: .9; }
.cta-shape.c3 { width: clamp(120px, 20vw, 300px); aspect-ratio: 1; right: -5%; bottom: -6%; border: 2px solid var(--terra); }
.cta-shape.c4 {
  width: clamp(90px, 14vw, 200px); aspect-ratio: 1.15;
  left: 12%; bottom: 6%;
  background: var(--blush);
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
}

/* 16 FOOTER ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  background: var(--ink);
  color: var(--cream);
  border-radius: clamp(28px, 5vw, 72px) clamp(28px, 5vw, 72px) 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr .6fr .6fr;
  gap: 2.5rem;
  align-items: start;
}
.footer-tag {
  margin-bottom: 1.8rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.footer-title {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--clay);
}
.site-footer li + li { margin-top: .5rem; }
.site-footer ul a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size .35s var(--ease);
}
.site-footer ul a:hover { background-size: 100% 1px; }
.footer-mark {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding-inline: var(--gutter);
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 20vw, 19rem);
  font-weight: 500;
  line-height: .82;
  letter-spacing: -.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(252, 249, 242, .4);
  user-select: none;
}
.footer-mark em { -webkit-text-stroke-color: var(--clay); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.6rem 2rem;
  border-top: 1px solid rgba(252, 249, 242, .2);
  font-size: .9rem;
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--clay); }

/* 17 INNER PAGES ----------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.page-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.8rem, 8vw, 7.4rem);
  line-height: .96;
  letter-spacing: -.03em;
}
.page-hero .lede { margin-top: 1.8rem; }
.page-hero .doodle-star { width: clamp(38px, 6vw, 84px); right: 9%; top: 18%; }
.page-hero .doodle-star2 { width: clamp(22px, 3vw, 40px); right: 20%; top: 58%; color: var(--ink); }
.page-hero .blob {
  position: absolute;
  right: -6%; bottom: -30%;
  width: clamp(180px, 30vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blush);
  z-index: -1;
}
.page-hero .wrap { position: relative; z-index: 1; }

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.story-copy h2 { margin-bottom: 2rem; }
.story-copy p { max-width: 36rem; }
.story-copy p + p { margin-top: 1.2rem; }
.story-copy .first { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.35; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 1.5rem; counter-reset: step; }
.step { padding-top: 1.4rem; border-top: 1px solid var(--ink); }
.step .n { display: block; margin-bottom: 1.6rem; font-family: var(--font-display); font-size: clamp(2.6rem, 4vw, 4rem); font-style: italic; line-height: 1; color: var(--terra); }
.step h3 { margin-bottom: .6rem; font-size: 1.6rem; }
.step p { font-size: .98rem; }
.on-dark .step { border-color: rgba(252, 249, 242, .4); }
.on-dark .step .n { color: var(--clay); }

.beliefs { display: grid; gap: clamp(1.5rem, 3vw, 2.6rem); }
.belief {
  padding-bottom: clamp(1.5rem, 3vw, 2.6rem);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.4vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: -.025em;
}
.belief:nth-child(even) { margin-left: clamp(0rem, 10vw, 9rem); font-style: italic; color: var(--terra-deep); }
.belief:last-child { border-bottom: 0; }

.skills { display: flex; flex-wrap: wrap; gap: .8rem; }
.skill {
  padding: .8rem 1.4rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
}
.skill:nth-child(3n+1) { background: var(--blush); }
.skill:nth-child(3n+2) { border-radius: 14px 999px 999px 14px; }
.skill:nth-child(5n) { background: var(--ink); color: var(--cream); }

/* 18 SERVICES PAGE --------------------------------------------------------- */
.jump { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.4rem; }
.jump a { text-decoration: none; }
.svc-detail {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--ink);
  scroll-margin-top: 90px;
}
.svc-side { position: sticky; top: 110px; align-self: start; }
.svc-side .big {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: clamp(5rem, 11vw, 9.5rem);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--terra-deep);
}
.svc-side h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); }
.svc-body > p { max-width: 36rem; font-size: 1.12rem; }
.svc-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 3rem; margin: 2.2rem 0; }
.svc-cols h3 {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--terra-deep);
}
.tick li { position: relative; padding: .35rem 0 .35rem 1.5rem; }
.tick li::before {
  content: "";
  position: absolute;
  left: 0; top: 1rem;
  width: .55rem; height: .55rem;
  border-radius: 50%;
  background: var(--terra);
}
.svc-note { margin-top: 1.4rem; font-size: .92rem; opacity: .8; max-width: 34rem; }

/* 19 FAQ ------------------------------------------------------------------- */
.faq { max-width: 56rem; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  position: relative;
  flex: none;
  width: 2.4rem; height: 2.4rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  transition: transform .4s var(--ease), background .3s ease;
}
.faq summary .plus::before, .faq summary .plus::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: .9rem; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .4s var(--ease);
}
.faq summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .plus { background: var(--terra-deep); border-color: var(--terra-deep); color: var(--cream); transform: rotate(180deg); }
.faq details[open] summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .answer { padding: 0 3.5rem 1.8rem 0; max-width: 42rem; }
.faq details[open] .answer { animation: showing .5s var(--ease); }

/* 20 CONTACT FORM ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem 2rem; }
.field { position: relative; }
.field.full { grid-column: 1 / -1; }
.field label {
  display: block;
  margin-bottom: .1rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.field .req { color: var(--terra-deep); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .85rem 0;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  font-size: 1.08rem;
  transition: border-color .25s ease, background .25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%232F2F2F' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .2rem center;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terra);
  background: rgba(184, 111, 89, .06);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2.5px solid var(--terra-deep);
  outline-offset: 2px;
  border-radius: 4px;
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field .error { display: none; margin-top: .4rem; font-size: .88rem; color: var(--error); }
.field.has-error .error { display: block; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 2.2rem; }
.form-actions .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.form-status { margin-top: 1.6rem; padding: 0; font-size: 1rem; }
.form-status:not(:empty) { padding: 1.1rem 1.3rem; border-radius: 18px; }
.form-status.ok   { background: var(--blush); border: 1.5px solid var(--terra-deep); }
.form-status.err  { background: #F6DDD8; border: 1.5px solid var(--error); color: #6E241A; }
.form-status.info { background: var(--sand); border: 1.5px solid var(--ink); }

.contact-side { position: sticky; top: 110px; }
.contact-side .arch { max-width: 300px; margin-bottom: 2.2rem; }
.detail-list li { padding: 1rem 0; border-top: 1px solid var(--line); }
.detail-list li:last-child { border-bottom: 1px solid var(--line); }
.detail-list .k {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terra-deep);
}
.detail-list a { text-decoration-color: var(--terra); text-underline-offset: 4px; }
.detail-list a:hover { color: var(--terra-deep); }

/* 21 DIALOG ---------------------------------------------------------------- */
.dialog {
  width: min(94vw, 960px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  overflow: auto;
}
.dialog::backdrop { background: rgba(47, 47, 47, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog[open] { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog-inner { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100%; }
.dialog-media { background: var(--sand); }
.dialog-media img { width: 100%; height: 100%; max-height: 92vh; object-fit: cover; }
.dialog-copy { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 4vw, 3.5rem); }
.dialog-copy h2 { margin: .3rem 0 1rem; font-size: clamp(2rem, 3.6vw, 3rem); }
.dialog-copy p { margin-bottom: 1rem; }
.dialog-copy .btn { margin-top: 1rem; align-self: flex-start; }
.dialog-close {
  position: absolute;
  top: 1rem; right: 1rem;
  display: grid;
  place-items: center;
  width: 2.8rem; height: 2.8rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  font-size: 1.4rem;
  line-height: 1;
  transition: background .25s ease, color .25s ease, transform .35s var(--ease);
}
.dialog-close:hover { background: var(--ink); color: var(--cream); transform: rotate(90deg); }
.dialog-note { font-size: .9rem; opacity: .75; }

/* 22 MOTION (reveal on scroll) -------------------------------------------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

html.js [data-img-reveal] {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.3s var(--ease);
}
html.js [data-img-reveal].is-visible { clip-path: inset(0 0 0 0); }
html.js [data-img-reveal] img { transform: scale(1.18); transition: transform 1.6s var(--ease); }
html.js [data-img-reveal].is-visible img { transform: scale(1); }
html.js .arch[data-img-reveal] { transition-delay: .55s; }

/* 23 RESPONSIVE ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: min(84%, 460px); margin-top: 1rem; }
  .hero .doodle-arrow { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.5rem; }
}

@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; justify-self: end; }
  .header-inner { grid-template-columns: 1fr auto; }

  .section-head { grid-template-columns: 1fr; }
  .about-grid, .story-grid, .contact-grid, .svc-detail { grid-template-columns: 1fr; }
  .svc-side, .contact-side { position: static; }
  .contact-side .arch { display: none; }
  .reasons { grid-template-columns: 1fr; padding-bottom: 0; }
  .reasons .reason:nth-child(even) { transform: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }

  .work-grid .work { grid-column: span 6; margin-top: 0; }
  .work-more { grid-column: 1 / -1; padding: 1rem 0; }
  .masonry { column-count: 2; }
  .intro .support { margin-left: 0; }
  .dialog-inner { grid-template-columns: 1fr; }
  .dialog-media img { max-height: 44vh; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .svc-row { grid-template-columns: 2.6rem 1fr 2.8rem; gap: .5rem 1rem; padding: 1.4rem 0; }
  .svc-row p { grid-column: 2 / 3; grid-row: 2; }
  .svc-row .go { grid-column: 3; grid-row: 1; }
  .svc-row:hover, .svc-row:focus-visible { padding-inline: .6rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .svc-cols { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .quote:nth-child(even) { margin-left: 0; }
  .belief:nth-child(even) { margin-left: 0; }
}

@media (max-width: 560px) {
  .work-grid .work { grid-column: 1 / -1; }
  .masonry { column-count: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .tag-1 { left: -3%; }
  .tag-2 { right: -3%; }
  .tag-3 { left: -4%; }
  .tag-4 { right: -1%; }
  .tag { font-size: .66rem; padding: .42rem .8rem; }
  .steps { grid-template-columns: 1fr; }
  .stats { gap: 2rem 1rem; }
  .filters { gap: .45rem; }
  .chip { padding: .6rem .95rem; font-size: .7rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .faq .answer { padding-right: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-shape.c4 { display: none; }
  .scallop { left: -8%; }
}

@media (max-width: 380px) {
  :root { --gutter: 1.1rem; }
  .logo { font-size: 1.55rem; }
  .hero h1 { font-size: 2.45rem; }
  .stat-num { font-size: 3rem; }
}

/* 24 REDUCED MOTION -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  html.js .page-curtain { display: none; }
  html.js [data-reveal], html.js [data-img-reveal] { opacity: 1; transform: none; clip-path: none; }
  html.js [data-img-reveal] img { transform: none; }
  .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; animation: none; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee-group { flex-wrap: wrap; justify-content: center; }
  .scallop, .tag { animation: none; }
}
