/* March Digital temporary site
   Native CSS, no framework, no external fonts or requests.
   Theme: one accent (terracotta) on cool neutrals, auto light/dark.
   Shape rule: containers, buttons and inputs 10px; small chips 6px. */

:root {
  --bg: #F5F6F7;
  --surface: #FCFCFD;
  --surface-2: #ECEEF1;
  --text: #16181D;
  --muted: #5A6170;
  --line: rgba(22, 24, 29, 0.12);
  --line-strong: rgba(22, 24, 29, 0.28);
  --accent: #B84D33;
  --accent-ink: #FBF3EF;
  --accent-soft: rgba(184, 77, 51, 0.10);
  --ink-tile: #16181D;
  --ink-tile-text: #ECEEF1;
  --ink-tile-muted: #A9B0BC;
  --radius: 10px;
  --radius-sm: 6px;
  --nav-h: 68px;
  --wrap: 1200px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1013;
    --surface: #15181D;
    --surface-2: #1B1F26;
    --text: #ECEEF1;
    --muted: #9AA3B2;
    --line: rgba(236, 238, 241, 0.12);
    --line-strong: rgba(236, 238, 241, 0.30);
    --accent: #E07A5F;
    --accent-ink: #16100E;
    --accent-soft: rgba(224, 122, 95, 0.14);
    --ink-tile: #ECEEF1;
    --ink-tile-text: #16181D;
    --ink-tile-muted: #5A6170;
  }
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 0.15em; }
a:hover { text-decoration-color: currentColor; }
img, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(var(--wrap), 100% - 4rem); } }

.skip {
  position: absolute; left: 1rem; top: -3rem;
  padding: 0.5rem 0.75rem; background: var(--text); color: var(--bg);
  border-radius: var(--radius); z-index: 100;
}
.skip:focus { top: 1rem; }

/* Type */
h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 650;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 620;
  text-wrap: balance;
}
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 620; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 44ch; }
p { max-width: 65ch; }
.section-head p, .steps p, .tile p, dd, .about p, .contact-grid p { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { padding: 0.65rem 1rem; font-size: 0.95rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--accent); color: var(--accent-ink);
  display: inline-grid; place-items: center;
  font-weight: 750; font-size: 0.95rem; line-height: 1;
}
.nav-links { display: none; gap: 1.75rem; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
@media (min-width: 720px) { .nav-links { display: flex; } }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-copy { display: grid; gap: 1.5rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-visual {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 16 / 10;
}
.hero-visual canvas { width: 100%; height: 100%; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 7fr 5fr; gap: 4rem; min-height: min(72vh, 760px); }
  .hero-visual { aspect-ratio: 4 / 5; max-height: 640px; }
}

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }
.section-tint { background: var(--surface-2); }
@media (prefers-color-scheme: dark) { .section-tint { background: var(--surface); } }
.section-head { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
.section-head p { font-size: 1.125rem; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.tile {
  grid-column: span 12;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.75rem;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  min-height: 250px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.tile h3 { margin-bottom: 0.6rem; }
.tile p { font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li {
  font-size: 0.8rem; line-height: 1; padding: 0.45rem 0.6rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--muted);
}
/* Tile treatments: four of six cells carry a distinct surface */
.tile-a {
  background:
    linear-gradient(180deg, var(--surface) 40%, color-mix(in srgb, var(--surface) 55%, transparent)),
    repeating-linear-gradient(135deg, var(--accent-soft) 0 1px, transparent 1px 12px),
    var(--surface);
}
.tile-b { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.tile-b .chips li { border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text); }
.tile-d { background: var(--ink-tile); color: var(--ink-tile-text); border-color: var(--ink-tile); }
.tile-d p, .tile-d .chips li { color: var(--ink-tile-muted); }
.tile-d .chips li { border-color: color-mix(in srgb, var(--ink-tile-text) 22%, transparent); }
.tile-e {
  background:
    radial-gradient(circle at 100% 0, var(--surface) 0, var(--surface) 30%, transparent 70%),
    radial-gradient(var(--line) 1px, transparent 1.2px) 0 0 / 16px 16px,
    var(--surface);
}
@media (min-width: 720px) {
  .tile-a { grid-column: span 7; }
  .tile-b { grid-column: span 5; }
  .tile-c { grid-column: span 5; }
  .tile-d { grid-column: span 7; }
  .tile-e { grid-column: span 6; }
  .tile-f { grid-column: span 6; }
}

/* Steps */
.steps { display: grid; gap: 2rem; margin-top: 2.5rem; }
.steps li { border-top: 1px solid var(--line-strong); padding-top: 1.25rem; }
.steps h3 { margin-bottom: 0.5rem; }
.steps p { font-size: 1rem; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; } }

/* Principles */
.statement {
  margin-top: 1.5rem;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.3; letter-spacing: -0.015em; font-weight: 500;
  max-width: 34ch;
}
.principles { display: grid; gap: 2rem; margin-top: 3.5rem; }
.principles > div { border-top: 1px solid var(--line-strong); padding-top: 1.25rem; }
.principles dt { font-weight: 620; font-size: 1.125rem; margin-bottom: 0.4rem; }
.principles dd { font-size: 1rem; }
@media (min-width: 720px) { .principles { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; } }

/* About: offset column */
.about-col { display: grid; gap: 1.25rem; max-width: 62ch; }
@media (min-width: 960px) { .about-col { margin-left: clamp(0px, 18vw, 240px); } }
.facts { display: grid; gap: 1rem 2rem; margin-top: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.facts dt { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.15rem; }
.facts dd { font-weight: 500; color: var(--text); overflow-wrap: anywhere; }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; }
.contact-grid h2 { margin-bottom: 1rem; }
.contact-direct { margin-top: 1rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; } }

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.45rem; }
label { font-weight: 600; font-size: 0.95rem; }
.optional { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--text);
  width: 100%; padding: 0.8rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
textarea { resize: vertical; min-height: 7.5rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; border-color: var(--accent); }
[aria-invalid="true"] { border-color: var(--accent); }
.error { font-size: 0.9rem; color: var(--accent); font-weight: 500; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.25rem; }
.hint { font-size: 0.9rem; color: var(--muted); }
.status { font-size: 0.95rem; min-height: 1.5em; }
.status:empty { display: none; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; }
.footer-inner { display: grid; gap: 1.5rem; }
.footer-note { color: var(--muted); font-size: 0.9rem; margin-top: 0.75rem; }
.footer-meta { display: grid; gap: 0.25rem; font-size: 0.9rem; color: var(--muted); }
.footer-meta a { color: var(--text); }
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .footer-meta { text-align: right; }
}

/* Motion: entry on load, reveal on scroll. All of it collapses under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.9s var(--ease) both; }
  .rise-2 { animation-delay: 0.12s; }
  .rise-3 { animation-delay: 0.24s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
  .reveal {
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .reveal.in { opacity: 1; transform: none; }
  .bento .reveal:nth-child(2), .steps .reveal:nth-child(2), .principles .reveal:nth-child(2) { transition-delay: 0.08s; }
  .bento .reveal:nth-child(3), .steps .reveal:nth-child(3), .principles .reveal:nth-child(3) { transition-delay: 0.16s; }
  .bento .reveal:nth-child(4), .steps .reveal:nth-child(4), .principles .reveal:nth-child(4) { transition-delay: 0.24s; }
  .bento .reveal:nth-child(5) { transition-delay: 0.32s; }
  .bento .reveal:nth-child(6) { transition-delay: 0.40s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover, .btn:active { transition: none; transform: none; }
}
