/* ============================================================
   GCA Projects — gardening & design
   Palette from the company's own materials: graphite (anthracite
   porcelain), limestone, silver (logo metal), moss, oak timber.
   Committed dark brand look; photography carries the color.
   ============================================================ */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/instrument-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/instrument-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/instrument-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #17191c;          /* graphite ground */
  --ink-deep: #101214;     /* footer */
  --surface: #22262a;      /* basalt cards */
  --paper: #ece9e2;        /* limestone light sections */
  --paper-soft: #e2ded4;
  --silver: #b8bec5;       /* logo metal */
  --text: #dfe2e6;         /* body text on dark */
  --text-dim: #9aa1a8;
  --ink-on-paper: #24272b;
  --dim-on-paper: #5d6167;
  --moss: #7d9163;         /* living accent */
  --moss-deep: #5b6e46;
  --oak: #c99f68;          /* timber accent, sparing */
  --line: rgba(184, 190, 197, 0.16);
  --line-paper: rgba(36, 39, 43, 0.14);
  --seam: 4.5vw;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

/* ---------- shared bits ---------- */

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oak);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 11px; height: 10px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 50% 100%);  /* the logo's inverted triangle */
  flex: none;
}

.section { padding: clamp(72px, 9vw, 128px) 0; scroll-margin-top: 68px; }
.section-dark { background: var(--ink); }
.section-light { background: var(--paper); color: var(--ink-on-paper); }

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 14px 0 10px;
  color: #f2f3f5;
}
.section-light .section-title { color: var(--ink-on-paper); }

.section-sub {
  color: var(--text-dim);
  max-width: 56ch;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-light .section-sub { color: var(--dim-on-paper); }

/* oak is too light on limestone — darker timber tone on light surfaces */
.section-light .eyebrow,
.modal-panel .eyebrow,
.modal-panel .proj-tag { color: #7d5f36; }

/* angled seams echoing the monogram's slopes */
.seam { height: var(--seam); position: relative; z-index: 1; }
.seam-to-light { background: var(--ink); clip-path: none; }
.seam-to-light::after {
  content: ""; position: absolute; inset: 0;
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.seam-to-dark { background: var(--paper); }
.seam-to-dark::after {
  content: ""; position: absolute; inset: 0;
  background: var(--ink);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 13px 26px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-moss { background: var(--moss-deep); color: #f2f4ee; }
.btn-moss:hover { background: var(--moss); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(23, 25, 28, 0.35); }
.btn-ghost:hover { border-color: var(--silver); }
.btn-big { width: 100%; padding: 16px 26px; font-size: 1.02rem; }

/* ---------- topbar ---------- */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 0 clamp(16px, 3vw, 40px);
  height: 68px;
  background: linear-gradient(rgba(16, 18, 20, 0.92), rgba(16, 18, 20, 0.86));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark { width: 38px; height: 28px; color: var(--silver); }
.brand-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.14em;
  color: #eef0f2;
}
.brand-word em {
  font-style: normal;
  font-weight: 500;
  color: var(--silver);
  margin-left: 7px;
  letter-spacing: 0.14em;
}

.mainnav { display: flex; gap: clamp(14px, 2vw, 26px); }
.mainnav a {
  font-size: 0.92rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.mainnav a:hover { color: #fff; border-color: var(--oak); }

.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-cta { padding: 9px 18px; font-size: 0.88rem; }

.langswitch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.langswitch button {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  background: transparent;
  color: var(--text-dim);
  border: none;
  padding: 7px 11px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.langswitch button[aria-pressed="true"] {
  background: var(--silver);
  color: var(--ink);
}
.langswitch button:not([aria-pressed="true"]):hover { color: #fff; }

.navtoggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  padding: 0 10px;
}
.navtoggle span { display: block; height: 2px; background: var(--silver); transition: transform 0.2s, opacity 0.2s; }
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobilenav[hidden] { display: none; }
.mobilenav {
  position: fixed;
  top: 68px; left: 0; right: 0;
  z-index: 39;
  background: rgba(16, 18, 20, 0.97);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 10px 24px 20px;
}
.mobilenav a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.mobilenav a:last-child { border-bottom: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 45%;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 25, 28, 0.55) 0%, rgba(23, 25, 28, 0.1) 34%, rgba(23, 25, 28, 0.82) 78%, var(--ink) 100%),
    linear-gradient(100deg, rgba(23, 25, 28, 0.55) 0%, rgba(23, 25, 28, 0) 55%);
}
.hero-watermark {
  position: absolute;
  right: -6vw;
  top: 10vh;
  width: clamp(300px, 38vw, 560px);
  height: auto;
  aspect-ratio: 1252 / 892;
  color: var(--silver);
  opacity: 0.1;
  filter: drop-shadow(0 0 1px rgba(184, 190, 197, 0.4));
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 140px clamp(20px, 4vw, 48px) clamp(40px, 6vh, 72px);
}
.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6.4vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: #f4f5f6;
  max-width: 21ch;
  margin: 18px 0 20px;
}
.hero-sub {
  max-width: 52ch;
  color: #c9cdd2;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  margin-bottom: 30px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(32px, 5vh, 56px); }

.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 0.88rem;
  color: var(--silver);
}
.trust a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.trust a:hover { border-color: var(--oak); }
.trust .star { color: var(--oak); }

/* hero load moment */
.hero .eyebrow, .hero-title, .hero-sub, .hero-ctas, .hero .trust {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-rise 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
.hero-title { animation-delay: 0.1s; }
.hero-sub { animation-delay: 0.2s; }
.hero-ctas { animation-delay: 0.3s; }
.hero .trust { animation-delay: 0.45s; }
.hero-watermark { opacity: 0; animation: mark-in 1.4s ease 0.5s forwards; }

@keyframes hero-rise { to { opacity: 1; transform: none; } }
@keyframes mark-in { to { opacity: 0.1; } }

/* ---------- scroll reveal ---------- */

/* reveal styles only apply when JS is running (html.js set by app.js) */
.js .rev { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.6, 0.2, 1); }
.js .rev.in { opacity: 1; transform: none; }

/* ---------- services ---------- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.svc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.svc-card:hover { transform: translateY(-5px); border-color: rgba(184, 190, 197, 0.42); }
.svc-card .ph { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.svc-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.svc-card:hover .ph img { transform: scale(1.045); }
.svc-card .ph::after {
  /* angular wipe echoing the monogram */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(125, 145, 99, 0.28), rgba(23, 25, 28, 0));
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 0.45s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.svc-card:hover .ph::after { clip-path: polygon(0 0, 55% 0, 25% 100%, 0 100%); }
.svc-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  color: #eef0f2;
  padding: 18px 20px 6px;
}
.svc-card p { padding: 0 20px 22px; font-size: 0.95rem; color: var(--text-dim); }

/* ---------- projects ---------- */

.proj-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.proj-card {
  position: relative;
  grid-column: span 2;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 5;
  background: var(--ink);
}
.proj-card.is-wide { grid-column: span 4; aspect-ratio: 16 / 9.5; }
.proj-card.is-tall { grid-column: span 2; aspect-ratio: auto; }
.proj-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.proj-card:hover img, .proj-card:focus-visible img { transform: scale(1.04); }
.proj-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(185deg, rgba(23, 25, 28, 0) 40%, rgba(23, 25, 28, 0.88) 88%);
}
.proj-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 22px 24px;
  color: #eef0f2;
}
.proj-tag {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oak);
  margin-bottom: 6px;
}
.proj-meta h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.15;
  text-wrap: balance;
}
.proj-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--silver);
  border-bottom: 1px solid var(--oak);
  padding-bottom: 2px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.proj-card:hover .proj-more, .proj-card:focus-visible .proj-more { opacity: 1; transform: none; }

/* ---------- process ---------- */

.proc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: clamp(28px, 4vw, 48px);
}
.proc-step { display: flex; flex-direction: column; }
.proc-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--oak);
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.proc-step h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  color: #eef0f2;
  margin-bottom: 8px;
}
.proc-step p { font-size: 0.94rem; color: var(--text-dim); margin-bottom: 16px; }
.proc-step img {
  margin-top: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
  border-radius: 3px;
  border: 1px solid var(--line);
  filter: saturate(0.88);
}

/* ---------- reviews ---------- */

.rev-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.rev-badge {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 18px;
  transition: border-color 0.2s;
}
.rev-badge:hover { border-color: var(--oak); }
.rev-badge strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  color: #f2f3f5;
  font-variant-numeric: tabular-nums;
}
.rev-badge strong span { font-size: 1rem; color: var(--text-dim); font-weight: 600; }
.rev-badge .stars { color: var(--oak); letter-spacing: 2px; font-size: 0.85rem; }

.rev-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.rev-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
}
.rev-card blockquote {
  font-style: italic;
  color: var(--text);
  font-size: 0.98rem;
  margin-bottom: 18px;
}
.rev-card figcaption {
  margin-top: auto;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
}
.rev-note { margin-top: 18px; font-size: 0.82rem; color: var(--text-dim); }

/* ---------- about ---------- */

.about-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-text p { margin-bottom: 16px; max-width: 58ch; }
.about-text p:first-of-type { color: var(--text); }
.area-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.area-chips li {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--silver);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}
.about-photo img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 4px;
  /* clipped corner echoing the monogram's slope */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 64px), calc(100% - 64px) 100%, 0 100%);
}

/* ---------- contact ---------- */

.section-contact { padding-bottom: clamp(80px, 10vw, 140px); }
.contact-cols {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.contact-actions { display: flex; flex-direction: column; gap: 14px; }
.contact-addr {
  font-style: normal;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  padding-top: 14px;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
}
.contact-form input, .contact-form textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--text);
  background: var(--ink);
  border: 1px solid rgba(184, 190, 197, 0.38);
  border-radius: 3px;
  padding: 12px 14px;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--moss);
}
.form-hint { font-size: 0.83rem; color: var(--text-dim); }

/* ---------- footer ---------- */

.footer {
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
  padding: clamp(40px, 5vw, 64px) 0 28px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand .brand-mark { width: 46px; height: 34px; }
.footer-brand strong {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #eef0f2;
}
.footer-brand span { color: var(--text-dim); font-size: 0.85rem; }
.footer-col { display: flex; flex-direction: column; gap: 8px; color: var(--text-dim); }
.footer-col a { color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--oak); }
.footer-legal {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin: 0 clamp(20px, 4vw, 48px);
}

/* ---------- case modal ---------- */

.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(16, 18, 20, 0.9); }
.modal-panel {
  position: relative;
  z-index: 2;
  background: var(--paper);
  color: var(--ink-on-paper);
  width: min(960px, 100%);
  max-height: min(88vh, 100%);
  overflow-y: auto;
  border-radius: 6px;
  padding: clamp(24px, 4vw, 44px);
}
.modal-close, .zoom-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 42px; height: 42px;
  font-size: 1.5rem;
  line-height: 1;
  background: var(--ink);
  color: var(--silver);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  z-index: 3;
}
.modal-close:hover, .zoom-close:hover { color: #fff; }
.modal-panel .proj-tag { margin-bottom: 4px; }
.modal-panel h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 12px;
  text-wrap: balance;
  padding-right: 48px;
}
.modal-body { color: #43474d; max-width: 62ch; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chips span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--paper-soft);
  border: 1px solid var(--line-paper);
  border-radius: 999px;
  padding: 5px 13px;
  color: #43474d;
}
.modal-gallery { display: flex; flex-direction: column; gap: 26px; }
.mg-group h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss-deep);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.mg-group h4::after { content: ""; flex: 1; height: 1px; background: var(--line-paper); }
.mg-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.mg-row img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 3px;
  cursor: zoom-in;
}

/* ---------- zoom overlay ---------- */

.zoom {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(16, 18, 20, 0.96);
  display: flex; align-items: center; justify-content: center;
  padding: 3vh 3vw;
  cursor: zoom-out;
}
.zoom[hidden] { display: none; }
.zoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 3px; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .mainnav { display: none; }
  .navtoggle { display: flex; }
  /* without JS the hamburger can't work — keep the inline nav (wrapping) instead */
  html:not(.js) .mainnav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  html:not(.js) .navtoggle { display: none; }
  .rev-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 26px; }
}

@media (max-width: 860px) {
  .topbar-cta { display: none; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: 1fr 1fr; }
  .proj-card, .proj-card.is-wide, .proj-card.is-tall { grid-column: span 2; aspect-ratio: 4 / 3; }
  .about-wrap { grid-template-columns: 1fr; }
  .contact-cols { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-watermark { width: 52vw; right: -14vw; top: 6vh; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .svc-grid { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: 1fr; }
  .rev-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 110px; }
  .trust { flex-direction: column; gap: 8px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .eyebrow, .hero-title, .hero-sub, .hero-ctas, .hero .trust, .hero-watermark {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .hero-watermark { opacity: 0.1; }
  .js .rev { opacity: 1; transform: none; transition: none; }
  .svc-card, .svc-card .ph img, .svc-card .ph::after, .proj-card img, .btn { transition: none; }
}
