/* ==========================================================================
   Realfront Digital — company & credibility site
   Palette: paper & ink, one warm accent. Type: Lora (serif) + Inter (sans).
   Derived from "Realfront Digital.dc.html" (cream_rust variant).
   ========================================================================== */

:root {
  --bg:          #F4EFE6;
  --bg-alt:      #ECE3D3;
  --bg-card:     #FBF8F1;
  --ink:         #1F2A37;
  --ink-70:      rgba(31, 42, 55, .78);
  --ink-55:      rgba(31, 42, 55, .62);
  --rule:        rgba(31, 42, 55, .22);
  --rule-strong: rgba(31, 42, 55, .55);
  --accent:      #B5502A;   /* fills, large type, rules */
  --accent-text: #9C4420;   /* small text on paper — meets AA */
  --accent-dark: #8A3B1B;
  --on-accent:   #FDFAF4;

  --serif: 'Lora', 'Iowan Old Style', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1140px;
  --wrap-narrow: 760px;
  --radius: 6px;
  --shadow-card: 0 1px 2px rgba(31, 42, 55, .05), 0 8px 24px -18px rgba(31, 42, 55, .35);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* faint laid-paper tooth */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(181, 80, 42, .04), transparent 42%),
    radial-gradient(circle at 84% 78%, rgba(31, 42, 55, .035), transparent 46%);
  background-attachment: fixed;
}

/* height:auto keeps the HTML width/height attributes (which are there to
   reserve space and stop layout shift) from beating aspect-ratio. */
img, svg { max-width: 100%; height: auto; display: block; }

/* Any rule that sets `display` beats the browser default for [hidden] —
   .form-success is display:grid, so its success cards showed up unhidden. */
[hidden] { display: none !important; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: rgba(181, 80, 42, .18); }

/* --- Typography ---------------------------------------------------------- */

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.14; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5.4vw, 54px); line-height: 1.08; }
h2 { font-size: clamp(27px, 3.8vw, 38px); }
h3 { font-size: 19px; line-height: 1.3; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.lead { font-size: clamp(17px, 2.1vw, 19px); line-height: 1.6; color: var(--ink-70); }
.prose p { margin-bottom: 1.05em; line-height: 1.68; color: var(--ink-70); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.muted { color: var(--ink-55); font-size: 14px; }
.small { font-size: 14px; }

/* --- Layout -------------------------------------------------------------- */

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--rule); }
.section__head { max-width: 620px; margin-bottom: clamp(28px, 4vw, 44px); }
.section__head h2 { margin-bottom: 12px; }

.grid { display: grid; gap: clamp(24px, 3.5vw, 40px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.split { display: grid; gap: clamp(28px, 4vw, 52px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1.05fr .95fr; } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 4px; font-weight: 600; font-size: 15px;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1;
  padding: 15px 26px; border-radius: 4px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--on-accent); }
.btn--ghost { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: rgba(31, 42, 55, .04); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  font-weight: 600; font-size: 15.5px; color: var(--accent-text);
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
}
.link-arrow::after { content: "\2192"; transition: transform .16s ease; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow:hover { text-decoration: underline; }

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 239, 230, .93);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  max-width: var(--wrap); margin-inline: auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wordmark {
  font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: -.015em;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
}
.wordmark:hover { color: var(--ink); text-decoration: none; }
.wordmark__mark {
  width: 26px; height: 19px; flex: none;
  border: 1.5px solid var(--accent); border-radius: 2px;
  position: relative; background: transparent;
}
.wordmark__mark::after {
  content: ""; position: absolute; inset: 3px auto auto 3px;
  width: 7px; height: 5px; background: var(--accent);
}

.nav { display: none; gap: 22px; font-size: 14.5px; font-weight: 500; }
.nav a { white-space: nowrap; color: var(--ink); text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--rule-strong); color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }

.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.header__phone:hover { color: var(--ink); text-decoration: underline; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: transparent;
  border: 1.5px solid var(--rule-strong); border-radius: 4px; cursor: pointer; color: var(--ink);
}
.nav-toggle span { display: block; width: 17px; height: 1.5px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after { top: 5.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav { display: none; border-bottom: 1px solid var(--rule); background: var(--bg-alt); }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; max-width: var(--wrap); margin-inline: auto; padding: 8px 20px 18px; }
.mobile-nav a {
  display: block; padding: 13px 2px; font-size: 17px; font-weight: 500;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule);
}
.mobile-nav li:last-child a { border-bottom: none; }
.mobile-nav a[aria-current="page"] { color: var(--accent-text); font-weight: 600; }

@media (min-width: 1040px) {
  .nav { display: flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
  .site-header__inner { padding: 14px 20px; }
}

/* --- Postcard / paper motifs --------------------------------------------- */

.card {
  background: var(--bg-card);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: clamp(20px, 2.6vw, 28px);
  box-shadow: var(--shadow-card);
}

/* A framed "postcard" — used for demo screenshots and portfolio pieces */
.postcard {
  background: var(--bg-card);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.postcard--tilt-l { transform: rotate(-1.1deg); }
.postcard--tilt-r { transform: rotate(1deg); }
.postcard__caption { font-size: 13.5px; color: var(--ink-55); margin-top: 10px; line-height: 1.45; }

/* Placeholder for a real screenshot that has not been supplied yet.
   Swap the whole .shot block for <img> when real screenshots land. */
.shot {
  position: relative;
  border-radius: 3px;
  min-height: 160px;
  display: grid; place-items: center; text-align: center;
  background-color: var(--bg);
  background-image: repeating-linear-gradient(135deg,
    rgba(31, 42, 55, .5) 0 1px, transparent 1px 13px);
}
.shot--tall { min-height: 260px; }
.shot__label {
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 12px; line-height: 1.45; color: var(--ink-70);
  background: var(--bg); padding: 6px 11px; border-radius: 2px;
  max-width: 82%;
}
.shot img { border-radius: 3px; width: 100%; }

.stamp {
  position: absolute; top: -12px; right: 16px;
  width: 46px; height: 58px;
  background: var(--bg); border: 1.5px dashed var(--rule-strong);
  border-radius: 2px; transform: rotate(4deg);
  display: grid; place-items: center;
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 8px; letter-spacing: .06em; color: var(--ink-55);
}

/* Rubber-stamp style note */
.note {
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 20px 24px;
  display: inline-block;
}
.note strong { font-family: var(--serif); font-size: 19px; font-weight: 600; display: block; margin-bottom: 4px; }
.note p { font-size: 15px; color: var(--ink-70); }

/* --- Hero ---------------------------------------------------------------- */

.hero { padding: clamp(38px, 5.5vw, 64px) 0 clamp(44px, 6vw, 72px); }
.hero__grid { display: grid; gap: clamp(34px, 5vw, 56px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: .92fr 1.08fr; } }
.hero__copy { display: flex; flex-direction: column; gap: 18px; max-width: 600px; }
.hero__copy h1 { margin-block: 2px; }

.portrait-round {
  width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--rule-strong); filter: grayscale(100%) contrast(1.03);
}

/* --- Proof strip --------------------------------------------------------- */

.proof {
  border-block: 1px solid var(--rule);
  background: var(--bg-alt);
}
.proof ul {
  list-style: none; max-width: var(--wrap); margin-inline: auto; padding: 22px 20px;
  display: grid; gap: 16px 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.proof li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.proof .tick { color: var(--accent); font-weight: 700; flex: none; line-height: 1.4; }
.proof b { font-weight: 600; }

/* --- Numbered steps ------------------------------------------------------ */

.step__num {
  font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--accent);
  line-height: 1; margin-bottom: 10px; display: block;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 15.5px; color: var(--ink-70); line-height: 1.55; }
.step--detailed { border-top: 1px solid var(--rule); padding-top: 22px; }

/* --- Trades / examples --------------------------------------------------- */

.trade h3 { font-family: var(--sans); font-size: 16.5px; font-weight: 600; margin-top: 12px; }
.trade p { font-size: 14.5px; color: var(--ink-55); margin-top: 3px; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent-text);
  border: 1px solid rgba(181, 80, 42, .35); border-radius: 20px; padding: 3px 10px;
}

/* --- Pricing ------------------------------------------------------------- */

.price {
  font-family: var(--serif); font-size: clamp(56px, 9vw, 80px); font-weight: 600;
  color: var(--accent); line-height: 1;
}
.list-plain { list-style: none; display: flex; flex-direction: column; gap: 11px; font-size: 15.5px; }
/* Absolute bullet, not a flex child: a flex row would treat an inline
   <strong> and the text after it as two separate items and split the line. */
.list-plain li { position: relative; padding-left: 22px; line-height: 1.5; }
.list-plain li::before { content: "\2014"; position: absolute; left: 0; top: 0; color: var(--accent); }
.list-plain--no li::before { content: "\00d7"; color: var(--ink-55); }
.divider-dashed { border: 0; border-top: 1px dashed var(--rule-strong); margin: 20px 0; }

/* --- Team ---------------------------------------------------------------- */

.person img {
  width: 100%; aspect-ratio: .86; object-fit: cover; object-position: center top;
  border-radius: var(--radius); border: 1px solid var(--rule-strong);
  filter: grayscale(100%) contrast(1.03);
}
.person__name { font-size: 15px; font-weight: 600; margin-top: 10px; }
.person__role { font-size: 13.5px; color: var(--ink-55); }

/* --- FAQ ----------------------------------------------------------------- */

.faq { border-top: 1px solid var(--rule); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
  padding: 20px 2px; text-align: left;
  font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.3;
}
.faq__q:hover { color: var(--accent-text); }
.faq__icon { flex: none; width: 18px; height: 18px; position: relative; margin-top: 5px; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}
.faq__icon::before { top: 8px; left: 0; width: 18px; height: 1.8px; }
.faq__icon::after { left: 8px; top: 0; width: 1.8px; height: 18px; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: scaleY(0); opacity: 0; }
.faq__a { padding: 0 2px 22px; max-width: 62ch; }
.faq__a p { font-size: 15.5px; line-height: 1.65; color: var(--ink-70); }
.faq__a p + p { margin-top: .8em; }
.faq__item[hidden] { display: none; }

/* --- Forms --------------------------------------------------------------- */

.form { display: flex; flex-direction: column; gap: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--rule-strong); border-radius: 4px;
  padding: 11px 13px; width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(31, 42, 55, .4); }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 92px; }
.field__hint { font-size: 13px; color: var(--ink-55); font-weight: 400; }
.form__note { font-size: 13px; color: var(--ink-55); line-height: 1.5; }
.form__status { font-size: 15px; line-height: 1.5; }
.form__status[data-state="error"] { color: var(--accent-dark); font-weight: 500; }
.form-success {
  display: grid; place-items: center; text-align: center; min-height: 220px; gap: 8px;
}
.form-success h3 { font-size: 21px; }
.form-success p { font-size: 15px; color: var(--ink-70); max-width: 34ch; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Contact band (repeated site-wide) ----------------------------------- */

.band { background: var(--bg-alt); border-top: 1px solid var(--rule); padding: clamp(44px, 6vw, 72px) 0; }
.band__phone {
  font-family: var(--serif); font-size: clamp(28px, 4.4vw, 38px); font-weight: 600;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 12px;
}
.band__phone:hover { color: var(--accent-text); text-decoration: none; }

/* --- Footer -------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--rule); padding: 34px 0 40px; font-size: 14px; color: var(--ink-55); }
.site-footer__inner { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h4 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.site-footer a { color: var(--ink-70); text-decoration: none; }
.site-footer a:hover { color: var(--accent-text); text-decoration: underline; }
.site-footer__bar {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}

/* --- Utilities ----------------------------------------------------------- */

.stack-sm > * + * { margin-top: 10px; }
.stack > * + * { margin-top: 18px; }
.stack-lg > * + * { margin-top: 30px; }
.mt-lg { margin-top: clamp(28px, 4vw, 44px); }
.mb-sm { margin-bottom: 12px; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media print {
  .site-header, .mobile-nav, .band, .nav-toggle { display: none !important; }
  body { background: #fff; }
}

/* --- Small screens -------------------------------------------------------
   Most first visits arrive from a QR scan on a phone, so these are not
   afterthoughts: the header must stay on one line and CTAs must be
   full-width tap targets.
   ------------------------------------------------------------------------ */

@media (max-width: 560px) {
  .site-header__inner { padding: 10px 16px; gap: 10px; }
  .wordmark { font-size: 17px; gap: 7px; white-space: nowrap; }
  .wordmark__mark { width: 23px; height: 17px; }
  .header__phone { font-size: 14.5px; gap: 6px; }
  .nav-toggle { width: 38px; height: 38px; }

  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .btn-row .btn { flex: none; }

  .shot--tall { min-height: 210px; }
  .shot__label { font-size: 11px; max-width: 92%; }
  .stamp { width: 38px; height: 48px; right: 10px; }

  .postcard--tilt-l, .postcard--tilt-r { transform: none; }

  .note { display: block; }
  .band__phone { font-size: 30px; }
}

@media (max-width: 400px) {
  .header__phone { font-size: 13.5px; }
  .wordmark { font-size: 16px; }
}
/* The smallest phones (320px): the 11-digit number needs the room the dot and padding take. */
@media (max-width: 359px) {
  .site-header__inner { padding: 10px 12px; gap: 8px; }
  .header__phone { font-size: 12.5px; }
  .header__phone .dot { display: none; }
}

/* --- Device frames -------------------------------------------------------
   Demo-site screenshots are the portfolio. Framing them as a browser window
   and a phone makes it obvious you are looking at a real website, and lets
   the same screenshot carry both "well designed" and "works on a phone".
   ------------------------------------------------------------------------ */

.showcase { position: relative; padding-bottom: 26px; }

.browser {
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 2px 4px rgba(31, 42, 55, .06), 0 24px 48px -28px rgba(31, 42, 55, .5);
}
.browser__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--rule);
}
.browser__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rule-strong); opacity: .55; flex: none; }
.browser__url {
  margin-left: 6px; flex: 1;
  font-family: 'Courier New', ui-monospace, monospace; font-size: 11px;
  color: var(--ink-55); background: var(--bg); border-radius: 20px;
  padding: 4px 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser__screen { display: block; width: 100%; }
.browser .shot { border-radius: 0; min-height: 300px; }

.phone {
  position: absolute; right: -10px; bottom: -22px; width: 27%; max-width: 152px;
  border: 1px solid var(--rule-strong);
  border-radius: 18px; padding: 7px 6px;
  background: var(--bg-card);
  box-shadow: 0 2px 4px rgba(31, 42, 55, .07), 0 18px 34px -18px rgba(31, 42, 55, .55);
}
.phone::before {
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 4px; border-radius: 3px; background: var(--rule); opacity: .8;
}
.phone__screen { display: block; width: 100%; border-radius: 12px; }
.phone .shot { border-radius: 12px; min-height: 210px; }

.showcase__caption {
  max-width: 60%; margin-top: 20px;
  font-size: 13.5px; line-height: 1.45; color: var(--ink-55);
}

@media (max-width: 560px) {
  .phone { width: 32%; right: -4px; bottom: -16px; }
  .browser .shot { min-height: 220px; }
  .phone .shot { min-height: 150px; }
  .showcase__caption { max-width: none; margin-top: 30px; }
  .showcase { padding-bottom: 18px; }
}

/* Demo-site screenshots dropped into the postcard frames. */
.trade__shot {
  width: 100%; height: auto; display: block;
  border-radius: 3px;
  border: 1px solid rgba(31, 42, 55, .12);
}

.postcard > img {
  width: 100%; height: auto; display: block;
  border-radius: 3px;
  border: 1px solid rgba(31, 42, 55, .12);
}

/* --- Long intake form -----------------------------------------------------
   Grouped into numbered steps so a phone visitor can see how far in they are.
   Only five fields are required; everything else visibly says "optional",
   because the fastest way to lose this form is to make it feel like homework.
   -------------------------------------------------------------------------- */

.formset { border: 0; margin: 0 0 clamp(30px, 4vw, 44px); padding: 0; }
.formset__head {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 12px; margin-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.formset__num {
  font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--accent);
  line-height: 1; flex: none;
}
.formset__head h2 { font-size: 22px; margin: 0; }
.formset__head p { font-size: 14px; color: var(--ink-55); margin-top: 4px; }
.formset__body { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.field--wide { grid-column: 1 / -1; }

.req { color: var(--accent-text); font-weight: 600; }
.opt { color: var(--ink-55); font-weight: 400; }

.choices { display: flex; flex-wrap: wrap; gap: 9px; }
.choice {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--rule-strong); border-radius: 4px;
  padding: 10px 14px; font-size: 15px; cursor: pointer; background: var(--bg);
  transition: border-color .14s ease, background-color .14s ease;
}
.choice:hover { border-color: var(--ink); }
.choice input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; flex: none; }
.choice:has(input:checked) { border-color: var(--accent); background: rgba(181, 80, 42, .07); }
.choice:has(input:focus-visible) { outline: 2.5px solid var(--accent); outline-offset: 2px; }

.consent {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  background: var(--bg-card); padding: 18px 20px;
}
.consent input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.consent span { font-size: 15px; line-height: 1.55; }

.form-submit {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px;
  border-top: 1px solid var(--rule); padding-top: 26px; margin-top: 8px;
}
.form-submit .btn { min-width: 220px; }

/* File drop for the optional extras on the intake form. */
.dropzone {
  border: 1.5px dashed var(--rule-strong);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 22px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; cursor: pointer;
  transition: border-color .14s ease, background-color .14s ease;
}
.dropzone:hover { border-color: var(--accent); background: rgba(181, 80, 42, .04); }
.dropzone:has(input:focus-visible) { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone__icon { color: var(--accent); }
.dropzone__title { font-size: 15.5px; font-weight: 600; }
.dropzone__hint { font-size: 13.5px; color: var(--ink-55); line-height: 1.5; max-width: 44ch; }
.dropzone__files { font-size: 13.5px; color: var(--accent-text); font-weight: 500; }

/* --- Team grid: two founders, two dogs -------------------------------------
   Everyone gets a title, a reporting line and a short bio. On phones a bio
   in a 160px column runs to fifteen lines, so each card goes full width
   with the photo beside the text instead.
   -------------------------------------------------------------------------- */

.team-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; align-items: start; }
.team-grid__note { grid-column: 1 / -1; line-height: 1.55; }

.person__title { font-size: 13.5px; font-weight: 600; color: var(--accent-text); margin-top: 2px; line-height: 1.35; }
.person__reports { font-size: 12.5px; color: var(--ink-55); margin-top: 1px; }
.person__bio { font-size: 14px; line-height: 1.55; color: var(--ink-70); margin-top: 9px; }

.person__placeholder {
  width: 100%; aspect-ratio: .86;
  border-radius: var(--radius); border: 1.5px dashed var(--rule-strong);
  background-color: var(--bg-alt);
  background-image: repeating-linear-gradient(135deg, rgba(31, 42, 55, .09) 0 1px, transparent 1px 12px);
  display: grid; place-items: center; text-align: center;
}
.person__placeholder span {
  font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.4;
  color: var(--ink-55); background: var(--bg-alt); padding: 6px 12px; border-radius: 3px;
}

@media (max-width: 560px) {
  .person--bio {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: 40% 1fr; gap: 16px; align-items: start;
  }
  .person--bio .person__name { margin-top: 0; }
  .person--bio .person__bio { font-size: 14.5px; }
}
/* Instagram's glyph guidelines ask for it in black or white — ink is our black. */
.person__link { font-size: 13px; margin-top: 5px; }
.person__link a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); text-decoration: none; padding-block: 3px;
  overflow-wrap: anywhere;
}
.person__link a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.person__ig { flex: none; }

/* Chris and Luke share one bio, spanning both photos. */
.team-grid__joint {
  grid-column: 1 / -1;
  font-size: 15px; line-height: 1.6; color: var(--ink-70);
  margin-top: -6px; padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

/* --- Meet the team page ----------------------------------------------------
   Wide screens: four across. The dogs span two rows so the founders' joint
   bio can sit under their photos without leaving a hole beside it.
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  .team-grid--page { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 26px; }
  .team-grid--page .team-grid__joint { grid-column: 1 / 3; grid-row: 2; margin-top: 0; border-bottom: 0; padding-bottom: 0; }
  .team-grid--page .person--bio { grid-row: 1 / span 2; }
  .team-grid--page .team-grid__note { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 18px; }
}

/* --- About page: a row of faces that leads to the team page ------------- */
.team-teaser { align-self: center; }
.team-teaser__faces {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.team-teaser__faces img {
  width: 100%; aspect-ratio: .86; object-fit: cover; object-position: center top;
  border-radius: var(--radius); border: 1px solid var(--rule-strong);
  filter: grayscale(100%) contrast(1.03);
}
.team-teaser__faces span { display: block; font-size: 14px; font-weight: 600; margin-top: 8px; }
.team-teaser__link { margin-top: 18px; }
@media (max-width: 420px) {
  .team-teaser__faces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Team names are headings for screen readers, but keep the card look. */
h2.person__name, .person__name {
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  line-height: 1.35; letter-spacing: normal;
}
/* The About faces link through to the team page. */
.team-teaser__faces a { color: inherit; text-decoration: none; display: block; }
.team-teaser__faces a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.team-teaser__faces a:hover img { border-color: var(--ink); }
.team-grid__joint strong { color: var(--ink); font-weight: 600; }

/* Four cards in a balanced 2 x 2 (What goes into every site) */
.grid--2x2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid--2x2 { grid-template-columns: 1fr 1fr; } }
