/* Lakesbridge — site styles. Self-hosted Space Grotesk (OFL). */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/SpaceGrotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/SpaceGrotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #101216;
  --bg-alt: #171a20;
  --bg-elev: #1c1f26;
  --text: #f3f4f6;
  --muted: #9aa1ab;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #51CB20;
  --accent-dim: #0B4B00;
  --danger: #e26d6d;
  --font: "Space Grotesk", "Segoe UI", sans-serif;
  --wrap: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

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

img, picture { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #fff; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--accent);
  color: #101216;
  padding: 0.5rem 0.85rem;
  z-index: 100;
  font-weight: 600;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--pad));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(16, 18, 22, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(16, 18, 22, 0.9);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(calc(var(--wrap) + 2rem), 100% - 2 * var(--pad));
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand img {
  height: 32px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav a:hover, .nav a:focus-visible { color: var(--accent); }

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.2rem;
  height: 1.5px;
  background: var(--text);
  position: relative;
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--text);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 18, 22, 0.35) 0%, rgba(16, 18, 22, 0.55) 45%, rgba(16, 18, 22, 0.92) 100%),
    linear-gradient(90deg, rgba(16, 18, 22, 0.55) 0%, rgba(16, 18, 22, 0.15) 60%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 10vh, 7rem) 0 clamp(3.5rem, 9vh, 6rem);
  max-width: 42rem;
}
.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 6vw, 4.15rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--accent); }
.hero .lede {
  margin: 0 0 2rem;
  max-width: 36rem;
  color: #d5d8de;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--accent);
  color: #101216;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.25rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover, .btn:focus-visible {
  background: #fff;
  color: #101216;
}
.btn .arrow { font-size: 1.1em; line-height: 1; }

/* Sections */
section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-lead {
  margin: 0 0 2.5rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-copy p { margin: 0 0 1.15rem; color: #d0d4db; font-size: 1.125rem; }
.about-copy p:last-child { margin-bottom: 0; }
.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Portfolio */
.portfolio { background: var(--bg-alt); }
.industries {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.industry {
  background: var(--bg-alt);
  padding: 1.6rem 1.5rem 1.7rem;
}
.industry h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.industry p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.industry:last-child { grid-column: 1 / -1; }

/* Approach */
.approach { background: var(--bg); }
.approach-intro {
  margin: 0 0 2.75rem;
  max-width: 36rem;
  font-size: 1.2rem;
  color: #d0d4db;
}
.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 2.5rem;
}
.approach-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.approach-item p { margin: 0; color: var(--muted); }
.approach-item {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* Why */
.why {
  position: relative;
  overflow: hidden;
  background: var(--bg-elev);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.why-list li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  color: #d5d8de;
  padding-left: 1.6rem;
  position: relative;
}
.why-list li:last-child { border-bottom: 1px solid var(--line); }
.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
}
.why-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Contact */
.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.contact .bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.contact .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.contact .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 18, 22, 0.88), rgba(16, 18, 22, 0.92));
}
.contact-copy { max-width: 40rem; }
.contact-address {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2.25rem;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer h2 {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.site-footer p, .site-footer address { margin: 0; font-style: normal; line-height: 1.6; }
.footer-base {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 404 */
.page-error .error-wrap {
  min-height: calc(100svh - var(--header-h) - 8rem);
  display: grid;
  align-content: center;
  padding: 4rem 0;
}
.page-error h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.03em; margin: 0 0 0.75rem; }

@media (max-width: 860px) {
  .about-grid,
  .why-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .approach-grid { gap: 1.5rem; }
  .why-photo { order: -1; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(16, 18, 22, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0; width: 100%; }
  body.nav-open { overflow: hidden; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
}

@media (max-width: 640px) {
  .industries,
  .approach-grid { grid-template-columns: 1fr; }
  .brand img { height: 26px; }
}

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

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