/* Performance Web Studio - version 3 ("white gallery").
   White page, black bold sans-serif, one red only on buttons and the promise dot. */

@font-face {
  font-family: "Google Sans";
  src: url("/assets/fonts/google-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0a0a0a;
  --ink-2: #555555;
  --line: #d9d9d9;
  --band: #f3f3f3;
  --paper: #ffffff;
  --red: #d42a18;       /* white on red 5.07:1 */
  --red-dark: #b32213;
  --error: #b3261e;
  --wrap: 1200px;
  --wrap-wide: 1440px;
  --gutter: clamp(20px, 4vw, 48px);
  --font: "Google Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::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(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: var(--wrap-wide); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Buttons - the only place for red besides the dot */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 30px;
  background: var(--red); color: #fff;
  border: 0; border-radius: 999px;
  font: 700 18px/1 var(--font); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--red-dark); }
.btn-small { min-height: 44px; padding: 0 22px; font-size: 17px; }
.btn-hero { min-height: 56px; padding: 0 44px; font-size: 20px; }

/* Header */
.site-header { background: var(--paper); }
.header-row {
  max-width: var(--wrap-wide);
  display: flex; align-items: center; gap: 32px;
  min-height: 84px;
}
.wordmark {
  font-weight: 700; font-size: 28px; letter-spacing: -0.03em;
  text-decoration: none; white-space: nowrap; margin-right: auto;
  display: inline-flex; align-items: center; min-height: 44px;
}
.nav { display: flex; gap: 36px; }
.nav a {
  text-decoration: none; font-size: 18px; font-weight: 500;
  padding: 10px 0;
}
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* Hero */
.hero { text-align: center; padding: 56px 0 72px; }
.hero h1 { font-size: clamp(42px, 6vw, 80px); letter-spacing: -0.035em; line-height: 1.04; }
.hero .lead {
  margin: 22px auto 0; max-width: 760px;
  font-size: clamp(19px, 1.8vw, 24px); color: var(--ink-2); line-height: 1.4;
}
.hero .btn-hero { margin-top: 34px; }

.promise {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin: 56px auto 0; max-width: 1140px;
  padding: 26px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: clamp(22px, 3vw, 40px);
  letter-spacing: -0.025em; line-height: 1.2; text-align: left;
}
.dot {
  flex: none; width: 0.55em; height: 0.55em; border-radius: 50%;
  background: var(--red);
}
.promise .dot { width: 22px; height: 22px; }

/* Examples band */
.examples { background: var(--band); padding: 72px 0 80px; text-align: center; }
.examples h2 { font-size: clamp(30px, 3.4vw, 46px); }
.section-sub { margin-top: 14px; color: var(--ink-2); font-size: 19px; }

.example-list {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px;
}
.example-list li { min-width: 0; }
.window {
  background: #fff; border: 1px solid #dcdcdc; border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 28px rgba(0,0,0,.06);
}
.window-bar {
  display: flex; gap: 5px; align-items: center;
  height: 22px; padding: 0 10px; background: #fff;
  border-bottom: 1px solid #ececec;
}
.window-bar i { width: 7px; height: 7px; border-radius: 50%; background: #c9c9c9; }
.window img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #ececec; }
.example-list h3 { margin-top: 18px; font-size: 21px; letter-spacing: -0.015em; }
.example-list p { margin: 6px auto 0; max-width: 260px; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.also { margin: 44px auto 0; max-width: 720px; font-size: 18px; color: var(--ink-2); }

/* How we help - three open columns with a thin rule on top */
.help { padding: 96px 0 88px; }
.help h2 { font-size: clamp(30px, 3.4vw, 46px); }
.help-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
  margin-top: 44px;
}
.help-cols > div { min-width: 0; }
.help-pic img { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; background: var(--band); margin-bottom: 24px; }
.help-cols h3 { border-top: 2px solid var(--ink); padding-top: 18px; }
.help-cols h3 { font-size: 24px; }
.help-cols p { margin-top: 12px; color: var(--ink-2); }

/* How we work - two columns: big statement left, text right */
.work { padding: 0 0 96px; }
.work-grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: 64px;
  border-top: 1px solid var(--line); padding-top: 72px;
}
.work h2 { font-size: 20px; letter-spacing: 0; color: var(--ink-2); font-weight: 500; }
.work-statement {
  margin-top: 14px; font-weight: 700; font-size: clamp(32px, 3.6vw, 50px);
  letter-spacing: -0.03em; line-height: 1.08;
}
.work-text p { font-size: 20px; line-height: 1.55; }
.work-text p + p { margin-top: 18px; }
.work-text p:nth-of-type(2) { color: var(--ink-2); font-size: 18px; }
.promise-small {
  margin: 36px 0 0; max-width: none; justify-content: flex-start;
  font-size: 22px; padding: 18px 0; gap: 14px;
}
.promise-small .dot { width: 14px; height: 14px; }
.work-text .promise-small { font-size: 22px; color: var(--ink); }

.work-media { margin-top: 64px; }
.work-media img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 16px; background: var(--band);
}

/* Steps - four numbered steps, black on white */
.steps { padding: 0 0 104px; }
.steps h2 { font-size: clamp(30px, 3.4vw, 46px); }
.step-list {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.step-list li { border-top: 1px solid var(--line); padding-top: 22px; }
.step-num {
  display: block; font-weight: 700; font-size: 44px; letter-spacing: -0.03em; line-height: 1;
}
.step-list p { margin-top: 18px; font-size: 19px; line-height: 1.45; }

/* Contact */
.contact { background: var(--band); padding: 88px 0 96px; }
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.contact h2 { font-size: clamp(36px, 4vw, 56px); letter-spacing: -0.035em; }
.contact-intro p { margin-top: 18px; font-size: 20px; }
.contact-intro .contact-email { color: var(--ink-2); font-size: 18px; }
.contact-email a { color: var(--ink); font-weight: 500; text-underline-offset: 4px; overflow-wrap: anywhere; }

.form-card { background: #fff; border-radius: 16px; padding: 36px; border: 1px solid #e3e3e3; }
.field + .field { margin-top: 20px; }
label { display: block; font-weight: 700; font-size: 17px; }
.optional { font-weight: 400; color: var(--ink-2); }
.hint { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
input, textarea {
  display: block; width: 100%; margin-top: 8px;
  font: 400 17px/1.4 var(--font); color: var(--ink);
  background: #fff; border: 1px solid #b5b5b5; border-radius: 10px;
  padding: 12px 14px; min-height: 48px;
}
textarea { resize: vertical; min-height: 140px; }
input:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
[aria-invalid="true"] { border-color: var(--error); }
.field-error { margin-top: 6px; color: var(--error); font-size: 15px; font-weight: 500; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert {
  margin-top: 20px; padding: 14px 16px; border-radius: 10px;
  background: #fbecea; color: #7a1c13; font-size: 16px;
}
.btn-submit { margin-top: 26px; width: 100%; min-height: 54px; }
.btn-submit[disabled] { opacity: .7; cursor: progress; }
.form-done:focus { outline: none; }
.done-title {
  font-weight: 700; font-size: 24px; letter-spacing: -0.02em; line-height: 1.3;
}

/* Footer */
.site-footer { padding: 36px 0 44px; }
.footer-row { display: flex; justify-content: space-between; gap: 40px; align-items: flex-start; }
.privacy { max-width: 640px; color: var(--ink-2); font-size: 15px; }
.copy { font-size: 15px; font-weight: 500; white-space: nowrap; }

/* Tablet */
@media (max-width: 1100px) {
  .example-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .help-cols { grid-template-columns: 1fr; gap: 32px; }
  .step-list { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .work-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .br-wide { display: none; }
}

/* Phone: examples become a horizontal swipe row inside the band only */
@media (max-width: 700px) {
  body { font-size: 17px; }
  .header-row { min-height: 68px; gap: 12px; }
  .wordmark { font-size: 19px; }
  .btn-small { padding: 0 16px; font-size: 16px; }
  .hero { padding: 36px 0 52px; }
  .hero h1 { font-size: 40px; }
  .hero .lead { font-size: 19px; }
  .promise { margin-top: 40px; gap: 14px; padding: 20px 0; font-size: 23px; }
  .promise { align-items: flex-start; }
  .promise .dot { width: 14px; height: 14px; margin-top: 0.42em; }
  .promise-small .dot { margin-top: 0.4em; }
  .examples { padding: 56px 0 60px; }
  .examples .wrap { padding: 0; }
  .examples h2, .section-sub, .also { padding: 0 var(--gutter); }
  .example-list {
    display: flex; gap: 16px; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
    padding: 4px var(--gutter) 16px; margin-top: 32px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .example-list::-webkit-scrollbar { display: none; }
  .example-list li { flex: 0 0 80%; scroll-snap-align: start; }
  .also { margin-top: 28px; }
  .help { padding: 64px 0 56px; }
  .help-cols { gap: 0; margin-top: 28px; }
  .help-cols > div {
    display: grid; grid-template-columns: 104px 1fr; column-gap: 18px;
    border-top: 2px solid var(--ink); padding: 20px 0 24px;
  }
  .help-pic { grid-row: span 2; }
  .help-pic img { margin-bottom: 0; border-radius: 10px; }
  .help-cols h3 { border-top: 0; padding-top: 0; font-size: 21px; }
  .help-cols p { margin-top: 8px; font-size: 16px; }
  .work { padding-bottom: 64px; }
  .work-grid { padding-top: 52px; }
  .work-text p { font-size: 18px; }
  .work-media { margin-top: 40px; }
  .work-media img { border-radius: 12px; }
  .steps { padding-bottom: 64px; }
  .step-list { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
  .step-list li { display: flex; gap: 18px; align-items: baseline; padding: 18px 0; }
  .step-num { font-size: 28px; flex: none; width: 44px; }
  .step-list p { margin-top: 0; font-size: 18px; }
  .work-text .promise-small, .promise-small { font-size: 19px; }
  .contact { padding: 60px 0 64px; }
  .form-card { padding: 22px; }
  .footer-row { flex-direction: column; gap: 14px; }
}

@media (max-width: 360px) {
  .wordmark { font-size: 17px; }
  .hero h1 { font-size: 34px; }
}
