/* Tundra Construction — site styles
   Brand: blue / black / white, taken from the wolf logo (#18a4d9 → #2084c2, ink #231f20). */

:root {
  --ink: #0a0d11;
  --ink-2: #10151b;
  --ink-3: #18202a;
  --paper: #f3f6f8;
  --white: #ffffff;
  --blue: #18a4d9;
  --blue-deep: #2084c2;
  --blue-text: #14679b;          /* blue that passes contrast on light grounds */
  --text: #e9eef2;
  --muted: #9db0bf;
  --muted-dark: #4b5a67;
  --line: rgba(255, 255, 255, 0.13);
  --line-dark: rgba(10, 13, 17, 0.14);

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 10vw, 148px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Archivo", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  margin: 0;
  font-weight: 500;
  font-stretch: 108%;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
h3 { font-size: 0.8rem; font-weight: 700; font-stretch: 125%; letter-spacing: 0.18em; line-height: 1.3; text-transform: uppercase; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 0.78rem;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.on-light .eyebrow { color: var(--blue-text); }

.lead { font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 58ch; }
.on-light .lead { color: var(--muted-dark); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--blue); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border: 2px solid var(--blue); background: var(--blue); color: var(--ink);
  font: inherit; font-size: 0.8rem; font-weight: 700; font-stretch: 125%;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: var(--white); border-color: var(--white); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.on-light .btn--ghost { color: var(--ink); border-color: var(--ink); }
.on-light .btn--ghost:hover { background: var(--ink); color: var(--white); }
.on-light .btn:not(.btn--ghost):hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

.arrow-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.8rem; font-weight: 700; font-stretch: 125%; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none; color: var(--blue);
}
.arrow-link svg { width: 30px; height: 12px; transition: transform 0.25s var(--ease); }
.arrow-link:hover svg { transform: translateX(8px); }
.on-light .arrow-link { color: var(--blue-text); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  background: linear-gradient(rgba(10, 13, 17, 0.85), rgba(10, 13, 17, 0));
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.is-solid {
  background: rgba(10, 13, 17, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 50px; height: 50px; background: var(--white); border-radius: 50%; padding: 3px; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__name b { font-size: 1.3rem; font-weight: 800; font-stretch: 125%; letter-spacing: 0.1em; color: var(--blue); }
.brand__name span { margin-top: 5px; font-size: 0.62rem; font-weight: 600; font-stretch: 125%; letter-spacing: 0.36em; color: var(--white); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.nav a:not(.btn) {
  position: relative; padding: 8px 0;
  font-size: 0.82rem; font-weight: 700; font-stretch: 125%; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; color: var(--white);
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 0 20px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0;
  background: none; border: 2px solid rgba(255, 255, 255, 0.4); color: var(--white); cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 5px auto; background: currentColor; transition: transform 0.25s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px; background: var(--ink); border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav a:not(.btn) { padding: 18px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 22px; min-height: 52px; }
  .brand img { width: 44px; height: 44px; }
  .brand__name b { font-size: 1.1rem; }
}

/* ---------- Home hero: two services, two doors ---------- */
.hero { position: relative; background: var(--ink); }
.hero__copy { position: relative; z-index: 2; padding: calc(var(--header-h) + 44px) 0 40px; }
.hero__copy h1 em { font-style: normal; color: var(--blue); }
.hero__copy .lead { margin-top: 24px; color: #c9d5de; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__panels { display: flex; flex-direction: column; }
.panel {
  position: relative; display: block; overflow: hidden; min-height: 58svh;
  color: var(--white); text-decoration: none; isolation: isolate;
}
.panel img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.5s;
  filter: brightness(0.78) saturate(0.9);
}
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10, 13, 17, 0.92) 0%, rgba(10, 13, 17, 0.25) 46%, rgba(10, 13, 17, 0.5) 100%);
}
.panel:hover img, .panel:focus-visible img { transform: scale(1.05); filter: brightness(0.95) saturate(1); }
.panel__label { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; }
.panel__label h2 { font-size: clamp(1.7rem, 3.4vw, 3rem); }
.panel__label p { margin: 10px 0 18px; max-width: 34ch; color: #d2dde5; }
.panel__label .arrow-link { color: var(--blue); }
.panel:hover .arrow-link svg { transform: translateX(8px); }

@media (min-width: 900px) {
  .hero { min-height: 100svh; display: flex; flex-direction: column; }
  .hero__copy { position: absolute; inset: 0 0 auto 0; pointer-events: none; padding-top: calc(var(--header-h) + clamp(28px, 7vh, 84px)); }
  .hero__copy a { pointer-events: auto; }
  .hero__panels { flex: 1; flex-direction: row; min-height: 100svh; }
  .panel { flex: 1 1 0; min-height: 0; transition: flex-grow 0.7s var(--ease); }
  .panel:hover, .panel:focus-visible { flex-grow: 1.35; }
  .panel + .panel { border-left: 1px solid var(--line); }
  .panel::before {
    background:
      linear-gradient(to top, rgba(10, 13, 17, 0.9) 0%, rgba(10, 13, 17, 0) 38%),
      linear-gradient(to bottom, rgba(10, 13, 17, 0.9) 0%, rgba(10, 13, 17, 0.62) 36%, rgba(10, 13, 17, 0) 62%);
  }
  .panel__label { left: clamp(24px, 4vw, 56px); bottom: clamp(32px, 6vh, 64px); }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.on-light { background: var(--paper); color: var(--ink); }
.on-ink-2 { background: var(--ink-2); }

.statement__text {
  margin: 0; max-width: 24ch;
  font-size: clamp(1.7rem, 4.3vw, 3.6rem); font-weight: 500; font-stretch: 108%;
  line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance;
}
.statement__text span { color: var(--blue-text); }
.statement__meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px 40px;
  margin-top: clamp(44px, 6vw, 80px); padding-top: 30px; border-top: 2px solid var(--ink);
}
.statement__meta h3 { margin-bottom: 8px; }
.statement__meta p { margin: 0; font-size: 1rem; font-weight: 400; font-stretch: 100%; letter-spacing: 0; line-height: 1.55; max-width: 34ch; color: var(--muted-dark); }

.service { display: grid; gap: clamp(32px, 5vw, 76px); align-items: center; }
@media (min-width: 900px) {
  .service { grid-template-columns: 1.08fr 0.92fr; }
  .service--flip .service__media { order: 2; }
}
.service__media { display: grid; grid-template-columns: 1.55fr 1fr; gap: 12px; }
.service__media figure { margin: 0; overflow: hidden; background: var(--ink-3); }
.service__media figure:first-child { grid-row: span 2; }
.service__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.9s var(--ease); }
.service__media figure:first-child img { aspect-ratio: 4 / 5; }
.service__media figure:hover img { transform: scale(1.04); }

.ticks { margin: 26px 0 34px; border-top: 1px solid var(--line); }
.ticks li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 16px; height: 2px; background: var(--blue); }
.on-light .ticks, .on-light .ticks li { border-color: var(--line-dark); }

/* ---------- Photo grid (service pages) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.grid figure { margin: 0; background: var(--ink-3); overflow: hidden; }
.grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.9s var(--ease); }
.grid figure:hover img { transform: scale(1.04); }
.grid figcaption { padding: 14px 16px 16px; font-size: 0.92rem; color: var(--muted); }
.on-light .grid figure { background: var(--white); }
.on-light .grid figcaption { color: var(--muted-dark); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + clamp(70px, 14vh, 150px)) 0 clamp(56px, 9vh, 96px); }
.page-hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8) saturate(0.9); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(10, 13, 17, 0.92) 0%, rgba(10, 13, 17, 0.62) 50%, rgba(10, 13, 17, 0.1) 100%); }
.page-hero .lead { margin-top: 22px; color: #cfdae2; }
.page-hero--plain { background: var(--ink-2); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .contact { grid-template-columns: 0.8fr 1.2fr; } }
.contact__photo { margin: 0; overflow: hidden; max-width: 460px; }
.contact__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
.contact__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 26px 32px; margin: 34px 0 36px; }
.contact__list dt { margin-bottom: 6px; font-size: 0.72rem; font-weight: 700; font-stretch: 125%; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue); }
.contact__list dd { margin: 0; font-size: 1.12rem; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.contact__list a { text-decoration: none; border-bottom: 2px solid rgba(24, 164, 217, 0.5); }
.contact__list a:hover { border-color: var(--blue); }
.on-light .contact__list dt { color: var(--blue-text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.note { margin-top: 28px; padding: 16px 18px; border-left: 3px solid var(--blue); background: var(--ink-3); color: var(--muted); font-size: 0.95rem; max-width: 60ch; }

/* ---------- Footer ---------- */
.site-footer { background: #06080b; border-top: 1px solid var(--line); padding: 54px 0 34px; font-size: 0.94rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 34px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h3 { margin-bottom: 14px; font-size: 0.74rem; letter-spacing: 0.2em; color: var(--white); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer li { margin-bottom: 8px; }
.site-footer .brand { margin-bottom: 16px; }
.site-footer__legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.84rem; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@supports (animation-timeline: scroll()) {
  @media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    .hero__copy { animation: hero-out linear both; animation-timeline: scroll(root); animation-range: 0 70vh; }
    @keyframes hero-out { to { opacity: 0; transform: translateY(-50px); } }
  }
}

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