/* =========================================================
   charliedelgrande.com
   ========================================================= */

:root {
  --bg: #f6f5f1;
  --bg-alt: #efede7;
  --fg: #141413;
  --muted: #6c6a64;
  --rule: #dad7cf;
  --dark: #141413;
  --dark-fg: #f6f5f1;
  --dark-muted: #9b988f;
  --green: #2f8a4c;

  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Libre Caslon Text", Georgia, serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--fg); color: var(--bg);
  padding: 10px 14px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.label {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
}
.label--light { color: var(--dark-muted); }

/* Underline-on-hover links */
.menu a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .35s var(--ease);
}
.menu a:active { background-size: 100% 1px; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 22px 0 24px;
  border-radius: 999px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn--line { background: transparent; color: var(--fg); border-color: var(--rule); }
.btn--line::before { background: var(--fg); }
.btn__arrow {
  position: relative;
  display: inline-grid;
  overflow: hidden;
  width: 1em;
  height: 1.2em;
  line-height: 1.2;
}
.btn__arrow span {
  grid-area: 1 / 1;
  text-align: center;
  transition: transform .5s var(--ease);
}
.btn__arrow span:last-child { transform: translateX(-110%); }
.btn__arrow--down span:last-child { transform: translateY(-110%); }
@media (hover: hover) {
  .btn:hover { color: var(--fg); }
  .btn:hover::before { transform: translateY(0); }
  .btn--line:hover { color: var(--bg); border-color: var(--fg); }
  .btn:hover .btn__arrow span:first-child { transform: translateX(110%); }
  .btn:hover .btn__arrow span:last-child { transform: none; }
  .btn:hover .btn__arrow--down span:first-child { transform: translateY(110%); }
}
.btn:active { transform: scale(.98); }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 245, 241, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--rule); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.header__nav { display: none; align-items: center; gap: 4px; font-size: 15px; }
.header__nav a {
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.header__nav a:hover { background: rgba(20, 20, 19, 0.07); }
.header__nav .header__contact {
  margin-left: 12px;
  font-weight: 500;
  background: var(--fg);
  color: var(--bg);
  padding: 8px 16px;
}
.header__nav .header__contact:hover { background: #3a3935; }
.logo { transition: opacity .25s; }
.logo:hover { opacity: .6; }

.menu-btn {
  background: none;
  border: 0;
  padding: 10px 0 10px 16px;
  font-size: 15px;
  cursor: pointer;
}
.menu {
  display: none;
  flex-direction: column;
  padding: 8px var(--gutter) 24px;
  border-bottom: 1px solid var(--rule);
}
.menu a {
  font-size: 28px;
  letter-spacing: -0.02em;
  padding: 8px 0;
  align-self: flex-start;
}
.menu-open .menu { display: flex; }

@media (min-width: 820px) {
  .header__nav { display: flex; }
  .menu-btn, .menu, .menu-open .menu { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding-top: clamp(48px, 9vw, 120px);
  padding-bottom: clamp(56px, 8vw, 104px);
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 15px;
  color: var(--muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(32px, 5vw, 64px);
}
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); }
.status i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.hero__title {
  font-weight: 500;
  font-size: clamp(46px, 9.4vw, 148px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  max-width: 14ch;
}
.br-lg { display: none; }
@media (min-width: 1000px) { .br-lg { display: inline; } .hero__title { max-width: none; } }

.hero__foot {
  margin-top: clamp(36px, 5vw, 72px);
  display: grid;
  gap: 28px;
}
.hero__intro {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  max-width: 34em;
}
.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (min-width: 900px) {
  .hero__foot { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 64px; }
}

/* =========================================================
   Work / case study
   ========================================================= */
.work { padding-bottom: clamp(72px, 10vw, 140px); }

.work__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  margin-bottom: 24px;
}
.work__name { font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.work__type { color: var(--muted); font-size: 15px; }
@media (min-width: 820px) {
  .work__head { grid-template-columns: 1fr 2fr 1.4fr; align-items: baseline; gap: 24px; }
  .work__type { text-align: right; }
}

.case {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  gap: 40px;
}
@media (min-width: 820px) {
  .case { grid-template-columns: 1fr 1fr; gap: 64px; padding-left: calc(100% / 4.4); }
}
.case__h { font-size: 15px; font-weight: 500; margin-bottom: 12px; }
.case p { color: var(--muted); max-width: 36em; }
.case__list li {
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}
.case__list li:last-child { border-bottom: 1px solid var(--rule); }

/* ---------- Compare slider ---------- */
.compare__stage {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background: #ddd;
  box-shadow: 0 0 0 1px rgba(20, 20, 19, 0.08), 0 30px 60px -30px rgba(20, 20, 19, 0.35);
  container: stage / inline-size;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
@media (max-width: 640px) { .compare__stage { aspect-ratio: 3 / 4; border-radius: 6px; } }

.site { position: absolute; inset: 0; overflow: hidden; }
.site--after { clip-path: inset(0 0 0 var(--pos)); }

.compare__tag {
  position: absolute;
  bottom: 12px;
  z-index: 3;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: #141413;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  transition: opacity .2s;
}
.compare__tag--before { left: 12px; }
.compare__tag--after { right: 12px; background: #141413; color: #fff; }
.compare__stage[data-edge="left"] .compare__tag--before,
.compare__stage[data-edge="right"] .compare__tag--after { opacity: 0; }

.compare__line {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.compare__knob {
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141413' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.compare__range {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  touch-action: pan-y;
}
.compare__range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 2000px; }
.compare__range::-moz-range-thumb { width: 56px; height: 2000px; border: 0; }
.compare__range:focus-visible ~ .compare__line .compare__knob,
.compare__stage:has(.compare__range:focus-visible) .compare__knob { outline: 2px solid #141413; outline-offset: 2px; }
.compare__caption { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- BEFORE mock: dated template ---------- */
.site--before {
  --u: 1cqw;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.035) 0 2px, transparent 2px 6px),
    #cfc6b4;
  font-family: Verdana, Geneva, Arial, sans-serif;
  color: #555;
}
.ob-page { padding: calc(var(--u) * 1.6) calc(var(--u) * 7) 0; width: calc(var(--u) * 100); }
.ob-box { background: #fff; box-shadow: 0 0 calc(var(--u) * 1.2) rgba(0, 0, 0, .35); }
.ob-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(var(--u) * 1.8) calc(var(--u) * 2.4);
  background: linear-gradient(#fffaf0, #f6e9d2);
  border-bottom: calc(var(--u) * .3) solid #8b5a2b;
}
.ob-logo {
  font: italic 700 calc(var(--u) * 3.1)/1 Georgia, "Times New Roman", serif;
  color: #6b3a12;
  text-shadow: 1px 1px 0 #e3c89c, 2px 2px 2px rgba(0,0,0,.2);
}
.ob-tag { font: italic calc(var(--u) * 1.1)/1.4 Arial, sans-serif; color: #a0522d; margin-top: calc(var(--u) * .5); }
.ob-phone { text-align: right; font-size: calc(var(--u) * 1); color: #666; }
.ob-phone b { display: block; font: 700 calc(var(--u) * 1.8)/1.2 Arial, sans-serif; color: #c00; }
.ob-nav {
  display: flex;
  padding: 0 calc(var(--u) * 1.2);
  background: linear-gradient(#94653a, #5c3a1a);
}
.ob-nav span {
  color: #fff;
  font: 700 calc(var(--u) * .95)/1 Arial, sans-serif;
  text-transform: uppercase;
  padding: calc(var(--u) * 1.1) calc(var(--u) * 1.3);
  border-right: 1px solid rgba(255,255,255,.25);
  text-shadow: 0 -1px 0 rgba(0,0,0,.4);
  white-space: nowrap;
}
.ob-nav span.on { background: linear-gradient(#d99a45, #b8742a); }
.ob-slider { position: relative; height: calc(var(--u) * 21); overflow: hidden; border-bottom: 3px solid #e3d3b8; }
.ob-slider img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(.7) contrast(.88) brightness(1.05) sepia(.12);
}
.ob-caption {
  position: absolute;
  left: calc(var(--u) * 3); bottom: calc(var(--u) * 2.6);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font: italic calc(var(--u) * 2.3)/1.2 Georgia, serif;
  padding: calc(var(--u) * 1) calc(var(--u) * 2);
}
.ob-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: calc(var(--u) * 3);
  text-align: center;
  font: calc(var(--u) * 3)/1.1 Arial, sans-serif;
  color: #fff;
  background: rgba(0, 0, 0, .35);
}
.ob-arrow--l { left: calc(var(--u) * 1); }
.ob-arrow--r { right: calc(var(--u) * 1); }
.ob-dots { position: absolute; right: calc(var(--u) * 3); bottom: calc(var(--u) * 1.4); display: flex; gap: calc(var(--u) * .6); }
.ob-dots i { width: calc(var(--u) * .9); height: calc(var(--u) * .9); border-radius: 50%; background: rgba(255,255,255,.55); }
.ob-dots i.on { background: #fff; }
.ob-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--u) * 2.2);
  padding: calc(var(--u) * 2) calc(var(--u) * 2.4) calc(var(--u) * 2.4);
}
.ob-cols h4 {
  font: 700 calc(var(--u) * 1.5)/1.2 Georgia, serif;
  color: #6b3a12;
  padding-bottom: calc(var(--u) * .5);
  margin: 0 0 calc(var(--u) * .8);
  border-bottom: 1px dotted #c8a27a;
}
.ob-cols p { font-size: calc(var(--u) * .92); line-height: 1.5; color: #777; }
.ob-more {
  display: inline-block;
  margin-top: calc(var(--u) * .9);
  font: calc(var(--u) * .85)/1 Arial, sans-serif;
  padding: calc(var(--u) * .45) calc(var(--u) * 1);
  background: linear-gradient(#fafafa, #dcdcdc);
  border: 1px solid #b5b5b5;
  border-radius: calc(var(--u) * .3);
  color: #444;
}
.ob-footer {
  background: #5c3a1a;
  color: #e8d9c0;
  font-size: calc(var(--u) * .8);
  text-align: center;
  padding: calc(var(--u) * 1);
}
.ob-cookie {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(40, 40, 40, .96);
  color: #ddd;
  font: calc(var(--u) * 1)/1.4 Arial, sans-serif;
  text-align: center;
  padding: calc(var(--u) * 1.1);
}
.ob-cookie span {
  display: inline-block;
  margin-left: calc(var(--u) * 1);
  background: #4caf50;
  color: #fff;
  padding: calc(var(--u) * .3) calc(var(--u) * 1.4);
}

/* On a phone the old site doesn't adapt: it's the desktop page, cut off */
@container stage (max-width: 600px) {
  .site--before { --u: 2.1cqw; }
}

/* ---------- AFTER mock: the redesign ---------- */
.site--after {
  --ink: #2a1c13;
  --clay: #9b3f22;
  --flour: #f4ede2;
  background: var(--flour);
  color: var(--ink);
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
}
.nb-bar {
  background: var(--ink);
  color: var(--flour);
  font-size: 1cqw;
  letter-spacing: .02em;
  text-align: center;
  padding: .75cqw 2cqw;
}
.nb-dot { margin: 0 .9cqw; opacity: .5; }
.nb-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.3cqw 3cqw;
  border-bottom: 1px solid rgba(42, 28, 19, .12);
}
.nb-links { display: flex; gap: 2.2cqw; font-size: 1.1cqw; }
.nb-logo {
  font: 400 2.5cqw/1 var(--serif);
  text-align: center;
  letter-spacing: -0.01em;
}
.nb-logo small {
  display: block;
  font: 500 .7cqw/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-top: .5cqw;
  opacity: .65;
}
.nb-right { justify-self: end; }
.nb-btn {
  display: inline-block;
  background: var(--ink);
  color: var(--flour);
  font-size: 1.05cqw;
  font-weight: 500;
  padding: .85cqw 1.5cqw;
  border-radius: .25cqw;
  white-space: nowrap;
}
.nb-btn--lg { background: var(--clay); font-size: 1.2cqw; padding: 1.15cqw 2.1cqw; }
.nb-burger { display: none; }
.nb-hero {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.nb-photo { overflow: hidden; }
.nb-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 85%; }
.nb-copy {
  padding: 3cqw 4cqw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nb-kicker {
  font-size: .9cqw;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.4cqw;
}
.nb-h {
  font: 400 3.7cqw/1.1 var(--serif);
  letter-spacing: -0.015em;
}
.nb-p {
  margin-top: 1.4cqw;
  font-size: 1.2cqw;
  line-height: 1.55;
  color: #5d4a3c;
  max-width: 30em;
}
.nb-ctas { display: flex; align-items: center; gap: 2cqw; margin-top: 2.2cqw; }
.nb-textlink {
  font-size: 1.2cqw;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: .35em;
  text-decoration-thickness: 1px;
}
.nb-cards {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.1cqw;
  margin-top: 3.2cqw;
}
.nb-card {
  display: flex;
  align-items: center;
  gap: 1.1cqw;
  padding: .9cqw;
  background: #fbf8f2;
  border: 1px solid rgba(42, 28, 19, .1);
  border-radius: .3cqw;
  font-size: 1.1cqw;
  line-height: 1.35;
}
.nb-card img { width: 5cqw; height: 5cqw; object-fit: cover; border-radius: .2cqw; flex: none; }
.nb-card small {
  display: block;
  font-size: .75cqw;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: .3cqw;
}
.nb-card em { display: block; font-style: normal; color: #6f5c4d; }
.nb-card--hours { display: block; padding: .9cqw 1.3cqw; }
.nb-muted { color: #6f5c4d; }

/* The new site is properly responsive */
@container stage (max-width: 600px) {
  .nb-bar { font-size: 2.9cqw; padding: 2cqw 4cqw; }
  .nb-bar__more { display: none; }
  .nb-nav { grid-template-columns: 1fr auto 1fr; padding: 3.2cqw 5cqw; }
  .nb-links { display: none; }
  .nb-burger {
    display: flex;
    flex-direction: column;
    gap: 1.4cqw;
    grid-column: 1; grid-row: 1;
  }
  .nb-burger i { display: block; width: 6cqw; height: 2px; background: var(--ink); }
  .nb-logo { grid-column: 2; grid-row: 1; font-size: 6.6cqw; }
  .nb-logo small { font-size: 1.8cqw; margin-top: 1.2cqw; }
  .nb-right { grid-column: 3; }
  .nb-btn { font-size: 2.9cqw; padding: 2.2cqw 3.2cqw; border-radius: .8cqw; }
  .nb-hero { grid-template-columns: 1fr; grid-template-rows: 48cqw auto; }
  .nb-copy { padding: 6cqw 5cqw; justify-content: flex-start; }
  .nb-kicker { font-size: 2.5cqw; margin-bottom: 3cqw; }
  .nb-h { font-size: 8.2cqw; }
  .nb-p { display: none; }
  .nb-ctas { margin-top: 5cqw; gap: 5cqw; }
  .nb-btn--lg { font-size: 3.6cqw; padding: 3.4cqw 5cqw; }
  .nb-textlink { font-size: 3.6cqw; }
  .nb-cards { display: none; }
}

/* =========================================================
   Generic sections
   ========================================================= */
.section { padding: clamp(72px, 10vw, 140px) 0; border-top: 1px solid var(--rule); }
.section--alt { background: var(--bg-alt); }

.grid { display: grid; gap: 20px; }
@media (min-width: 820px) {
  .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 3.4fr); gap: 48px; }
}
.section__title {
  font-size: clamp(30px, 3.8vw, 54px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 18em;
  margin-bottom: clamp(36px, 5vw, 64px);
}

/* Services */
.services { border-top: 1px solid var(--rule); }
.service {
  display: grid;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.service dt { font-size: clamp(20px, 1.9vw, 26px); font-weight: 500; letter-spacing: -0.02em; }
.service dd { color: var(--muted); max-width: 36em; }
@media (min-width: 820px) {
  .service { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: baseline; padding: 28px 0; }
}
.included { margin-top: 40px; display: grid; gap: 8px; }
.included__label { font-size: 15px; font-weight: 500; }
.included p { color: var(--muted); max-width: 46em; }

/* Process */
.steps {
  display: grid;
  gap: 36px;
}
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; gap: 44px 40px; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.step { border-top: 1px solid var(--fg); padding-top: 16px; }
.step__n { display: block; font-size: 15px; color: var(--muted); margin-bottom: 28px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }

/* About */
.about__lead {
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  max-width: 28em;
}
.about__sub {
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  max-width: 36em;
}

/* FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.2em;
  line-height: 1;
  color: var(--muted);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); max-width: 40em; padding-bottom: 24px; margin-top: -6px; }

/* =========================================================
   Contact (dark)
   ========================================================= */
.contact {
  background: var(--dark);
  color: var(--dark-fg);
  padding-top: clamp(80px, 11vw, 160px);
}
.contact__title {
  margin-top: 20px;
  font-size: clamp(40px, 6.5vw, 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}
.contact__email {
  display: inline-block;
  margin-top: clamp(20px, 3vw, 36px);
  font-size: clamp(22px, 4.4vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  color: var(--dark-muted);
  transition: color .25s;
  word-break: break-word;
}
.contact__email:hover { color: var(--dark-fg); }
.contact__foot {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  gap: 20px;
  align-items: start;
}
.contact__foot p { color: var(--dark-muted); max-width: 34em; }
@media (min-width: 820px) {
  .contact__foot { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; }
}
.copy {
  justify-self: start;
  background: none;
  border: 1px solid #3a3936;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 15px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.copy:hover { border-color: var(--dark-fg); }

.footer {
  margin-top: clamp(72px, 10vw, 140px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid #2c2b28;
  font-size: 14px;
  color: var(--dark-muted);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--dark-fg); }

/* =========================================================
   Hover details
   ========================================================= */

/* Work: slider lifts, knob grows */
.compare__stage { transition: box-shadow .5s var(--ease); }
.compare__knob { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
@media (hover: hover) {
  .compare__stage:hover { box-shadow: 0 0 0 1px rgba(20, 20, 19, 0.1), 0 40px 80px -30px rgba(20, 20, 19, 0.45); }
  .compare__stage:hover .compare__knob { transform: scale(1.12); box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3); }
}

/* Case list: arrow slides in */
.case__list li {
  display: flex;
  align-items: baseline;
  transition: color .3s var(--ease);
}
.case__list li::before {
  content: "→";
  display: inline-block;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-8px);
  transition: width .4s var(--ease), opacity .3s, transform .4s var(--ease);
}
@media (hover: hover) {
  .case__list li:hover { color: var(--fg); }
  .case__list li:hover::before { width: 1.4em; opacity: 1; transform: none; }
}

/* Services: row fills dark from the bottom */
.service {
  position: relative;
  isolation: isolate;
  transition: color .4s var(--ease);
}
.service::before {
  content: "";
  position: absolute;
  inset: -1px -16px 0;
  z-index: -1;
  background: var(--fg);
  border-radius: 6px;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .5s var(--ease);
}
.service::after {
  content: "→";
  position: absolute;
  right: 4px;
  top: 50%;
  font-size: 22px;
  opacity: 0;
  transform: translate(-12px, -50%);
  transition: opacity .35s, transform .5s var(--ease);
}
.service dt, .service dd { transition: color .4s var(--ease), transform .5s var(--ease); }
@media (hover: hover) {
  .service:hover::before { transform: scaleY(1); transform-origin: top; }
  .service:hover dt { color: var(--bg); transform: translateX(16px); }
  .service:hover dd { color: #b9b6ad; }
  .service:hover::after { opacity: 1; transform: translate(0, -50%); color: var(--bg); }
}
@media (min-width: 820px) { .service { padding-right: 48px; } }

/* Included tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tags li {
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 15px;
  color: var(--muted);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
@media (hover: hover) {
  .tags li:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
}

/* Process: card tint + top line draws across */
.step {
  position: relative;
  isolation: isolate;
  border-top-color: var(--rule);
}
.step::before {
  content: "";
  position: absolute;
  inset: 0 -16px -16px;
  z-index: -1;
  background: var(--bg);
  border-radius: 0 0 8px 8px;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.step::after {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--fg);
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform .7s var(--ease);
}
.step__n {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  margin-left: -4px;
  border-radius: 50%;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
@media (hover: hover) {
  .step:hover::before { opacity: 1; }
  .step:hover::after { transform: scaleX(1); }
  .step:hover .step__n { background: var(--fg); color: var(--bg); }
}

/* FAQ: row tint, + becomes a filled circle */
.faq details { position: relative; isolation: isolate; }
.faq details::before {
  content: "";
  position: absolute;
  inset: 0 -16px;
  z-index: -1;
  background: var(--bg);
  border-radius: 6px;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.faq summary::after {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-size: 20px;
  transition: transform .35s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.faq details[open] summary::after { background: var(--fg); border-color: var(--fg); color: var(--bg); }
@media (hover: hover) {
  .faq details:hover::before { opacity: 1; }
  .faq summary:hover::after { background: var(--fg); border-color: var(--fg); color: var(--bg); }
}

/* Contact */
.contact__email {
  display: inline-flex;
  align-items: baseline;
  gap: .25em;
  text-decoration: none;
}
.contact__email span {
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(#3a3936, #3a3936);
  background-size: 0% 2px, 100% 2px;
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  padding-bottom: .06em;
  transition: background-size .6s var(--ease);
}
.contact__email i {
  font-style: normal;
  font-size: .7em;
  transition: transform .45s var(--ease);
}
.contact__email:hover span { background-size: 100% 2px, 100% 2px; }
.contact__email:hover i { transform: translate(.12em, -.12em); }
.copy { transition: border-color .25s, background-color .25s, color .25s; }
.copy:hover { background: var(--dark-fg); color: var(--dark); border-color: var(--dark-fg); }
.footer__top i { display: inline-block; font-style: normal; transition: transform .35s var(--ease); }
.footer__top:hover i { transform: translateY(-3px); }

/* =========================================================
   Motion (kept quiet)
   ========================================================= */
.js .fade {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .is-ready .fade, .js.is-ready .fade { opacity: 1; transform: none; }
.js .fade:nth-child(2) { transition-delay: .08s; }
.js .fade:nth-child(3) { transition-delay: .16s; }

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .fade, .js .reveal { opacity: 1; transform: none; transition: none; }
}
