/* Oakfield Builders rebuilt site
   Palette derived from the original site logo: deep green, mid green, cool grey.
   Type: Fraunces for display, Archivo for headings and navigation, IBM Plex Sans for body.
   Corner radii are deliberately restrained: 3px on controls, 2px on chips. */

@font-face {
  font-family: "Fraunces";
  src: url("../../fonts/fraunces.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../../fonts/archivo.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../../fonts/plex.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../../fonts/plex-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #191d1a;
  --ink-soft: #222824;
  --ink-line: #333b36;
  --green: #1d592d;
  --green-deep: #123820;
  --green-bright: #349f4a;
  --cream: #f3f1ea;
  --cream-dim: #e6e3d9;
  --grey: #a8b3bc;
  --grey-warm: #8d958e;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;

  --r: 3px;
  --r-sm: 2px;
  --shadow: 0 18px 40px rgba(10, 20, 13, 0.22);
  --wrap: 1200px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  font-weight: 400;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.65rem, 3.1vw, 2.5rem);
}

h3 {
  font-size: 1.16rem;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1.1em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 14px;
  display: block;
}

.eyebrow--light {
  color: var(--green-bright);
}

.lede {
  font-size: 1.1rem;
  line-height: 1.72;
  color: #3d453f;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
}

.btn--call {
  background: var(--green);
  color: var(--cream);
}

.btn--call:hover {
  background: var(--green-deep);
}

.btn--email {
  background: transparent;
  color: var(--cream);
  border-color: rgba(243, 241, 234, 0.4);
}

.btn--email:hover {
  border-color: var(--green-bright);
  color: var(--green-bright);
}

.btn--dark {
  background: var(--ink);
  color: var(--cream);
}

.btn--dark:hover {
  background: var(--green);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-line);
}

.btn--ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 60;
  display: flex;
  align-items: center;
  background: rgba(19, 24, 20, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(168, 179, 188, 0.16);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.brand img {
  height: 40px;
  width: auto;
}

.brand small {
  display: block;
  font-family: var(--font-head);
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1.4;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.015em;
  padding: 9px 13px;
  text-decoration: none;
  color: var(--cream-dim);
  border-radius: var(--r-sm);
  transition: color 0.16s ease, background 0.16s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(168, 179, 188, 0.13);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--cream);
  padding: 10px 16px;
  border: 1px solid var(--green-bright);
  border-radius: var(--r);
  transition: background 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.header-phone:hover {
  background: var(--green-bright);
  color: var(--ink);
}

.header-phone svg {
  width: 15px;
  height: 15px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 40px;
  border: 1px solid rgba(168, 179, 188, 0.3);
  border-radius: var(--r);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cream);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--cream);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding: calc(var(--header-h) + 84px) 0 96px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: saturate(0.7);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(103deg, rgba(12, 17, 13, 0.97) 12%, rgba(14, 28, 18, 0.86) 52%, rgba(18, 56, 32, 0.62) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  color: var(--cream);
  max-width: 14ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--green-bright);
}

.hero p {
  font-size: 1.12rem;
  color: #cdd3cd;
  max-width: 48ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 34px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid rgba(168, 179, 188, 0.22);
  padding-top: 24px;
  max-width: 560px;
}

.hero__facts div strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--cream);
  line-height: 1.2;
}

.hero__facts div span {
  font-size: 0.84rem;
  color: var(--grey);
  letter-spacing: 0.02em;
}

.hero__card {
  background: rgba(20, 26, 21, 0.72);
  border: 1px solid rgba(168, 179, 188, 0.2);
  border-left: 3px solid var(--green-bright);
  border-radius: var(--r);
  padding: 30px 28px;
}

.hero__card h3 {
  font-family: var(--font-head);
  color: var(--cream);
  margin-bottom: 4px;
}

.hero__card p {
  font-size: 0.95rem;
  color: var(--grey);
  margin-bottom: 20px;
}

.hero__card dl {
  margin: 0 0 22px;
  display: grid;
  gap: 14px;
}

.hero__card dt {
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-warm);
}

.hero__card dd {
  margin: 2px 0 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--cream);
}

.hero__card dd a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(52, 159, 74, 0.6);
}

.hero__card dd a:hover {
  color: var(--green-bright);
}

/* ---------- Section shells ---------- */

.section {
  padding: 92px 0;
}

.section--tight {
  padding: 68px 0;
}

.section--dark {
  background: var(--ink);
  color: var(--cream-dim);
}

.section--dark h2,
.section--dark h3 {
  color: var(--cream);
}

.section--green {
  background: var(--green-deep);
  color: #cfd9d1;
}

.section--green h2,
.section--green h3 {
  color: var(--cream);
}

.section--cream {
  background: var(--cream-dim);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}

.split--wide {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.section__head {
  max-width: 660px;
  margin-bottom: 52px;
}

.section__head p {
  color: #4a534c;
  margin-bottom: 0;
}

.section--dark .section__head p {
  color: var(--grey);
}

.section--green .section__head p {
  color: #a9bdb0;
}

/* ---------- Media frame ---------- */

.frame {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--ink-soft);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame--tall {
  aspect-ratio: 4 / 5;
}

.frame--wide {
  aspect-ratio: 16 / 10;
}

.frame--square {
  aspect-ratio: 1 / 1;
}

.frame__tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(19, 24, 20, 0.86);
  color: var(--cream);
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  letter-spacing: 0.03em;
}

/* ---------- Service cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid #dcd8cc;
  border-top: 3px solid var(--green);
  border-radius: var(--r);
  padding: 30px 26px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(18, 30, 22, 0.12);
  border-top-color: var(--green-bright);
}

.card__num {
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--green-bright);
  margin-bottom: 14px;
  display: block;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 0.97rem;
  color: #4f5851;
  margin-bottom: 0;
}

.section--dark .card {
  background: var(--ink-soft);
  border-color: var(--ink-line);
  border-top-color: var(--green-bright);
}

.section--dark .card p {
  color: var(--grey);
}

/* ---------- Project grid ---------- */

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--ink-soft);
  text-decoration: none;
  color: var(--cream);
  aspect-ratio: 4 / 3;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.project:hover img {
  transform: scale(1.06);
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 16, 12, 0.92) 4%, rgba(10, 16, 12, 0.32) 42%, rgba(10, 16, 12, 0) 72%);
}

.project__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 22px 22px 20px;
}

.project__type {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-bright);
  display: block;
  margin-bottom: 7px;
}

.project__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.03rem;
  line-height: 1.35;
  color: var(--cream);
  margin: 0;
}

.project__more {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--grey);
  margin-top: 8px;
  display: block;
}

/* ---------- Credentials strip ---------- */

.creds {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  border-radius: var(--r);
  overflow: hidden;
}

.cred {
  background: var(--ink-soft);
  padding: 28px 24px;
}

.cred strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--cream);
  margin-bottom: 5px;
}

.cred span {
  font-size: 0.87rem;
  color: var(--grey);
  line-height: 1.5;
}

/* ---------- Process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 30px;
  border-top: 1px solid var(--ink-line);
}

.section--dark .step {
  border-top-color: var(--ink-line);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--green-bright);
  display: block;
  margin-bottom: 12px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  font-size: 0.95rem;
  color: var(--grey);
  margin: 0;
}

/* ---------- Quote list / detail list ---------- */

.detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.detail-list div {
  display: flex;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid #ddd9cd;
}

.detail-list div:first-child {
  border-top: 1px solid #ddd9cd;
}

.detail-list dt {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey-warm);
  width: 150px;
  flex: none;
  padding-top: 3px;
}

.detail-list dd {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

.detail-list h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey-warm);
  width: 150px;
  flex: none;
  margin: 0;
  padding-top: 4px;
}

.detail-list div p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

.detail-list div p a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 89, 45, 0.35);
}

.detail-list div p a:hover {
  color: var(--green-bright);
  border-bottom-color: var(--green-bright);
}

.detail-list dd a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 89, 45, 0.35);
}

.detail-list dd a:hover {
  color: var(--green-bright);
  border-bottom-color: var(--green-bright);
}

/* ---------- CTA band ---------- */

.cta {
  background: var(--green-deep);
  color: var(--cream);
  padding: 64px 0;
}

.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}

.cta h2 {
  color: var(--cream);
  margin: 0 0 6px;
}

.cta p {
  color: #a9bdb0;
  margin: 0;
  max-width: 52ch;
}

.cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Gallery ---------- */

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 16px;
  border: 1px solid var(--ink-line);
  border-radius: var(--r);
  background: transparent;
  color: #4a534c;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter:hover {
  border-color: var(--green);
  color: var(--green);
}

.filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.gallery {
  columns: 3;
  column-gap: 18px;
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: 18px;
  border: 0;
  padding: 0;
  background: var(--ink-soft);
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  width: 100%;
  display: block;
  text-align: left;
}

.gallery__item img {
  width: 100%;
  height: auto;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.25s ease;
}

.gallery__item:hover img {
  transform: scale(1.04);
}

.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 18px 15px;
  background: linear-gradient(to top, rgba(10, 16, 12, 0.9), rgba(10, 16, 12, 0));
  color: var(--cream);
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.gallery__item:hover figcaption,
.gallery__item:focus-visible figcaption {
  opacity: 1;
  transform: translateY(0);
}

.gallery__item.is-hidden {
  display: none;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(9, 12, 10, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__stage {
  position: relative;
  max-width: 1180px;
  width: 100%;
}

.lightbox__stage img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: var(--ink);
  border-radius: var(--r);
}

.lightbox__caption {
  color: var(--grey);
  font-size: 0.92rem;
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-head);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(243, 241, 234, 0.1);
  border: 1px solid rgba(168, 179, 188, 0.3);
  color: var(--cream);
  border-radius: var(--r);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--green);
}

.lightbox__close {
  top: -46px;
  right: 0;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  font-size: 1.4rem;
}

.lightbox__nav--prev {
  left: -56px;
}

.lightbox__nav--next {
  right: -56px;
}

/* ---------- Forms ---------- */

.form {
  display: grid;
  gap: 16px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey-warm);
  margin-bottom: 7px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 13px 14px;
  border: 1px solid #d5d1c4;
  border-radius: var(--r);
  background: var(--white);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29, 89, 45, 0.12);
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

.form__note {
  font-size: 0.86rem;
  color: var(--grey-warm);
  margin: 0;
}

.form__status {
  font-family: var(--font-head);
  font-size: 0.92rem;
  color: var(--green);
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--grey);
  padding: 60px 0 30px;
  font-size: 0.93rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--ink-line);
}

.site-footer h4 {
  color: var(--cream);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.site-footer a {
  color: var(--grey);
  text-decoration: none;
  transition: color 0.16s ease;
}

.site-footer a:hover {
  color: var(--green-bright);
}

.footer__bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #6f7970;
}

.footer__bottom img {
  height: 38px;
  opacity: 0.9;
  filter: grayscale(1) brightness(1.7);
}

/* ---------- Mobile call bar ---------- */

.callbar {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 70;
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
  padding: 9px 12px;
  gap: 8px;
}

.callbar a {
  flex: 1;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px;
  border-radius: var(--r);
  text-decoration: none;
}

.callbar a:first-child {
  background: var(--green);
  color: var(--cream);
}

.callbar a:last-child {
  border: 1px solid rgba(168, 179, 188, 0.35);
  color: var(--cream);
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__card {
    max-width: 520px;
  }
  .split,
  .split--wide {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .cards,
  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 26px;
  }
  .creds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery {
    columns: 2;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .lightbox__nav--prev {
    left: 0;
  }
  .lightbox__nav--next {
    right: 0;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 66px;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 24px 22px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav a {
    padding: 13px 12px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(168, 179, 188, 0.12);
  }
  .nav-toggle {
    display: flex;
  }
  .header-phone {
    margin-left: auto;
    padding: 9px 12px;
    font-size: 0.9rem;
  }
  .header-phone span {
    display: none;
  }
  .brand small {
    display: none;
  }
  .callbar {
    display: flex;
  }
  body {
    padding-bottom: 62px;
  }
  .section {
    padding: 66px 0;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 18px;
  }
  .cards,
  .projects,
  .steps,
  .creds {
    grid-template-columns: 1fr;
  }
  .gallery {
    columns: 1;
  }
  .hero__facts {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hero__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .detail-list div {
    flex-direction: column;
    gap: 4px;
  }
  .detail-list dt,
  .detail-list h3 {
    width: auto;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .cta__actions {
    width: 100%;
  }
  .cta__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}
