/* ==========================================================================
   LAMTECH SOLUTIONS
   Canvas: warm off-white. Type: Plus Jakarta Sans.
   Rhythm: light editorial page punctuated by full-bleed dark image bands.
   ========================================================================== */

:root {
  --paper:      #F2F0ED;
  --paper-2:    #E8E5E0;
  --ink:        #14120F;
  --ink-2:      #1B1918;
  --ink-soft:   #5C5750;
  --ink-faint:  #8E887F;
  --red:        #EE3312;
  --red-deep:   #C7280C;
  --line:       #D6D2CA;
  --line-soft:  #E2DED7;

  --font: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;

  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* browser surfaces — themed, not left to defaults */
::selection { background: var(--red); color: var(--paper); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: var(--ink-faint) var(--paper-2); scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--ink-faint); border: 3px solid var(--paper-2); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-soft); }
input, textarea, select { caret-color: var(--red); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.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;
}

/* ---------- type scale ---------- */
.d1 { font-family: var(--font-display); font-size: clamp(3.4rem, 7.4vw, 5.6rem); font-weight: 400; line-height: 0.96; letter-spacing: -0.02em; }
.d2 { font-family: var(--font-display); font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.015em; }
.d3 { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2rem); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--ink-soft); line-height: 1.55; max-width: 42ch; }
.meta { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-faint); }

.dot { color: var(--red); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.stuck { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }

.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.06rem; letter-spacing: -0.035em; }
.logo svg { display: block; flex: none; transition: transform 0.3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .logo:hover svg { transform: rotate(-6deg) scale(1.08); }
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.88rem; font-weight: 700; letter-spacing: -0.01em;
  padding: 13px 22px; border-radius: 100px; min-height: 44px;
  background: var(--ink); color: var(--paper);
  transition: background 0.22s var(--ease), transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease);
}
.btn:hover { background: var(--red); transform: translateY(-1px); }
.btn:active { transform: scale(0.97); transition-duration: 100ms; }
.btn svg { transition: transform 0.22s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--red { background: var(--red); }
.btn--red:hover { background: var(--ink); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--paper { background: var(--paper); color: var(--ink); box-shadow: 0 2px 12px -2px rgba(20,18,15,0.18); }
.btn--paper:hover { background: #fff; color: var(--ink); box-shadow: 0 6px 20px -4px rgba(20,18,15,0.22); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; margin-right: -10px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 840px) {
  .nav-toggle { display: flex; order: 3; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; z-index: 55;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 18px var(--gut) 30px;
    transform: translateY(-115%); transition: transform 0.42s var(--ease);
  }
  .nav.open { transform: translateY(0); }
  .nav a { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; letter-spacing: -0.01em; padding: 9px 0; color: var(--ink); }
  .nav .btn { margin-top: 14px; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(38px, 7vw, 78px); padding-bottom: clamp(60px, 9vw, 110px); position: relative; overflow: hidden; }
.hero-head { max-width: 17ch; }
.hero-head .l1 { display: block; font-family: var(--font); font-weight: 400; color: var(--ink-soft); font-size: 0.42em; letter-spacing: 0; line-height: 1.4; }
.hero-head .l2 { display: block; }

.hero-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 4vw, 52px);
  margin-top: clamp(26px, 3.4vw, 40px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.status { display: inline-flex; align-items: center; gap: 9px; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
.status i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex: none;
  box-shadow: 0 0 0 0 rgba(238,51,18,0.55); animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(238,51,18,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(238,51,18,0); }
  100% { box-shadow: 0 0 0 0 rgba(238,51,18,0); }
}

/* the browser-frame mockup: the site showing a site */
.stage { position: relative; margin-top: clamp(40px, 6vw, 72px); }
.stage-arc {
  position: absolute; left: 50%; bottom: -14%; translate: -50% 0;
  width: min(122%, 1500px); z-index: 0; pointer-events: none;
}
.frame {
  position: relative; z-index: 1;
  max-width: 980px; margin-inline: auto;
  background: var(--ink); border-radius: 16px 16px 0 0;
  padding: 11px 12px 0;
  box-shadow: 0 34px 70px -22px rgba(20,18,15,0.42);
  transition: transform 0.65s var(--ease-out), box-shadow 0.65s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .frame:hover { transform: translateY(-4px); box-shadow: 0 42px 80px -20px rgba(20,18,15,0.38); }
}
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 0 4px 11px; }
.frame-bar b { width: 9px; height: 9px; border-radius: 50%; background: #3B3733; display: block; }
.frame-bar span {
  margin-left: 12px; flex: 1; height: 20px; border-radius: 6px; background: #262320;
  display: flex; align-items: center; padding: 0 10px;
  font-size: 0.62rem; font-weight: 600; color: #6E6960; letter-spacing: 0.01em;
}
.screen { background: var(--paper); border-radius: 9px 9px 0 0; overflow: hidden; }
.screen-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px clamp(14px, 2.4vw, 26px);
}
.screen-nav .sn-logo { font-size: 0.7rem; font-weight: 700; letter-spacing: -0.03em; }
.screen-nav .sn-links { display: flex; align-items: center; gap: 13px; font-size: 0.58rem; font-weight: 600; color: var(--ink-faint); }
.screen-nav .sn-pill { background: var(--ink); color: var(--paper); border-radius: 100px; padding: 4px 11px; font-size: 0.56rem; font-weight: 700; }
.screen-copy { padding: 4px clamp(14px, 2.4vw, 26px) 16px; }
.screen-copy p:first-child { font-family: var(--font-display); font-size: clamp(0.94rem, 2.1vw, 1.5rem); font-weight: 400; letter-spacing: -0.01em; line-height: 1.08; max-width: 20ch; }
.screen-copy p:last-child { font-size: clamp(0.56rem, 1vw, 0.7rem); font-weight: 500; color: var(--ink-soft); margin-top: 6px; max-width: 34ch; }
.screen img { width: 100%; height: clamp(120px, 20vw, 230px); object-fit: cover; }

@media (max-width: 620px) {
  .screen-nav .sn-links span:not(.sn-pill) { display: none; }
}

/* ---------- capability rule ---------- */
.rule-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rule-strip ul {
  list-style: none; display: flex; flex-wrap: wrap; gap: clamp(18px, 4vw, 56px);
  padding-block: 17px; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft);
}
.rule-strip li { display: flex; align-items: center; gap: 9px; }
.rule-strip li::before { content: ""; width: 6px; height: 6px; background: var(--red); flex: none; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 10vw, 132px); }
.section--tight { padding-block: clamp(50px, 7vw, 90px); }
/* measure belongs on the type, not the wrapper — `ch`/`em` on a 17px div
   resolves against body type and starves display headings of width */
.section-head { max-width: none; margin-bottom: clamp(34px, 5vw, 60px); }
.section-head > h1,
.section-head > h2 { max-width: 13em; text-wrap: balance; }
.section-head .lede { margin-top: 16px; max-width: 44ch; }

/* section head with a clip alongside — copy left, framed video right */
.section-head--media {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
/* measure is set per element — `ch` on the wrapper resolves to body type, not display type */
.section-head--media .sh-copy { max-width: none; }
.section-head--media .sh-copy .d2 { max-width: 13em; text-wrap: balance; }
.section-head--media .sh-copy .lede { max-width: 44ch; }

/* iPad, landscape — chassis, bezel, screen */
.ipad {
  justify-self: end; position: relative;
  width: 100%; max-width: 470px;
  background: linear-gradient(160deg, #2E2A26 0%, #14120F 46%, #201D1A 100%);
  border-radius: 26px;
  padding: 15px 26px;
  box-shadow:
    0 30px 62px -26px rgba(20, 18, 15, 0.46),
    inset 0 0 0 1px rgba(242, 240, 237, 0.07);
  transition: transform 0.65s var(--ease-out), box-shadow 0.65s var(--ease-out);
}
/* front camera, centred on the left bezel the way a landscape iPad sits */
.ipad::before {
  content: ""; position: absolute; left: 11px; top: 50%; translate: 0 -50%;
  width: 5px; height: 5px; border-radius: 50%;
  background: #46413B; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.ipad-screen {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 5px; background: #0B0A09;
}
.ipad-screen video {
  display: block; width: 100%; height: 100%;
  object-fit: cover; background: #0B0A09;
}
@media (hover: hover) and (pointer: fine) {
  .ipad:hover { transform: translateY(-4px); box-shadow: 0 40px 76px -24px rgba(20, 18, 15, 0.42), inset 0 0 0 1px rgba(242, 240, 237, 0.09); }
}
/* tablet — shrink the device before it crowds the headline */
@media (max-width: 1040px) {
  .section-head--media { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(24px, 4vw, 40px); }
  .ipad { max-width: 380px; padding: 12px 21px; border-radius: 22px; }
}
/* stacked — device centred under the copy */
@media (max-width: 860px) {
  .section-head--media { grid-template-columns: 1fr; gap: clamp(24px, 5vw, 34px); }
  .section-head--media .sh-copy .d2,
  .section-head--media .sh-copy .lede { max-width: 100%; }
  .ipad { justify-self: center; max-width: min(100%, 460px); }
}
@media (max-width: 420px) {
  .ipad { padding: 9px 15px; border-radius: 17px; }
  .ipad::before { left: 6px; width: 4px; height: 4px; }
}

/* services — ledger rows, no boxes */
.ledger { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 9fr) auto;
  gap: clamp(14px, 3vw, 46px); align-items: baseline;
  padding-block: clamp(26px, 3.4vw, 40px);
  border-bottom: 1px solid var(--line);
  position: relative;
}
/* hover indent rides on transform — the border stays put, no layout pass */
.row > *:not(.tail) { transition: transform 0.4s var(--ease); }
.row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: -1px; width: 3px;
  background: var(--red); transform: scaleY(0); transform-origin: top;
  transition: transform 0.4s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .row:hover > *:not(.tail) { transform: translateX(22px); }
  .row:hover::before { transform: scaleY(1); }
}
.row h3 { font-family: var(--font-display); font-size: clamp(1.35rem, 2.9vw, 2.1rem); font-weight: 400; letter-spacing: -0.01em; line-height: 1.08; }
.row p { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.55; }
.row .tail { font-size: 0.86rem; font-weight: 700; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.row .tail svg { transition: transform 0.22s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .row:hover .tail svg { transform: translateX(4px); }
}
.row--soon h3 { color: var(--ink-faint); }
.row--soon .tail { color: var(--red); }
@media (max-width: 800px) {
  .row { grid-template-columns: 1fr; gap: 9px; }
  .row .tail { margin-top: 4px; }
}

/* split: image beside text */
.split { display: grid; grid-template-columns: 1.06fr 1fr; gap: clamp(28px, 5vw, 76px); align-items: center; }
.split img,
.split video { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: 14px; transition: transform 0.65s var(--ease-out); display: block; background: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .split:hover img,
  .split:hover video { transform: scale(1.02); }
}
.split--seo { grid-template-columns: 1fr 1.1fr; }
.split--seo img { min-width: 380px; border-radius: 14px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split img, .split video { max-height: 320px; } .split--seo { grid-template-columns: 1fr; } .split--seo img { min-width: 0; max-height: none; } }
@media (prefers-reduced-motion: reduce) { .split video { animation: none; } }

/* full-bleed dark band — the page's change of gear */
.band { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.band > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.42;
}
.band .wrap { position: relative; z-index: 1; padding-block: clamp(70px, 11vw, 150px); }
.band .lede { color: #B8B2A9; }
.band h2 { max-width: 18ch; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 40px); margin-top: clamp(38px, 5vw, 64px); }
.steps > div { border-top: 1px solid rgba(242,240,237,0.24); padding-top: 18px; }
.steps b { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; color: var(--red); margin-bottom: 12px; }
.steps h3 { font-family: var(--font-display); font-size: 1.18rem; font-weight: 400; letter-spacing: -0.01em; margin-bottom: 7px; }
.steps p { font-size: 0.9rem; color: #B8B2A9; line-height: 1.55; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 30px; } }
@media (max-width: 500px) { .steps { grid-template-columns: 1fr; } }

/* ---------- work ---------- */
.work-list { display: flex; flex-direction: column; gap: clamp(38px, 6vw, 76px); }
.work-item { display: block; }
.work-shot {
  position: relative; overflow: hidden; border-radius: 14px; background: var(--paper-2);
  aspect-ratio: 16 / 9;
}
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.85s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  a.work-item:hover .work-shot img { transform: scale(1.028); }
}
.work-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-top: 20px; }
.work-meta h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.85rem); font-weight: 400; letter-spacing: -0.01em; }
.work-meta p { color: var(--ink-soft); font-size: 0.96rem; max-width: 54ch; flex: 1 1 320px; }
.work-visit { font-size: 0.86rem; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.work-visit svg { transition: transform 0.22s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  a.work-item:hover .work-visit svg { transform: translateX(4px); }
}
.tagline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tagline span { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-soft); padding: 5px 12px; border-radius: 100px; background: var(--paper-2); }
.flag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--paper); color: var(--ink); padding: 6px 12px; border-radius: 100px;
}

/* ---------- pricing ---------- */
.tier-list { border-top: 1px solid var(--line); }

details.tier { border-bottom: 1px solid var(--line); position: relative; }
details.tier::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: -1px; width: 3px;
  background: var(--red); transform: scaleY(0); transform-origin: top; transition: transform 0.4s var(--ease);
}
details.tier:hover::before, details.tier[open]::before { transform: scaleY(1); }

details.tier > summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: clamp(12px, 2.6vw, 34px); align-items: center;
  padding-block: clamp(20px, 2.6vw, 30px);
  cursor: pointer; list-style: none;
}
details.tier > summary > *:first-child { transition: transform 0.4s var(--ease); }
details.tier > summary::-webkit-details-marker { display: none; }
details.tier > summary::marker { content: ""; }
details.tier:hover > summary > *:first-child,
details.tier[open] > summary > *:first-child { transform: translateX(20px); }
details.tier > summary:active { transform: scale(0.995); transition-duration: 100ms; }

.tier h3 { font-family: var(--font-display); font-size: clamp(1.06rem, 2.1vw, 1.42rem); font-weight: 400; letter-spacing: -0.01em; }
.tier .sub { display: block; font-family: var(--font); font-size: 0.8rem; font-weight: 400; color: var(--ink-faint); margin-top: 3px; }
.tier .amt { font-size: clamp(1.2rem, 2.5vw, 1.72rem); font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tier .pick { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
details.tier:hover .pick { color: var(--red); }
.tier--top .amt { color: var(--red); }

.chevron { flex: none; color: var(--ink-faint); transition: transform 0.35s var(--ease); }
details.tier[open] .chevron { transform: rotate(180deg); }

/* expander animation: grid-template-rows 0fr → 1fr */
.tier-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}
details.tier[open] > .tier-body { grid-template-rows: 1fr; }
.tier-body-inner { overflow: hidden; min-height: 0; }

.tier-body-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px);
  padding: 0 0 clamp(20px, 2.6vw, 30px) 20px;
}
.tier-col strong { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }
.tier-col ul { list-style: none; }
.tier-col li { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; padding-block: 5px; padding-left: 16px; position: relative; }
.tier-col li::before { content: ""; position: absolute; left: 0; top: 12px; width: 5px; height: 5px; background: var(--red); border-radius: 50%; }

@media (max-width: 720px) {
  details.tier > summary { grid-template-columns: 1fr auto auto; }
  .tier .pick { display: none; }
  .tier-body-inner { grid-template-columns: 1fr; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tier-body { transition: none; }
  .chevron { transition: none; }
}

.terms { display: flex; flex-wrap: wrap; gap: 10px 40px; margin-top: 30px; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.terms span { display: flex; align-items: center; gap: 9px; }
.terms span::before { content: ""; width: 6px; height: 6px; background: var(--red); flex: none; }

/* ---------- quote builder ---------- */
.picker { display: flex; flex-wrap: wrap; gap: 10px; }
.opt {
  border-radius: 100px; padding: 12px 20px; font-size: 0.9rem; font-weight: 700;
  color: var(--ink); background: var(--paper-2);
  transition: background 0.22s var(--ease), color 0.22s var(--ease), transform 0.22s var(--ease);
}
.opt:hover { transform: translateY(-1px); background: #DCD8D1; }
.opt:active { transform: scale(0.97); transition-duration: 100ms; }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.opt[aria-pressed="true"]:hover { background: var(--ink); }
.opt em { font-style: normal; opacity: 0.62; font-weight: 600; margin-left: 7px; }

.quote-out { margin-top: 30px; display: none; }
.quote-out.on { display: block; animation: rise 0.5s var(--ease) both; }
.quote-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.quote-sum .amt { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 700; letter-spacing: -0.02em; }
.quote-sum .lbl { font-size: 0.95rem; font-weight: 700; }
.quote-terms { font-size: 0.9rem; color: var(--ink-soft); margin-top: 14px; }
.quote-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ---------- contact ---------- */
.duo { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(34px, 6vw, 84px); }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }

.lines { border-top: 1px solid var(--line); }
.lines a, .lines div.ln {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-block: 17px; border-bottom: 1px solid var(--line);
}
.lines a > .k, .lines div.ln > .k { transition: transform 0.3s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .lines a:hover > .k { transform: translateX(12px); }
}
.lines .k { font-size: 0.8rem; font-weight: 600; color: var(--ink-faint); }
.lines .v { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em; text-align: right; }
.lines a:hover .v { color: var(--red); }

.form { display: grid; gap: 16px; }
.f label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink-faint); margin-bottom: 7px; }
.f input, .f select, .f textarea {
  width: 100%; font: inherit; font-size: 0.98rem; font-weight: 500; color: var(--ink);
  background: #FBFAF8; border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; transition: border-color 0.2s, background 0.2s, transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}
.f input:hover, .f select:hover, .f textarea:hover { border-color: var(--ink-faint); }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--red); background: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px -4px rgba(20,18,15,0.08); }
.f textarea { min-height: 132px; resize: vertical; }
.f select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235C5750' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.note { font-size: 0.85rem; color: var(--ink-faint); }

/* form validation */
.f-err { display: block; font-size: 0.82rem; font-weight: 600; color: #C7280C; margin-top: 6px; min-height: 0; }
.f-invalid { border-color: #C7280C !important; background: #FDF6F5 !important; }
.form-ok { animation: rise 0.5s var(--ease) both; }
.form-ok h3 { margin-bottom: 0; }

/* ---------- empty state ---------- */
.empty { padding-block: clamp(52px, 9vw, 96px); text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 400; letter-spacing: -0.01em; margin-bottom: 12px; }
.empty p { color: var(--ink-soft); max-width: 46ch; margin-inline: auto; }
.empty a { color: var(--red); font-weight: 700; }

.empty-hero { padding-block: clamp(80px, 14vw, 180px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty-hero-inner { max-width: 48ch; margin-inline: auto; text-align: center; }
.empty-icon { color: var(--ink-faint); margin-bottom: 28px; }
.empty-hero p { color: var(--ink-soft); margin-top: 14px; line-height: 1.6; }

/* ---------- closing CTA ---------- */
.close-band { background: var(--red); color: var(--paper); }
.close-band .wrap { padding-block: clamp(58px, 9vw, 110px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 30px; }
.close-band h2 { max-width: 15ch; }
.close-band .dot { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer .wrap { padding-block: clamp(40px, 5vw, 62px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.site-footer .fl { display: flex; flex-direction: column; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 0.88rem; font-weight: 600; }
.site-footer nav a { color: #A9A29A; transition: color 0.2s; padding-block: 8px; }
.site-footer nav a:hover { color: var(--paper); }
.site-footer .social { display: flex; gap: 10px; }
.site-footer .social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(242, 240, 237, 0.16); border-radius: 50%;
  color: #A9A29A;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease-out);
}
.site-footer .social a:hover {
  color: var(--paper); border-color: rgba(242, 240, 237, 0.42); transform: translateY(-2px);
}
.site-footer .social svg { display: block; }
.site-footer .fr { font-size: 0.88rem; color: #A9A29A; line-height: 1.85; text-align: right; }
.site-footer .fr a:hover { color: var(--paper); }
@media (max-width: 620px) { .site-footer .fr { text-align: left; } }

/* ---------- privacy ---------- */
.privacy-body { max-width: 68ch; }
.privacy-body h2 { margin-top: clamp(32px, 4vw, 48px); margin-bottom: 12px; }
.privacy-body h3 { font-weight: 700; font-size: 1rem; margin-top: 24px; margin-bottom: 8px; }
.privacy-body p { color: var(--ink-soft); line-height: 1.65; margin-top: 10px; }
.privacy-body ul { list-style: none; margin-top: 10px; }
.privacy-body li { color: var(--ink-soft); line-height: 1.6; padding-block: 4px; padding-left: 18px; position: relative; }
.privacy-body li::before { content: ""; position: absolute; left: 0; top: 12px; width: 5px; height: 5px; background: var(--red); border-radius: 50%; }
.privacy-body a { color: var(--red); font-weight: 600; }
.privacy-body a:hover { text-decoration: underline; }
.privacy-updated { margin-top: clamp(32px, 4vw, 48px); padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.9rem; }

/* ---------- admin ---------- */
.admin { max-width: 700px; margin-inline: auto; }
.panel { border-top: 1px solid var(--line); padding-top: 26px; margin-bottom: 44px; }
.panel h2 { font-family: var(--font-display); font-size: 1.28rem; font-weight: 400; letter-spacing: -0.01em; margin-bottom: 20px; }
.msg { font-size: 0.9rem; font-weight: 600; padding: 13px 16px; border-radius: 10px; margin-bottom: 18px; display: none; }
.msg.err { display: block; background: #FBE7E2; color: #98220B; }
.msg.ok { display: block; background: #E4EFE4; color: #2C6033; }
.admin-row { display: flex; align-items: center; gap: 15px; padding-block: 13px; border-bottom: 1px solid var(--line); }
.admin-row img { width: 74px; height: 50px; object-fit: cover; border-radius: 6px; flex: none; }
.admin-row .an { flex: 1; font-weight: 700; font-size: 0.96rem; letter-spacing: -0.02em; }
.admin-row button { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); padding: 8px 14px; border-radius: 100px; background: var(--paper-2); transition: background 0.2s, color 0.2s; }
.admin-row button:hover { background: var(--red); color: var(--paper); }
.admin-row button:active { transform: scale(0.95); transition-duration: 100ms; }

/* ---------- motion: one authored entrance ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.lift > * { animation: rise 0.9s var(--ease) both; }
.lift > *:nth-child(1) { animation-delay: 0.04s; }
.lift > *:nth-child(2) { animation-delay: 0.13s; }
.lift > *:nth-child(3) { animation-delay: 0.22s; }
.lift > *:nth-child(4) { animation-delay: 0.31s; }

.veil { opacity: 0; transform: translateY(18px); transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out); }
.veil.seen { opacity: 1; transform: none; }

/* stagger children of .steps when parent .veil reveals */
.veil.seen .steps > div { animation: rise 0.55s var(--ease-out) both; }
.veil.seen .steps > div:nth-child(1) { animation-delay: 0s; }
.veil.seen .steps > div:nth-child(2) { animation-delay: 0.06s; }
.veil.seen .steps > div:nth-child(3) { animation-delay: 0.12s; }
.veil.seen .steps > div:nth-child(4) { animation-delay: 0.18s; }

/* ---------- mobile refinements ---------- */
@media (max-width: 480px) {
  .hero { padding-top: clamp(28px, 6vw, 50px); }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .close-band .wrap { flex-direction: column; align-items: flex-start; }
  .close-band .hero-actions { width: 100%; }
  .close-band .hero-actions .btn { width: 100%; justify-content: center; }
  .picker { gap: 8px; }
  .opt { flex: 1 1 calc(50% - 8px); text-align: center; padding: 11px 14px; font-size: 0.84rem; }
  .quote-acts { flex-direction: column; }
  .quote-acts .btn { width: 100%; justify-content: center; }
  .lines .v { font-size: 0.92rem; }
  .footer .fr { text-align: left; }
}

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