/* Seniac Creative — seniaccreative.com
   West-coast working studio: harbour fog, deep sea-teal, kelp, and one buoy-yellow signal. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url(/fonts/bricolage.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --fog: #E4E9E6;
  --fog-2: #D3DBD7;
  --harbour: #0F3036;
  --harbour-2: #174047;
  --kelp: #2D5A4C;
  --slate: #4E5F62;
  --buoy: #F2B230;
  --surf: #F6F8F7;
  --gutter: clamp(16px, 5vw, 80px);
  --measure: 36rem;
  --font: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--fog);
  color: var(--harbour);
  font-family: var(--font);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.6;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, blockquote, figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--buoy); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--buoy); color: var(--harbour); padding: 10px 14px; font-weight: 700; border-radius: 6px; }
.skip:focus { top: 12px; }

.button {
  display: inline-block;
  background: var(--buoy);
  color: var(--harbour);
  font: 700 1.0625rem/1.2 var(--font);
  padding: 0.85em 1.3em;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.button:hover { background: #FFC548; }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Masthead ---------- */
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 750; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.masthead nav { display: flex; gap: clamp(14px, 3vw, 32px); font-weight: 550; }
.masthead nav a { text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }
@media (max-width: 420px) { .brand span { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 8vw, 104px) var(--gutter) clamp(56px, 8vw, 112px); }
.hero h1 {
  font-size: clamp(2.7rem, 7.4vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 760;
  max-width: 14ch;
}
.hero-sub { margin-top: 1.1em; max-width: var(--measure); font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem); color: var(--slate); line-height: 1.5; }

.pipeline {
  list-style: none; padding: 0;
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  gap: clamp(28px, 3vw, 40px);
  counter-reset: step;
}
@media (min-width: 820px) {
  .pipeline { grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 5fr); align-items: end; }
}
.pipeline li { position: relative; counter-increment: step; }
.pipeline img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: var(--fog-2); }
.pipeline li:nth-child(1) img { object-position: center 20%; }
.pipeline li:nth-child(2) img { background: #000; object-fit: contain; }
.pipeline li:nth-child(3) img { aspect-ratio: 16 / 10; }
.pipeline figcaption { margin-top: 14px; color: var(--slate); font-size: 0.98rem; line-height: 1.45; max-width: 30ch; }
.pipeline .step { display: block; color: var(--harbour); font-weight: 700; font-size: 1.05rem; margin-bottom: 2px; }
.pipeline .step::before { content: counter(step) ". "; color: var(--kelp); }
/* the joining line between steps, on wide screens */
@media (min-width: 820px) {
  .pipeline li:not(:last-child)::after {
    content: ""; position: absolute; top: 38%; right: calc(-1 * clamp(28px, 3vw, 40px)); width: clamp(28px, 3vw, 40px); height: 3px;
    background: var(--buoy);
  }
}

/* ---------- Now building ---------- */
.now {
  background: var(--harbour);
  color: var(--surf);
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(56px, 8vw, 112px) var(--gutter);
  align-items: center;
}
@media (min-width: 900px) { .now { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.now-art { width: 100%; border-radius: 14px; }
.kicker { color: var(--buoy); font-weight: 700; }
.now h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1; letter-spacing: -0.03em; font-weight: 760; margin-top: 0.15em; }
.now-copy p:not(.kicker) { max-width: var(--measure); margin-top: 1em; color: #CFDCD8; }
.now-copy p:last-child { margin-top: 1.6em; }

/* ---------- What we build ---------- */
.build { padding: clamp(64px, 9vw, 128px) var(--gutter); }
.build h2, .studio h2, .contact h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.02; letter-spacing: -0.03em; font-weight: 740; }
.build-grid { display: grid; gap: clamp(32px, 4vw, 56px); margin-top: clamp(32px, 5vw, 56px); }
@media (min-width: 900px) { .build-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.build-grid article { border-top: 3px solid var(--harbour); padding-top: 20px; }
.build-grid h3 { font-size: 1.5rem; letter-spacing: -0.015em; font-weight: 700; }
.build-grid p { margin-top: 0.7em; color: #2F4448; }

.principle {
  margin-top: clamp(56px, 8vw, 104px);
  padding-left: clamp(20px, 3vw, 36px);
  border-left: 6px solid var(--buoy);
  max-width: 52rem;
}
.principle p { font-size: clamp(1.8rem, 4vw, 3.1rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 650; }
.principle footer { margin-top: 0.9em; color: var(--slate); }

/* ---------- Studio ---------- */
.studio {
  background: var(--fog-2);
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  display: grid; gap: clamp(20px, 4vw, 64px);
}
@media (min-width: 900px) { .studio { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.studio-copy p { max-width: var(--measure); }
.studio-copy p + p { margin-top: 1em; }
.studio .place { color: var(--kelp); font-weight: 600; }

/* ---------- Contact ---------- */
.contact {
  padding: clamp(64px, 9vw, 128px) var(--gutter);
  display: grid; gap: clamp(28px, 4vw, 64px);
}
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.contact-copy p { margin-top: 1em; max-width: 26rem; color: var(--slate); }
.contact-form { display: grid; gap: 18px; max-width: 40rem; }
.field label { display: block; font-weight: 650; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 1.0625rem/1.4 var(--font);
  color: var(--harbour);
  background: var(--surf);
  border: 2px solid #9FB0AC;
  border-radius: 10px;
  padding: 0.7em 0.85em;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--buoy); outline-offset: 1px; border-color: var(--harbour); }
.field [aria-invalid="true"] { border-color: #A2341C; }
.field-error { color: #A2341C; font-weight: 600; font-size: 0.95rem; margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .button { justify-self: start; }
.form-status:empty { display: none; }
.form-status { font-weight: 650; padding: 14px 16px; border-radius: 10px; background: #D6EADF; color: var(--kelp); }
.form-status.is-error { background: #F5D8CF; color: #7D2612; }
.contact-form.is-done .field, .contact-form.is-done .button { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--harbour);
  color: #B9CBC6;
  padding: 32px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between;
  font-size: 0.95rem;
}
.site-footer a { color: var(--surf); }

/* ---------- Simple pages ---------- */
.page { min-height: 100svh; padding: clamp(48px, 8vw, 112px) var(--gutter); }
.page-inner { max-width: 40rem; }
.page h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1; letter-spacing: -0.03em; margin: 0.5em 0 0.4em; }
.page p { margin-top: 0.8em; }
