:root {
  --bg: #fbfaf7;
  --bg-tint: #f2efe8;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --ink-2: #445066;
  --line: #e4e0d6;
  --accent: #f59e0b;
  --primary: #0f1b2d;
  --primary-ink: #ffffff;
  --ok: #15803d;
  --err: #b91c1c;
  --radius: 2px;
  --notch: 12px;
  --serif: "IBM Plex Sans", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1420;
    --bg-tint: #111c2b;
    --surface: #152234;
    --ink: #eef1f6;
    --ink-2: #a3aec0;
    --line: #233349;
    --primary: #f59e0b;
    --primary-ink: #0c1420;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 640px; }
.muted { color: var(--ink-2); font-size: .9rem; margin: 0; }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 .9em;
}
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 44rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.1rem; text-decoration: none; letter-spacing: -.01em; }
.brand-mark { width: 26px; height: 26px; }
.site-nav { display: flex; gap: 6px; }
.site-nav a {
  text-decoration: none; padding: 8px 14px; border-radius: 0; color: var(--ink-2); font-weight: 500; font-size: .95rem;
}
.site-nav a:hover { color: var(--ink); background: var(--bg-tint); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--bg-tint); }
.nav-toggle, .nav-burger { display: none; }

@media (max-width: 720px) {
  .nav-burger {
    display: block; width: 40px; height: 40px; cursor: pointer; position: relative;
  }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    content: ""; position: absolute; left: 9px; width: 22px; height: 2px; background: var(--ink); border-radius: 0;
  }
  .nav-burger span { top: 19px; }
  .nav-burger span::before { left: 0; top: -7px; }
  .nav-burger span::after { left: 0; top: 7px; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .wrap { padding: 0 16px; }
}

/* Buttons & links */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: 0; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(15, 27, 45, .5); }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-tint); }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 1px; }

/* Sections */
.hero { padding: clamp(64px, 12vw, 140px) 0 clamp(56px, 9vw, 110px); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -60px; top: 0; width: 560px; height: 100%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent 75%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  pointer-events: none;
}
.hero h1 { max-width: 15em; }
.page-head { padding: clamp(56px, 9vw, 100px) 0 clamp(28px, 4vw, 48px); }
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tint { background: var(--bg-tint); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.cta { text-align: center; }
.cta .lede { margin: 0 auto 1.5em; }

.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); font-weight: 500; font-size: .95rem;
}

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-2); margin: 0; }
.service { padding: 28px; }
.service-icon {
  width: 44px; height: 44px; border-radius: 0; clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); display: grid; place-items: center; font-size: 1.3rem;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--ink); margin-bottom: 18px;
}

.project-card { position: relative; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(15, 27, 45, .45); }
.project-swatch {
  aspect-ratio: 16 / 9; display: grid; place-items: center;
  background:
    linear-gradient(115deg, transparent 55%, color-mix(in srgb, white 14%, transparent) 55%, transparent 80%),
    linear-gradient(135deg, var(--p), color-mix(in srgb, black 35%, var(--p)));
}
.project-logo {
  aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 28px;
  background: #ffffff; border-bottom: 1px solid var(--line);
}
.project-logo img { max-width: 78%; max-height: 64%; }
.project-swatch span { font-family: var(--serif); font-size: 4.5rem; color: rgba(255, 255, 255, .92); font-weight: 600; }
.card-body { padding: 22px 24px 26px; }
.card-body .eyebrow { margin-bottom: .5em; }
.stretched { text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; }

.project-head { border-bottom: 4px solid var(--p); }
.back { display: inline-block; margin-bottom: 28px; }
.small-head { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--ink); }
.steps li::before { content: "0" counter(step); font-family: var(--serif); font-size: 1.6rem; display: block; margin-bottom: 8px; color: var(--ink-2); }
.steps p { color: var(--ink-2); }

/* About */
.about { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.portrait { margin: 0; }
.portrait img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; width: 100%; }
.about h2 { margin-bottom: .2em; }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; } .portrait { max-width: 320px; } }

/* Form */
.form { padding: 28px; display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; width: 100%;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: var(--radius); border-left: 3px solid currentColor; margin-bottom: 18px; font-weight: 500; }
.notice-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); }
.notice-error { background: color-mix(in srgb, var(--err) 14%, transparent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: end; }
.footer-links { display: grid; gap: 4px; text-align: right; }
@media (max-width: 720px) { .footer-links { text-align: left; } }
