/* Ben Moffett — site styles */
:root {
  --black: #000000;
  --ink: #201c25;
  --text: #4f4d52;
  --muted: #6f717a;
  --greige: #dfd8d7;
  --greige-deep: #b2a2a0;
  --paper: #f4f1f2;
  --paper-2: #f8f7f8;
  --white: #ffffff;
  --accent: #ff4255;
  --accent-ink: #e0283c;
  --line: rgba(32, 28, 37, 0.14);
  --error: #c4233a;
  --success: #1f7a4d;

  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "Montserrat", "Poppins", system-ui, sans-serif;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --text-hero: clamp(2.75rem, 1.6rem + 5vw, 5.25rem);

  --frame: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 2px;
  --shadow: 0 24px 60px -24px rgba(32, 28, 37, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--black); color: var(--white); padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

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

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

/* ---------- Header ---------- */
.site-header { background: var(--black); color: var(--white); position: sticky; top: 0; z-index: 50; }
.site-header .frame { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: clamp(150px, 16vw, 200px); height: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav li + li::before { content: "|"; color: rgba(255,255,255,.7); padding-inline: .9rem; }
.nav a { color: var(--white); text-decoration: none; font-size: var(--text-sm); font-weight: 500; letter-spacing: .01em; padding-block: .35rem; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.nav a:hover { border-bottom-color: var(--white); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: var(--white); padding: .5rem .7rem; font: inherit; font-size: var(--text-sm); cursor: pointer; border-radius: var(--radius); }
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--black); border-top: 1px solid rgba(255,255,255,.12); display: none; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1rem; }
  .nav li + li::before { display: none; }
  .nav a { display: block; padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav a[aria-current="page"] { color: var(--accent); border-bottom-color: rgba(255,255,255,.1); }
}

/* ---------- Hero ---------- */
.hero { background: var(--greige); position: relative; overflow: hidden; }
.hero .frame { max-width: none; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); min-height: 560px; }
.hero-copy { padding: clamp(3rem, 7vw, 6rem) var(--gutter); padding-left: max(var(--gutter), calc((100vw - var(--frame)) / 2 + var(--gutter))); align-self: center; }
.eyebrow { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: var(--text-base); letter-spacing: .06em; line-height: 1.45; max-width: 34ch; margin-bottom: 1.25rem; }
.hero h1 { font-size: var(--text-hero); font-weight: 600; letter-spacing: .02em; line-height: 1.05; margin-bottom: 1.5rem; }
.hero-lede { color: var(--ink); max-width: 42ch; }
.hero-media { position: relative; background: url("../img/hero-wall.webp") center / cover no-repeat; display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 3vw, 2rem); }
.hero-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(223,216,215,.35), rgba(223,216,215,0) 40%); pointer-events: none; }
@media (max-width: 900px) {
  .hero .frame { grid-template-columns: minmax(0,1fr); min-height: 0; }
  .hero-copy { padding-bottom: 2rem; padding-left: var(--gutter); }
  .hero-media { padding: 0 var(--gutter) 3rem; background: var(--greige); }
  .hero-media::before { display: none; }
}

/* ---------- Form card ---------- */
.form-card { position: relative; width: 100%; max-width: 440px; background: var(--white); box-shadow: var(--shadow); }
.form-card__head { background: var(--paper); text-align: center; padding: 1.5rem 1.75rem 1.25rem; }
.form-card__head h2 { font-size: var(--text-lg); font-weight: 500; margin-bottom: .35rem; }
.form-card__head p { font-size: var(--text-sm); color: var(--muted); }
.contact-form { padding: 1.5rem 1.75rem 1.5rem; display: grid; gap: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-size: var(--text-xs); font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.field label .req { color: var(--accent-ink); margin-left: .15rem; }
.field label .opt { color: var(--muted); font-weight: 400; margin-left: .25rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: var(--text-sm); color: var(--ink);
  background: var(--white); border: 1px solid #c9c2c3; border-radius: var(--radius);
  padding: .7rem .8rem; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9a979d; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(32,28,37,.12); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }
.field-error { font-size: var(--text-xs); color: var(--error); min-height: 0; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:empty { display: none; }
.turnstile-slot { min-height: 65px; display: flex; justify-content: center; max-width: 100%; overflow: hidden; }
.turnstile-slot > * { max-width: 100%; }
.form-actions { display: flex; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); letter-spacing: .04em;
  background: var(--black); color: var(--white); border: 1px solid var(--black); border-radius: var(--radius);
  padding: .8rem 1.6rem; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, transform .1s;
}
.btn:hover { background: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn svg { width: 1.05em; height: 1.05em; }
.btn--accent { background: var(--accent); border-color: var(--accent); text-transform: uppercase; font-size: var(--text-xs); letter-spacing: .08em; padding: .85rem 1.4rem; }
.btn--accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.spinner { width: 1em; height: 1em; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { font-size: var(--text-sm); text-align: center; padding: .75rem 1rem; border-radius: var(--radius); }
.form-status[hidden] { display: none; }
.form-status.is-error { background: #fdecee; color: var(--error); }
.form-note { font-size: var(--text-xs); color: var(--muted); text-align: center; }
.form-success { padding: 2.5rem 1.75rem; text-align: center; }
.form-success[hidden] { display: none; }
.form-success .check { width: 52px; height: 52px; border-radius: 50%; background: var(--black); color: var(--white); display: grid; place-items: center; margin: 0 auto 1.1rem; }
.form-success h3 { font-size: var(--text-lg); margin-bottom: .5rem; }
.form-success p { font-size: var(--text-sm); color: var(--muted); }

/* ---------- Intro + logos ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--paper { background: var(--paper); }
.intro { text-align: center; max-width: 60ch; margin-inline: auto; font-size: var(--text-lg); color: var(--ink); line-height: 1.6; }
.kicker { font-family: var(--font-label); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: var(--text-sm); color: var(--black); text-align: center; margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.25rem; }
.logos { background: var(--paper-2); display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: clamp(1rem, 4vw, 3rem); padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 4vw, 3rem); }
.logos img { height: clamp(36px, 5vw, 62px); width: auto; margin-inline: auto; object-fit: contain; }
@media (max-width: 560px) { .logos { grid-template-columns: 1fr; gap: 1.75rem; } }

/* ---------- Work together ---------- */
.together { position: relative; background: var(--greige) url("../img/building.webp") center 30% / cover no-repeat; }
.together::before { content: ""; position: absolute; inset: 0; background: rgba(223,216,215,.55); }
.together .frame { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0; padding-block: clamp(3rem, 6vw, 5rem); padding-inline: var(--gutter); align-items: start; }
.together-card { background: rgba(244,241,242,.96); padding: clamp(2rem, 4vw, 3rem); }
.together-card h2 { font-size: var(--text-2xl); font-weight: 800; margin-bottom: 1.5rem; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .5rem; padding-block: .9rem; color: var(--ink); font-size: var(--text-sm); }
.checklist li + li { border-top: 1px solid var(--line); }
.checklist svg { width: 1rem; height: 1rem; margin-top: .3rem; }
.checklist strong { font-weight: 600; }
.portrait { position: relative; }
.portrait img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; filter: grayscale(1); }
.portrait figcaption { position: absolute; left: 50%; bottom: -1rem; transform: translateX(-50%); background: var(--white); color: var(--ink); font-size: var(--text-xs); font-weight: 500; padding: .4rem .8rem; white-space: nowrap; }
@media (max-width: 800px) {
  .together .frame { grid-template-columns: minmax(0,1fr); gap: 2.5rem; }
  .portrait { max-width: 420px; margin-inline: auto; width: 100%; }
}

/* ---------- Testimonials ---------- */
.promise { text-align: center; font-size: var(--text-xl); font-weight: 300; color: var(--ink); max-width: 30ch; margin: 0 auto clamp(3rem, 6vw, 4.5rem); line-height: 1.35; }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.testimonial { margin: 0; }
.testimonial .q { width: 44px; height: 32px; margin-bottom: 1rem; color: var(--black); }
.testimonial blockquote { margin: 0 0 1.25rem; font-size: var(--text-sm); color: var(--ink); line-height: 1.7; }
.testimonial figcaption { font-size: var(--text-sm); color: var(--ink); line-height: 1.4; }
.testimonial figcaption strong { display: block; font-weight: 600; }
@media (max-width: 860px) { .testimonials { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- Page intro (designs) ---------- */
.page-intro { background: var(--paper-2); }
.page-intro .frame { padding: clamp(2.5rem, 6vw, 4rem) var(--gutter); }
.page-intro h1 { font-size: var(--text-2xl); font-weight: 700; margin-bottom: 1rem; }
.page-intro p { max-width: 80ch; color: var(--ink); }

/* ---------- Showcase (designs) ---------- */
.showcase { background: var(--greige); }
.showcase .frame { padding: clamp(1rem, 2.5vw, 1.5rem); display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }
.work { background: var(--black); padding: clamp(1.25rem, 4vw, 2.5rem); margin: 0; }
.work img { margin-inline: auto; width: 100%; max-width: 900px; }
.work figcaption { color: rgba(255,255,255,.75); text-align: center; font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; margin-top: 1rem; font-family: var(--font-label); font-weight: 600; }
.more { background: var(--black); padding: clamp(2rem, 6vw, 3.5rem) 1rem; text-align: center; }
.more span { font-family: var(--font-label); font-weight: 800; font-size: clamp(2.5rem, 9vw, 6.5rem); color: #1b1a21; letter-spacing: .02em; line-height: 1; }

/* ---------- Paintings ---------- */
.paintings .frame { display: grid; gap: .75rem; padding-block: .75rem; }
.painting { margin: 0; padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 6vw, 4.5rem); text-align: center; }
.painting:nth-child(odd) { background: #1b1b1d; color: var(--white); }
.painting:nth-child(even) { background: var(--greige); color: var(--ink); }
.painting img { width: 100%; box-shadow: 0 20px 50px -25px rgba(0,0,0,.6); }
.painting figcaption { margin-top: 1.5rem; font-family: var(--font-label); text-transform: uppercase; letter-spacing: .05em; font-size: var(--text-sm); display: grid; gap: .4rem; }
.painting figcaption strong { font-weight: 700; font-size: var(--text-base); }
.painting:nth-child(odd) figcaption { color: rgba(255,255,255,.88); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,.8); }
.site-footer .frame { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; padding: clamp(2.5rem, 5vw, 3.5rem) var(--gutter); }
.site-footer .brand img { width: 170px; margin-bottom: 1rem; }
.site-footer p { font-size: var(--text-sm); max-width: 48ch; letter-spacing: .02em; }
.site-footer .btn { margin-top: 1.5rem; }
.footer-contact { text-align: right; font-style: normal; font-size: var(--text-sm); line-height: 1.8; }
.footer-contact h2 { color: var(--white); font-family: var(--font-label); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: var(--text-sm); margin-bottom: 1rem; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.copyright { text-align: center; font-size: var(--text-xs); color: var(--greige-deep); padding: 1.1rem var(--gutter); background: var(--white); }
@media (max-width: 720px) {
  .site-footer .frame { grid-template-columns: 1fr; }
  .footer-contact { text-align: left; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 55vh; display: grid; place-items: center; text-align: center; background: var(--greige); padding: 4rem var(--gutter); }
.notfound h1 { font-size: var(--text-2xl); margin-bottom: 1rem; }

/* Reveal motion (content visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
