@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #16191d;
  --bg-alt: #1b1f24;
  --panel: #22272e;
  --border: #323a44;
  --text: #e8eaed;
  --muted: #9aa2ad;
  --accent: #f2a900;
  --radius: 4px;
  --maxw: 1120px;
  --header-h: 72px;
  --space: clamp(3.2rem, 7vw, 6.5rem);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.55em; font-weight: 600;
}
h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); }
h3 { font-size: 1.08rem; }

p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

.service, .work-item, .about-body, .contact-intro, .contact-form { min-width: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--accent); color: var(--bg);
  padding: 0.6rem 1rem; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 25, 29, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.85rem; color: var(--text); font-family: var(--font-display); font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand-owl { width: auto; height: 56px; flex: none; display: block; }
.brand-name { font-size: clamp(0.9rem, 2.4vw, 1.12rem); white-space: nowrap; }

.nav-menu { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.nav-menu a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  color: var(--bg) !important; background: var(--accent);
  padding: 0.45rem 0.95rem; border-radius: var(--radius); font-weight: 600 !important;
}
.nav-cta:hover { filter: brightness(1.1); text-decoration: none; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer; padding: 0 10px;
}
.nav-toggle-bar { height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7rem);
  border-bottom: 1px solid var(--border);
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 48px);
}
.hero-inner::before {
  content: ""; display: block; width: 52px; height: 3px;
  background: var(--accent); margin-bottom: 1.5rem;
}
.kicker {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.76rem;
  color: var(--accent); font-weight: 600; margin-bottom: 1.1rem;
}
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); max-width: none; margin-bottom: 0.6em; }
.lede { font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.1rem; }

/* Buttons */
.btn {
  display: inline-block; padding: 0.68rem 1.25rem; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; font-size: 0.96rem;
  border: 1px solid transparent; cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { color: var(--bg); filter: brightness(1.1); }
.btn-ghost { background: var(--bg); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--panel); border-color: var(--muted); }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* Sections */
#main, section[id] { scroll-margin-top: var(--header-h); }
.section { padding-block: var(--space); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section h2 { max-width: 24ch; }
.section-lede { color: var(--muted); max-width: 62ch; margin: 0 0 2.2rem; }

/* Services */
.service-list { border-top: 1px solid var(--border); }
.service {
  display: grid; grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--border);
}
.service h3 { margin: 0; }
.service p { margin: 0; color: var(--muted); }
.areas { margin-top: 2rem; color: var(--muted); font-size: 0.92rem; }

/* Work */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.work-item { position: relative; padding-top: 1.9rem; }
.work-item::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 44px; height: 3px; background: var(--accent);
}
.work-item h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.work-item p { color: var(--muted); }
.work-role {
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.74rem; font-weight: 600; margin: 0 0 0.9rem;
}
.work-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.1rem 0 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: start; }
.about-photo img { border-radius: var(--radius); border: 1px solid var(--border); width: 100%; }
.about-body p { color: var(--muted); max-width: 62ch; }
.social-links { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 1.6rem 0 0; padding: 0; }
.social-links a, .work-links a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.4rem 0.9rem; font-size: 0.88rem; font-weight: 500; color: var(--text);
}
.social-links svg, .work-links svg { width: 17px; height: 17px; flex: none; }
.social-links svg { fill: currentColor; }
.social-links a:hover, .work-links a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.8rem, 5vw, 4rem); align-items: start; }
.contact-intro p { color: var(--muted); }
.contact-details { margin-top: 1.4rem; display: grid; gap: 0.85rem; }
.contact-details p { margin: 0; }
.contact-name { color: var(--text); font-family: var(--font-display); font-weight: 600; }
.contact-email { font-size: 1.08rem; font-weight: 600; }
.contact-meta { color: var(--muted); font-size: 0.8rem; line-height: 1.55; }
.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field textarea {
  font: inherit; color: var(--text); background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 0.68rem 0.82rem; width: 100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field textarea { resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.2em; font-size: 0.92rem; }
.form-status.is-error { color: #ff8f8f; }
.form-status.is-success { color: #b6e3a0; }
.form-privacy { font-size: 0.8rem; color: var(--muted); margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 2.5rem; background: var(--bg-alt); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-brand { font-weight: 600; margin: 0; }
.footer-copy { color: var(--muted); font-size: 0.86rem; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; list-style: none; margin: 0; padding: 0; font-size: 0.86rem; }
.footer-links a { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--muted); }
.footer-links svg { width: 17px; height: 17px; flex: none; }
.footer-links a:hover { color: var(--accent); }

/* 404 */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }

/* Mobile nav */
@media (max-width: 820px) {
  .work-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 240px; }
}
@media (max-width: 640px) {
  .title-br { display: none; }
  .brand { gap: 0.65rem; letter-spacing: 0.12em; }
  .brand-owl { height: 48px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: var(--header-h); right: 0; left: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--bg-alt);
    border-bottom: 1px solid var(--border); padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { border-bottom: 1px solid var(--border); }
  .nav-menu li:last-child { border-bottom: 0; }
  .nav-menu a { display: block; padding: 0.9rem 0; }
  .nav-cta { display: inline-block; margin-top: 0.75rem; text-align: center; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
  .service { grid-template-columns: 1fr; gap: 0.4rem; }
}

@media (max-width: 360px) {
  .nav { gap: 0.5rem; }
  .brand { gap: 0.5rem; letter-spacing: 0.08em; }
  .brand-owl { height: 40px; }
  .brand-name { font-size: 0.84rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
