/* Brand fonts, served from our own server (Latin subset of the Google Fonts variable files) */
@font-face {
  font-family: 'Newsreader'; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url(fonts/newsreader-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader'; font-style: italic; font-weight: 400 500; font-display: swap;
  src: url(fonts/newsreader-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Site Unseen — brand tokens from Brand Kit v1.0 (Oat & Espresso) */
:root {
  --milk: #FAF7F2;
  --oat: #EFE9DF;
  --linen: #DDD4C6;
  --clay: #B39A7E;
  --clay-ink: #8A6F52;
  --clay-light: #C9B39A;
  --walnut: #6E635A;
  --body: #5B514A;
  --espresso: #2B2420;
  --espresso-hover: #463B34;
  --field: #CFC4B4;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--oat);
  color: var(--espresso);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--espresso); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--clay-ink); }
img, svg { display: block; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 56px); }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-family: var(--serif); font-size: 24px; letter-spacing: -.02em; white-space: nowrap; }
.wordmark i { color: var(--clay-ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(239, 233, 223, .92); /* fallback for browsers without color-mix() */
  background: color-mix(in srgb, var(--oat) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linen);
}
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.site-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; }
@media (max-width: 760px) { .site-nav { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background .15s;
}
.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-primary { background: var(--espresso); color: var(--oat); }
.btn-primary:hover { background: var(--espresso-hover); color: var(--oat); }
.btn-secondary { border: 1.5px solid var(--espresso); padding: 13.5px 24.5px; }
.btn-secondary:hover { background: var(--milk); color: var(--espresso); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--clay); padding-bottom: 4px; }

/* Type */
.label { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--walnut); text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(46px, 8vw, 96px); line-height: .98; letter-spacing: -.035em; }
h2 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -.025em; }
h3 { font-size: 28px; line-height: 1.1; letter-spacing: -.02em; }
p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--body); text-wrap: pretty; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.6; max-width: 600px; }

/* Sections */
section { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--linen); }
.hero { border-top: 0; padding-top: clamp(72px, 12vw, 150px); }
.hero .wrap { display: grid; gap: 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.section-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px 40px; margin-bottom: 40px; }
.section-head > div { display: grid; gap: 20px; }
/* Big serif number with the section name under it, so the left column holds its own against the h2 */
.sec-label { display: grid; gap: 12px; align-content: start; font-size: 14px; padding-top: .35em; }
.sec-num { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 54px); font-weight: 400; line-height: 1; letter-spacing: -.02em; text-transform: none; color: var(--clay-ink); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card { background: var(--milk); border: 1px solid var(--linen); border-radius: 8px; padding: 28px; display: grid; gap: 14px; align-content: start; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card p { font-size: 15px; line-height: 1.6; }

/* Process: a sample site builds itself beside the steps */
.process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.build-visual { position: sticky; top: 104px; display: grid; gap: 12px; }
.build-visual .browser { background: var(--milk); box-shadow: 0 30px 60px -40px rgba(43,36,32,.5); }
.browser-bar b { font-weight: 500; }
.bv-lock { display: none; vertical-align: -1px; margin-right: 4px; }
[data-stage="4"] .bv-lock { display: inline; }
.bv-canvas { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.bv-layer { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(.985); transition: opacity .6s ease, transform .6s ease; }
[data-stage="1"] .bv-sketch, [data-stage="2"] .bv-wire, [data-stage="3"] .bv-design, [data-stage="4"] .bv-design, [data-stage="4"] .bv-live { opacity: 1; transform: none; }
.bv-live > g, .bv-cursor { opacity: 0; transition: opacity .4s ease, transform .5s ease; transform-box: fill-box; }
.bv-toast { transform: translateY(14px); }
[data-stage="4"] .bv-badge { opacity: 1; transition-delay: .3s; }
[data-stage="4"] .bv-speed { opacity: 1; transition-delay: .6s; }
[data-stage="4"] .bv-cursor { opacity: 1; transition-delay: .8s; }
[data-stage="4"] .bv-toast { opacity: 1; transform: none; transition-delay: 1.4s; }
.bv-pulse { animation: bv-pulse 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes bv-pulse { 50% { opacity: .35; } }
.bv-caption { font-size: 14px; color: var(--walnut); min-height: 1.6em; }
.bv-num { font-family: var(--serif); font-size: 18px; color: var(--clay-ink); margin-right: 4px; }
.process-grid .step { transition: opacity .3s; }
.process-grid .step .sub { transition: color .3s; }
.process-grid .step.active .sub { color: var(--clay-ink); }
@media (min-width: 901px) {
  .process-grid .step { min-height: 30vh; align-content: center; }
  .process-grid .step:not(.active) { opacity: .45; }
}
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; }
  .build-visual { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .bv-layer, .bv-live > g, .bv-cursor { transition: none; }
  .bv-pulse { animation: none; }
}

/* Process */
.steps { display: grid; border-top: 1px solid var(--linen); }
.step { display: grid; grid-template-columns: minmax(80px, 160px) minmax(0, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--linen); align-items: baseline; }
.step-body { display: grid; gap: 8px; max-width: 640px; }
.step-body .sub { font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }

/* Browser frame (sample switcher and process visual) */
.browser { border: 1px solid var(--linen); border-radius: 6px; overflow: hidden; background: var(--oat); }
.browser-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--linen); }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--linen); }
.browser-bar span { margin-left: 8px; flex: 1; font-size: 11px; color: var(--walnut); background: var(--milk); border-radius: 4px; padding: 2px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-bar em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--clay-ink); white-space: nowrap; }

/* Work: sample switcher */
.switcher { display: grid; gap: 18px; }
.switch-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.switch-lead { font-family: var(--serif); font-size: 24px; margin-right: 6px; }
.switch-tabs button {
  font: 600 15px var(--sans); color: var(--espresso); background: transparent; cursor: pointer;
  border: 1.5px solid var(--linen); border-radius: 999px; padding: 10px 20px; transition: border-color .15s, background .15s;
}
.switch-tabs button:hover { border-color: var(--clay); }
.switch-tabs button[aria-selected="true"] { background: var(--espresso); border-color: var(--espresso); color: var(--oat); }
.switch-browser { box-shadow: 0 30px 60px -40px rgba(43,36,32,.5); }
/* The sample renders at full desktop (or phone) width and is scaled to fit; the script sets the sizes */
.switch-screen { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--milk); }
.switch-screen iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; transform-origin: 0 0; }
.switch-screen iframe[hidden] { display: none; }
.switch-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.switch-meta > div { display: grid; gap: 4px; max-width: 640px; }
.work-name { font-family: var(--serif); font-size: 26px; letter-spacing: -.01em; }
.switch-meta p { font-size: 15px; }
.switch-note { font-size: 15px; color: var(--walnut); }

/* Dark band */
.dark { background: var(--espresso); color: var(--oat); border-top: 0; }
.dark h2 i { color: var(--clay-light); }
.dark p { color: #C9BBA8; }
.dark .label { color: #C9BBA8; }
.dark .btn-primary { background: var(--oat); color: var(--espresso); }
.dark .btn-primary:hover { background: var(--milk); }
.cta { display: grid; gap: 28px; max-width: 760px; align-content: start; }
.dark a { color: var(--oat); }
.dark a:hover { color: var(--clay-light); }

/* X-ray hero */
.hero { position: relative; overflow: hidden; }
.xray {
  position: absolute; inset: 0; padding: inherit; z-index: 1; pointer-events: none;
  clip-path: circle(0px at 50% 50%);
  background:
    linear-gradient(rgba(201,179,154,.08) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(201,179,154,.08) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--espresso);
}
/* The real code sits in the open space at the lower right, fading in from the top */
.xray pre {
  position: absolute; right: 0; bottom: 0; width: min(44%, 560px); height: 64%; margin: 0;
  padding: 0 clamp(16px, 4vw, 56px) 0 0;
  font: 12px/1.75 ui-monospace, 'Cascadia Code', Consolas, monospace; color: var(--clay-light);
  opacity: .5; white-space: pre; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 30%); mask-image: linear-gradient(transparent, #000 30%);
}
.xray .hero-inner { position: relative; }
.xray h1, .xray h1 i { color: transparent; -webkit-text-stroke: 1px var(--clay-light); }
.xray .label, .xray .lede, .xray .hero-note, .xray .hero-note a { color: #CDBFAE; }
.xray .btn { background: transparent; color: var(--clay-light); border: 1px dashed var(--clay-light); padding: 14px 25px; }
.xray [data-tag] { position: relative; outline: 1px dashed rgba(201,179,154,.5); outline-offset: 5px; }
.xray [data-tag]::before {
  content: attr(data-tag); position: absolute; left: -5px; bottom: calc(100% + 9px);
  font: 600 10.5px/1 ui-monospace, 'Cascadia Code', Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; font-style: normal;
  color: var(--espresso); background: var(--clay-light); padding: 4px 7px; border-radius: 3px; white-space: nowrap;
  -webkit-text-stroke: 0;
}
@media (max-width: 900px) {
  .xray pre { display: none; }
  /* Stacked layout leaves no room above each element, so tags sit on its top-right corner */
  .xray [data-tag]::before { left: auto; right: -5px; bottom: auto; top: -14px; font-size: 9.5px; padding: 3px 5px; }
  .xray .btn[data-tag]::before { right: auto; left: 18px; }
}
.lens {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; opacity: 0;
  border-radius: 50%; border: 1.5px solid var(--clay-light);
  box-shadow: 0 0 0 6px rgba(201,179,154,.14), 0 18px 50px -10px rgba(43,36,32,.55);
  transition: opacity .2s;
}
.lens span {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, 10px);
  font: 600 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--walnut); background: var(--milk); border: 1px solid var(--linen); padding: 5px 9px; border-radius: 999px;
}
.xray-bar { position: relative; z-index: 3; margin-top: clamp(28px, 5vw, 56px); }
.xray-toggle {
  justify-self: start; display: inline-flex; align-items: center; gap: 9px;
  font: 600 13px var(--sans); color: var(--walnut); background: none; cursor: pointer;
  border: 1px dashed var(--clay); border-radius: 999px; padding: 9px 16px;
}
.xray-toggle:hover { color: var(--espresso); border-style: solid; }
.xray-toggle[aria-pressed="true"] { background: var(--espresso); color: var(--oat); border: 1px solid var(--clay-light); }

/* Hero offer note */
.hero-note { font-size: 15px; color: var(--walnut); }
.hero-note a { font-weight: 600; }

/* Offer */
.offer-steps { list-style: none; margin: 0; padding: 0; }
.offer-steps .card { gap: 12px; }

/* Pricing */
.price-card { display: flex; flex-direction: column; gap: 16px; }
.price-card .card-top { align-items: baseline; gap: 12px; }
.price { font-family: var(--serif); font-size: clamp(40px, 4vw, 48px); line-height: 1; letter-spacing: -.03em; }
.price small { font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--walnut); }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; color: var(--body); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .42em; width: 11px; height: 6px; border-left: 2px solid var(--clay-ink); border-bottom: 2px solid var(--clay-ink); transform: rotate(-45deg); }
.price-card .btn { align-self: flex-start; margin-top: auto; }
.price-card .ticks { margin-bottom: 8px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); }
/* Narrower cards: tag under the title, and "/ month", "From", "to $8,000" on their own line */
.grid-4 .card-top { flex-direction: column; align-items: flex-start; gap: 4px; }
.grid-4 .price small { display: block; margin-top: 6px; }
.grid-4 .price small:first-child { margin: 0 0 6px; }
.price-card .fine { font-size: 13px; line-height: 1.55; color: var(--walnut); margin-top: -4px; }
.price-terms { margin-top: 20px; font-size: 15px; color: var(--walnut); }
.care-head { display: grid; gap: 12px; max-width: 640px; margin: clamp(56px, 7vw, 80px) 0 24px; }
.care-head p { font-size: 16px; }

/* Contact + request form */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-alt { font-size: 15px; }
.request-form { display: grid; gap: 18px; background: #352D28; border: 1px solid #4A3F38; border-radius: 10px; padding: clamp(20px, 3vw, 32px); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--oat); }
.field small { font-weight: 500; color: #A8998A; }
.field input, .field textarea, .field select {
  width: 100%; font: 500 16px var(--sans); color: var(--oat);
  background: var(--espresso); border: 1px solid #5A4D44; border-radius: 6px; padding: 13px 14px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder { color: #7D6F63; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--clay-light); box-shadow: 0 0 0 3px rgba(201,179,154,.2); }
.extra { margin: 0; padding: 18px; display: grid; gap: 18px; border: 1px dashed #5A4D44; border-radius: 8px; }
.extra[hidden] { display: none; }
.extra legend { padding: 0 6px; font-size: 14px; font-weight: 600; color: var(--clay-light); }
.extra .fine { font-size: 13px; line-height: 1.55; color: #A8998A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.request-form button { border: 0; cursor: pointer; font-family: var(--sans); }
.request-form button:disabled { opacity: .6; cursor: wait; }
.form-status { font-size: 15px; }
.form-status:empty { display: none; }
.request-form.sent > :not(.form-foot), .request-form.sent button { display: none; }
.request-form.sent .form-status { font-size: 18px; color: var(--oat); }

/* Text pages (privacy) */
.prose-page { padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 112px); }
.prose { max-width: 760px; display: grid; gap: 18px; }
.prose h1 { font-size: clamp(42px, 6.5vw, 72px); margin-bottom: 6px; }
.prose h1 i { color: var(--clay-ink); }
.prose h2 { font-size: clamp(26px, 3vw, 32px); margin-top: 22px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--body); font-size: 17px; line-height: 1.6; }
.prose strong { color: var(--espresso); font-weight: 600; }
.site-footer small a { color: var(--walnut); }
.form-privacy { font-size: 13px; color: #A8998A; }
.form-privacy a { color: #C9BBA8; }

/* Footer */
.site-footer { padding: 48px 0 64px; border-top: 1px solid var(--linen); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-footer small { font-size: 13px; color: var(--walnut); }

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