/* ==========================================================================
   LAKGRID ENGINEERING — stylesheet
   Tokens: colors derived from brand mark, type = Big Shoulders / Inter / JetBrains Mono
   ========================================================================== */

:root {
  /* --- Color tokens --- */
  --navy-deep: #0B3A61;
  --navy: #0F4B7D;
  --navy-soft: #2D6293;
  --orange: #F2871A;
  --gold: #FFB648;
  --paper: #F3F5F6;
  --paper-dim: #EAEEF0;
  --ink: #1B2430;
  --ink-soft: #4B5563;
  --line: #D7DEE4;
  --white: #FFFFFF;

  /* --- Type tokens --- */
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* --- Layout tokens --- */
  --max-width: 1220px;
  --section-pad: 128px;
  --section-pad-mobile: 72px;
  --radius: 6px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: var(--section-pad) 0; }
@media (max-width: 780px) {
  section { padding: var(--section-pad-mobile) 0; }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--orange);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: 0.002em;
  line-height: 1.02;
  text-transform: uppercase;
}

h2.section-title {
  font-size: clamp(34px, 4.6vw, 54px);
  margin: 14px 0 0;
}
h3.card-title {
  font-size: 26px;
  margin: 0 0 10px;
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 620px;
  margin-top: 18px;
}

.section-head {
  max-width: 700px;
  margin-bottom: 64px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--navy-deep);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy-deep); transform: translateY(-2px); }
.btn-on-dark { color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-on-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn svg { width: 15px; height: 15px; flex: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.0);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow .35s ease;
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -20px rgba(11,58,97,0.35);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { width: 34px; height: auto; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--navy-deep);
  line-height: 1;
  letter-spacing: 0.01em;
}
.brand-word span {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-top: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a:not(.btn) {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--orange);
  transition: right 0.3s var(--ease);
}
.nav-links a:not(.btn):hover::after { right: 0; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-deep); }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 84vw);
    background: var(--white); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 28px; padding: 40px; transform: translateX(100%); transition: transform 0.4s var(--ease);
    box-shadow: -20px 0 50px rgba(11,58,97,0.15); }
  .nav-links.is-open { transform: translateX(0); }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 180px 0 120px;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper) 70%, var(--white) 100%);
}
.blueprint-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0) 85%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(46px, 6vw, 78px);
  color: var(--navy-deep);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg, var(--orange), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-tags {
  display: flex;
  gap: 10px;
  margin-top: 52px;
  flex-wrap: wrap;
}
.hero-tags span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.6);
  padding: 7px 12px;
  border-radius: 3px;
}
.hero-art { position: relative; height: 560px; }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.truss-line {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.3;
  opacity: 0.55;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.1s var(--ease) forwards;
}
.ray-line {
  fill: none;
  stroke: url(#rayGradient);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0;
  transform-origin: 300px 330px;
  animation: burst 1.1s var(--ease) forwards;
  animation-delay: 1.15s;
}
.glow-core {
  opacity: 0;
  animation: glowIn 1.3s var(--ease) forwards;
  animation-delay: 1.05s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes burst { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes glowIn { from { opacity: 0; } to { opacity: 1; } }
.glow-core { animation-name: glowIn, breathe; animation-duration: 1.3s, 4.5s; animation-delay: 1.05s, 2.4s; animation-iteration-count: 1, infinite; animation-timing-function: var(--ease), ease-in-out; }
@keyframes breathe { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.75; transform: scale(1.06); } }

@media (prefers-reduced-motion: reduce) {
  .truss-line { animation: none; stroke-dashoffset: 0; }
  .ray-line { animation: none; opacity: 1; transform: scale(1); }
  .glow-core { animation: none; opacity: 1; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { height: 340px; order: -1; opacity: 0.85; }
  .hero { padding: 140px 0 80px; }
}

/* ---------- Approach strip ---------- */
.approach {
  background: var(--navy-deep);
  color: var(--white);
  padding: 84px 0;
}
.approach-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
}
.approach h2 {
  color: var(--white);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.08;
}
.approach .lede { color: rgba(255,255,255,0.72); }
.approach-list { display: grid; gap: 26px; }
.approach-item { display: flex; gap: 18px; align-items: flex-start; }
.approach-item .num {
  font-family: var(--font-mono);
  color: var(--orange);
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.approach-item h4 { color: var(--white); font-size: 17px; text-transform: none; letter-spacing: 0; margin-bottom: 5px; font-family: var(--font-body); font-weight: 600; }
.approach-item p { color: rgba(255,255,255,0.68); font-size: 14.5px; }

@media (max-width: 860px) {
  .approach-inner { grid-template-columns: 1fr; }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  background: var(--white);
  transition: border-color 0.3s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
  grid-column: span 2;
}
.service-card:hover {
  border-color: var(--navy);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -30px rgba(11,58,97,0.35);
}
.service-card.featured {
  grid-column: span 6;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 60%, var(--navy-soft));
  color: var(--white);
  padding: 44px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 36px;
  align-items: center;
  border: none;
}
.service-card.featured:hover { transform: none; box-shadow: none; }
.service-icon {
  width: 46px; height: 46px;
  color: var(--orange);
  flex: none;
}
.service-card.featured .service-icon { width: 58px; height: 58px; color: var(--gold); }
.service-card h3 { margin-top: 18px; }
.service-card.featured h3 { margin-top: 0; color: var(--white); font-size: 32px; }
.service-card p { color: var(--ink-soft); font-size: 14.5px; }
.service-card.featured p { color: rgba(255,255,255,0.78); font-size: 15.5px; max-width: 480px; }
.service-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  display: block;
  margin-bottom: 8px;
}
.service-card.featured .service-tag { color: var(--gold); }
.feature-list { display: grid; gap: 8px; margin-top: 6px; }
.feature-list li {
  font-size: 13.5px;
  color: rgba(255,255,255,0.85);
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
}
.feature-list li::before { content: ""; width: 6px; height: 6px; background: var(--orange); flex: none; }

@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { grid-column: span 1; }
  .service-card.featured { grid-column: span 2; grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: span 1; }
}

/* ---------- Process ---------- */
.process { background: var(--paper); position: relative; }
.process-list { display: grid; gap: 0; margin-top: 20px; }
.process-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 30px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.process-item:last-child { border-bottom: 1px solid var(--line); }
.process-item .step-num {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--orange);
}
.process-item h4 {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 6px;
}
.process-item p { color: var(--ink-soft); font-size: 14.5px; max-width: 620px; }
.process-row-content { display: grid; grid-template-columns: 1fr 200px; gap: 20px; align-items: baseline; }
.process-item .step-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  text-align: right;
}
@media (max-width: 700px) {
  .process-item { grid-template-columns: 46px 1fr; }
  .process-row-content { grid-template-columns: 1fr; }
  .process-item .step-tag { text-align: left; }
}

/* ---------- Work / Projects ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.work-thumb {
  aspect-ratio: 4/3;
  position: relative;
  background: linear-gradient(150deg, var(--navy-deep), var(--navy) 55%, var(--navy-soft));
  display: flex; align-items: center; justify-content: center;
}
.work-thumb svg { width: 64px; height: 64px; color: rgba(255,255,255,0.85); }
.work-thumb::after {
  content: "PHOTO PLACEHOLDER";
  position: absolute; bottom: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
}
.work-meta { padding: 20px 22px 24px; }
.work-meta .service-tag { margin-bottom: 6px; }
.work-meta h4 { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 16.5px; color: var(--navy-deep); }
.work-meta p { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }

@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--navy-deep); color: var(--white); }
.contact .eyebrow { color: var(--gold); }
.contact .eyebrow::before { background: var(--gold); }
.contact h2 { color: var(--white); }
.contact .lede { color: rgba(255,255,255,0.7); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  margin-top: 56px;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 9px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--white);
  padding: 13px 15px;
  border-radius: 3px;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255,255,255,0.1);
}
.field select option { color: var(--ink); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 12.5px; color: rgba(255,255,255,0.5); margin-top: 4px; }

.contact-card {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 34px;
  background: rgba(255,255,255,0.04);
}
.contact-row { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.14); }
.contact-row:first-child { border-top: none; padding-top: 0; }
.contact-row svg { width: 20px; height: 20px; color: var(--orange); flex: none; margin-top: 2px; }
.contact-row .label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.contact-row .value { font-size: 15px; color: var(--white); }
.contact-row .value.placeholder { color: rgba(255,255,255,0.55); font-style: italic; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,0.12); padding: 56px 0 32px; color: rgba(255,255,255,0.7); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-badge { background: var(--white); border-radius: 10px; padding: 8px; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; }
.footer-badge img { width: 100%; }
.footer-tagline { font-size: 13.5px; color: rgba(255,255,255,0.55); max-width: 280px; margin-top: 8px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer-col a, .footer-col li { display: block; font-size: 14px; color: rgba(255,255,255,0.78); margin-bottom: 10px; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12); font-family: var(--font-mono); font-size: 11.5px; color: rgba(255,255,255,0.45); }

/* ---------- Reveal on scroll ----------
   Visible by default (no-JS / JS-failure safe).
   Only hidden-then-revealed once JS confirms it can do so. */
.reveal { opacity: 1; transform: none; }
.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js-enabled .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js-enabled .reveal { opacity: 1; transform: none; transition: none; }
}
