/* Layout: full-bleed photo hero, one featured card, then a three-up grid of project cards. */
:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --ink: #14202e;
  --muted: #4f5f70;
  --line: #d9e0e7;
  --brand: #0f2742;
  --accent: #1c5aa6;
  --accent-ink: #ffffff;
  --gold: #f0b94d;
  --tag-bg: #e6eef8;
  --tag-ink: #164a87;
  --shadow: 0 1px 2px rgba(15, 39, 66, .08), 0 8px 24px rgba(15, 39, 66, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c141d; --surface: #131e2b; --ink: #e8eef5; --muted: #a3b2c2; --line: #263548;
    --brand: #0f2742; --accent: #6aa7e8; --accent-ink: #0a1624; --tag-bg: #1b2e46; --tag-ink: #a9cdf3;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 8px; top: -60px; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 6px; z-index: 20; }
.skip:focus { top: 8px; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--brand); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10, 28, 48, .93) 0%, rgba(10, 28, 48, .82) 45%, rgba(10, 28, 48, .45) 100%); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { font-weight: 700; letter-spacing: .01em; color: #fff; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; }
.brand .logo { flex: none; border-radius: 6px; box-shadow: 0 0 0 1px rgba(240, 185, 77, .55); }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a.link { color: #fff; text-decoration: none; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 6px; font-size: .95rem; }
.nav a.link:hover { background: rgba(255, 255, 255, .14); }
.hero-body { padding-block: clamp(48px, 9vw, 112px) clamp(56px, 10vw, 120px); max-width: 760px; }
.eyebrow { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
/* Verdana runs wide, so the hero heading is a step smaller than a narrow display face would be. */
h1 { font-family: Verdana, Geneva, sans-serif; font-size: clamp(1.8rem, 4.6vw, 3.1rem); line-height: 1.12; margin: 0 0 20px; letter-spacing: -.02em; text-wrap: balance; }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); margin: 0 0 28px; max-width: 60ch; color: #e6edf5; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid transparent; }
.btn.primary { background: var(--gold); color: #1a1405; }
.btn.primary:hover { background: #f7c96a; }
.btn.ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; padding: 0; margin: 40px 0 0; color: #dbe6f2; font-size: .95rem; }
.facts strong { color: #fff; font-size: 1.35rem; margin-right: 6px; font-variant-numeric: tabular-nums; }

/* Projects */
main { padding-block: clamp(40px, 7vw, 88px); }
.section-head { max-width: 62ch; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0 0 8px; letter-spacing: -.01em; text-wrap: balance; }
.section-head p { margin: 0; color: var(--muted); }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card .shot { aspect-ratio: 8 / 5; background: var(--brand); border-bottom: 1px solid var(--line); }
.card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card .body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 0; }
.tag { align-self: flex-start; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--tag-bg); color: var(--tag-ink); padding: 4px 10px; border-radius: 999px; }
.card h3 { margin: 0; font-size: 1.25rem; line-height: 1.25; text-wrap: balance; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 0; padding-left: 1.1em; color: var(--ink); font-size: .95rem; }
.card li { margin-block: 3px; }
.card .actions { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.visit { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.visit:hover { text-decoration: underline; }
.url { font-family: var(--mono); font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.card.featured { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .card.featured { flex-direction: row; }
  .card.featured .shot { flex: 1 1 52%; aspect-ratio: auto; display: flex; align-items: center; border-bottom: 0; border-right: 1px solid var(--line); }
  .card.featured .shot img { height: auto; object-fit: initial; }
  .card.featured .body { flex: 1 1 48%; padding: 32px; justify-content: center; }
  .card.featured h3 { font-size: 1.6rem; }
}

/* Automated QA testing service: proof panel, three service cards, then process and deliverables. */
/* The extra 3.2rem is two lines of space above the Projects heading (vertical margins collapse, so it is added here). */
.qa { margin-bottom: calc(clamp(48px, 8vw, 96px) + 3.2rem); scroll-margin-top: 16px; }
.qa .section-head .tag { display: inline-block; margin-bottom: 10px; }
.proof { background: var(--brand); color: #fff; border-radius: 12px; padding: clamp(20px, 4vw, 36px); display: grid; gap: 24px 40px; grid-template-columns: 1fr; margin-bottom: 24px; }
.proof h3 { margin: 0 0 8px; font-size: 1.3rem; }
.proof p { margin: 0; color: #d4e0ee; max-width: 62ch; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; }
.stats li { color: #dbe6f2; font-size: .9rem; line-height: 1.35; border-left: 3px solid var(--gold); padding-left: 12px; }
.stats strong { display: block; color: #fff; font-size: 1.6rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .proof { grid-template-columns: 1.3fr 1fr; } }
.svc .body { padding: 24px; }
/* Three cards: one column on phones, two with the last spanning on tablets (no orphan gap), three on desktop. */
.svc-grid { grid-template-columns: 1fr; }
@media (min-width: 700px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc-grid .svc:last-child { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .svc-grid .svc:last-child { grid-column: auto; } }
.how { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: clamp(20px, 4vw, 36px); }
.how h3 { margin: 0 0 12px; font-size: 1.25rem; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 14px; min-height: 30px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--tag-bg); color: var(--tag-ink); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.ticks { margin: 0 0 20px; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

/* Closing band + footer */
.band { margin-top: clamp(40px, 7vw, 80px); background: var(--brand); color: #fff; border-radius: 12px; padding: clamp(24px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.band h2 { margin: 0 0 6px; font-size: clamp(1.3rem, 2.8vw, 1.8rem); text-wrap: balance; }
.band p { margin: 0; color: #d4e0ee; max-width: 56ch; }
.band .email-row { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.email-link { color: var(--gold); font-weight: 600; overflow-wrap: anywhere; text-underline-offset: 3px; }
.email-link:hover { color: #f7c96a; }
.copy-btn { min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 8px; border: 2px solid rgba(255, 255, 255, .6); background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.copy-btn:hover { background: rgba(255, 255, 255, .12); }
.copy-btn:focus-visible, .email-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.copy-btn[hidden] { display: none; }
.copy-status { color: #d4e0ee; font-size: .9rem; min-height: 1em; }
footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

footer a { color: inherit; }
.section-head[id] { scroll-margin-top: 16px; }

@media (max-width: 520px) {
  .nav ul { gap: 0; }
  .nav a.link { padding: 0 8px; font-size: .9rem; }
  .brand span { display: none; }
  .btn { width: 100%; }
  .hero::before { background: linear-gradient(180deg, rgba(10, 28, 48, .9), rgba(10, 28, 48, .86)); }
}

/* 404 page */
.notfound { padding-block: 96px; }
.notfound h1 { font-size: 2rem; color: var(--ink); }
.sr-copy { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
