/* Mobile-first. Dark theme is the default; [data-theme="light"] switches. */
:root {
  --amber: #e8a54b;
  --amber-d: #c9862c;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: ui-serif, Georgia, "Times New Roman", serif;

  /* dark (default) */
  --bg: #0f1814;
  --bg-alt: #14211b;
  --surface: #1a2a22;
  --ink: #ece7db;
  --muted: #a4afa8;
  --line: #2a3d33;
  --link: #f0bd6e;
  --header: #0b120f;
  --hero-a: #0b120f;
  --hero-b: #1f3a2e;
  --on-hero: #f6f1e7;
  --input: #0f1814;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #fffdf8;
  --bg-alt: #f6f1e7;
  --surface: #ffffff;
  --ink: #1b1f1c;
  --muted: #5b655f;
  --line: #e3dccd;
  --link: #2c5241;
  --header: #1f3a2e;
  --hero-a: #1f3a2e;
  --hero-b: #2c5241;
  --input: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 8vw, 3.6rem); max-width: 16ch; }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; background: var(--amber); color: #1b1f1c; font-weight: 600; text-decoration: none; padding: .7em 1.3em; border-radius: 999px; border: 2px solid var(--amber); cursor: pointer; font-size: 1rem; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--amber-d); border-color: var(--amber-d); }
.btn-ghost { background: transparent; color: var(--on-hero); border-color: rgba(246,241,231,.5); }
.btn-ghost:hover { background: rgba(246,241,231,.1); border-color: var(--on-hero); }
.btn-small { min-height: 38px; padding: .4em 1em; font-size: .9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--header); color: var(--on-hero); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-hero); text-decoration: none; font-family: var(--display); font-size: 1.15rem; font-weight: 700; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(246,241,231,.25); background: transparent; color: var(--on-hero); cursor: pointer; padding: 0; }
.icon-btn:hover { background: rgba(246,241,231,.1); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }
.nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--header); padding: 8px 16px 16px; flex-direction: column; }
.nav-links.open { display: flex; }
.nav-links a { color: var(--on-hero); text-decoration: none; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-cta { display: none; }

/* Hero */
.hero { position: relative; background: linear-gradient(160deg, var(--hero-a) 0%, var(--hero-b) 100%); color: var(--on-hero); padding: 56px 0 110px; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars span { position: absolute; border-radius: 50%; background: #fff8e8; box-shadow: 0 0 4px rgba(255,248,232,.7); opacity: var(--max); animation: twinkle var(--dur) ease-in-out var(--delay) infinite; }
@keyframes twinkle { 0%, 100% { opacity: calc(var(--max) * .15); transform: scale(.7); } 50% { opacity: var(--max); transform: scale(1); } }
[data-theme="light"] .stars { display: none; }
.clouds { display: none; position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
[data-theme="light"] .clouds { display: block; }
.cloud { position: absolute; left: 0; width: var(--w); height: calc(var(--w) * .32); border-radius: 999px; background: #fff; opacity: var(--o); filter: blur(10px); animation: drift var(--dur) linear var(--delay) infinite; will-change: transform; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 50%; height: 150%; left: 14%; bottom: 25%; }
.cloud::after { width: 38%; height: 120%; right: 16%; bottom: 30%; }
.c1 { --w: 260px; --o: .18; --dur: 95s; --delay: -20s; top: 14%; }
.c2 { --w: 180px; --o: .13; --dur: 130s; --delay: -85s; top: 38%; }
.c3 { --w: 320px; --o: .11; --dur: 160s; --delay: -60s; top: 62%; }
.c4 { --w: 150px; --o: .16; --dur: 110s; --delay: -5s; top: 24%; }
@keyframes drift { from { transform: translateX(-40vw); } to { transform: translateX(110vw); } }
@media (max-width: 639px) { .cloud { --w: 160px; } .c3 { display: none; } }
@media (prefers-reduced-motion: reduce) { .stars span, .cloud { animation: none; } .c1 { transform: translateX(55vw); } .c2 { transform: translateX(15vw); } .c3 { transform: translateX(70vw); } .c4 { transform: translateX(30vw); } }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--amber); font-weight: 700; margin: 0 0 1em; }
.lede { font-size: 1.08rem; max-width: 60ch; opacity: .92; }
.cta-row { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.ridge { position: absolute; left: 0; bottom: -1px; width: 100%; height: 80px; fill: var(--bg); }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-lede { color: var(--muted); max-width: 60ch; margin: 0 0 28px; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 0; color: var(--muted); }
.work-card { position: relative; padding: 0; overflow: hidden; border-top: 4px solid var(--amber); transition: transform .15s, box-shadow .15s; }
.work-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.work-shot { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.work-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.work-body h3 { margin: 0; }
.work-title { color: var(--ink); text-decoration: none; }
.work-title::after { content: ""; position: absolute; inset: 0; }
.work-title:focus-visible { outline: none; }
.work-card:focus-within { outline: 2px solid var(--amber); outline-offset: 2px; }
.work-card .work-link { margin-top: .5em; color: var(--link); font-weight: 600; font-size: .95rem; }
.tag { font-size: .76rem !important; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--amber) !important; margin: 0 !important; }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 24px; grid-template-columns: 1fr; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 58px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--amber); display: grid; place-items: center; font-weight: 700; font-family: var(--display); font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); }

.about { display: grid; gap: 28px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; display: flex; flex-direction: column; }
.facts span { color: var(--muted); font-size: .95rem; }

/* Contact form */
.contact { display: grid; gap: 28px; }
.form { display: grid; gap: 16px; background: var(--bg-alt); border: 1px solid var(--line); padding: 20px; border-radius: var(--radius); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); padding: .7em .8em; border: 1px solid var(--line); border-radius: 10px; background: var(--input); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.form .btn { width: 100%; }
.optional { font-weight: 400; color: var(--muted); }
.hidden { display: none; }
.muted { color: var(--muted); }

.site-footer { background: var(--header); color: var(--on-hero); padding: 24px 0; font-size: .92rem; }
.footer { display: flex; flex-direction: column; gap: 6px; }
.footer p { margin: 0; }
.footer a { color: var(--on-hero); }

.simple { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }

/* Tablet and up */
@media (min-width: 640px) {
  body { font-size: 17px; }
  .wrap { width: min(1100px, 100% - 48px); }
  .cta-row { flex-direction: row; flex-wrap: wrap; }
  .grid.cards, .grid.work { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form { padding: 28px; }
  .form .btn { width: auto; justify-self: start; }
  .footer { flex-direction: row; justify-content: space-between; }
  .nav-cta { display: inline-flex; }
}

/* Desktop */
@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .nav-links { display: flex; position: static; flex-direction: row; align-items: center; gap: 22px; padding: 0; background: none; }
  .nav-links a { padding: 0; border: 0; opacity: .85; font-size: .95rem; }
  .nav-links a:hover { opacity: 1; }
  .hero { padding: 96px 0 150px; }
  .ridge { height: 120px; }
  .section { padding: 84px 0; }
  .grid.cards { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding-left: 0; padding-top: 56px; }
  .about { grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
  .contact { grid-template-columns: 1fr 1.3fr; gap: 40px; }
}
