/* ==========================================================
   Marast General Mechanics — site styles
   ========================================================== */
:root {
  --ink: #0c1218;
  --ink-2: #141d26;
  --ink-3: #1d2833;
  --steel: #5b6b7a;
  --steel-2: #8a99a7;
  --line: #e3e7eb;
  --paper: #ffffff;
  --paper-2: #f4f6f8;
  --text: #1a232c;
  --muted: #5a6773;
  --accent: #e8891c;      /* furnace amber */
  --accent-2: #ffb347;
  --accent-ink: #1a1006;
  --radius: 14px;
  --shadow: 0 18px 50px -20px rgba(12, 18, 24, .35);
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; text-transform: uppercase; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--head); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase;
  padding: 15px 28px; border-radius: 999px; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px rgba(232, 137, 28, .7); }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.more-wrap { text-align: center; margin-top: 36px; }
.more-wrap[hidden] { display: none; }
.btn-sm { padding: 10px 20px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled { background: rgba(12, 18, 24, .88); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--head); font-size: 1.5rem; letter-spacing: .14em; }
.brand-text small { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--steel-2); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) {
  color: rgba(255,255,255,.85); text-decoration: none; font-weight: 500; font-size: .98rem; position: relative; padding: 6px 0;
}
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); transition: width .25s; }
.nav a:not(.btn):hover, .nav a.active { color: #fff; }
.nav a:not(.btn):hover::after, .nav a.active::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 12px 16px 24px; border-top: 1px solid rgba(255,255,255,.08);
    transform: translateY(-120%); transition: transform .35s ease; visibility: hidden;
  }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 1.1rem; }
  .nav .btn { margin-top: 16px; }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav-open .site-header { background: var(--ink); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 140px 0 40px; isolation: isolate; overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12,18,24,.94) 0%, rgba(12,18,24,.72) 45%, rgba(12,18,24,.25) 100%),
    linear-gradient(0deg, rgba(12,18,24,1) 0%, rgba(12,18,24,0) 40%),
    url("img/hero-boiler-room.jpg") center / cover no-repeat;
  transform: scale(1.06); animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-inner { max-width: var(--wrap); padding-bottom: 56px; }
.hero h1 {
  font-size: clamp(2.6rem, 6.6vw, 5.2rem); font-weight: 800; text-transform: uppercase; max-width: 15ch; margin-bottom: .35em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 58ch; color: rgba(255,255,255,.82); margin-bottom: 2em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; font-weight: 600;
  color: var(--accent-2); margin-bottom: 1.4em; padding: 8px 16px; border: 1px solid rgba(255,179,71,.35); border-radius: 999px; background: rgba(232,137,28,.08);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(232,137,28,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(232,137,28,0); } 100% { box-shadow: 0 0 0 0 rgba(232,137,28,0); } }

.stats {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.14);
}
.stats li { padding: 26px 20px 6px 0; }
.stats li + li { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.1); }
.stats strong { display: block; font-family: var(--head); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1; color: #fff; }
.stats span:not([data-count]) { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--steel-2); }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li, .stats li + li { padding: 18px 0 8px; border-left: 0; }
  .stats li:nth-child(even) { padding-left: 18px; border-left: 1px solid rgba(255,255,255,.1); }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--accent); color: var(--accent-ink); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; width: max-content; animation: scroll 50s linear infinite; }
.marquee span {
  font-family: var(--head); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; padding: 0 28px; position: relative;
}
.marquee span::after { content: "✦"; position: absolute; right: -8px; opacity: .55; font-size: .8em; top: 50%; transform: translateY(-50%); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-dark { background: var(--ink); color: #dfe5ea; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-tint { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p:last-child { color: var(--steel-2); }
.kicker {
  font-family: var(--head); font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); font-size: .95rem;
  display: flex; align-items: center; gap: 12px; margin-bottom: .9em;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: currentColor; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-media { position: relative; padding: 0 12% 14% 0; }
.about-media > img:first-child { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about-media .inset {
  position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius);
  border: 6px solid var(--paper); box-shadow: var(--shadow);
}
.badge-years {
  position: absolute; left: -18px; top: 28px; background: var(--ink); color: #fff; padding: 18px 22px; border-radius: 12px; box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
.badge-years strong { font-family: var(--head); font-size: 2.6rem; line-height: 1; display: block; color: var(--accent); }
.badge-years span { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--steel-2); line-height: 1.35; display: block; }
.about-copy > p { color: var(--muted); }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.vm article { background: var(--paper-2); border-radius: var(--radius); padding: 24px; border-top: 3px solid var(--accent); }
.vm h3 { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .06em; }
.vm p { font-size: .95rem; color: var(--muted); margin: 0; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(56px, 8vw, 96px); }
.values article { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, transform .25s, box-shadow .25s; }
.values article:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.values svg { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.values h3 { font-size: 1.25rem; }
.values p { font-size: .95rem; color: var(--muted); margin: 0; }

@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
  .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .vm, .values { grid-template-columns: 1fr; }
  .badge-years { left: 8px; top: 12px; padding: 12px 16px; }
  .badge-years strong { font-size: 2rem; }
}

/* ---------- Capabilities ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  background: var(--ink-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s, border-color .3s;
}
.pillar:hover { transform: translateY(-6px); border-color: rgba(232,137,28,.5); }
.pillar-img { aspect-ratio: 16/10; overflow: hidden; }
.pillar-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pillar:hover .pillar-img img { transform: scale(1.06); }
.pillar-body { padding: 28px 26px 30px; position: relative; }
.pillar-num {
  position: absolute; top: -34px; right: 22px; font-family: var(--head); font-weight: 800; font-size: 3.4rem; line-height: 1;
  color: var(--accent); text-shadow: 0 4px 20px rgba(0,0,0,.6);
}
.pillar h3 { font-size: 1.65rem; text-transform: uppercase; }
.pillar ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pillar li { font-size: .95rem; color: var(--steel-2); padding-left: 18px; position: relative; }
.pillar li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.pillar li b { color: #fff; font-weight: 600; }
@media (max-width: 980px) { .pillars { grid-template-columns: 1fr; max-width: 640px; } }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: start; }
.services-col h3 { font-size: 1.5rem; text-transform: uppercase; padding-bottom: 14px; border-bottom: 2px solid var(--ink); margin-bottom: 8px; }
.svc-list { margin: 0; }
.svc-list > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.svc-list dt { font-weight: 600; font-size: 1.05rem; margin-bottom: 2px; display: flex; align-items: center; gap: 10px; }
.svc-list dt::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex: none; }
.svc-list dd { margin: 0 0 0 18px; color: var(--muted); font-size: .95rem; }
.services-figure { margin: 0; position: sticky; top: 100px; }
.services-figure img { border-radius: var(--radius); aspect-ratio: 3/4; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.services-figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-figure { grid-column: 1 / -1; position: static; order: -1; }
  .services-figure img { aspect-ratio: 16/9; }
}
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.process {
  list-style: none; padding: 0; margin: clamp(56px, 8vw, 88px) 0 0; display: grid; grid-template-columns: repeat(5, 1fr);
  counter-reset: step; position: relative;
}
.process::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 18px); }
.process li { text-align: center; padding: 0 10px; position: relative; }
.process li > span {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; position: relative;
  background: var(--ink); color: var(--accent); font-family: var(--head); font-size: 1.5rem; font-weight: 700; box-shadow: 0 0 0 8px var(--paper);
}
.process h4 { font-size: 1.3rem; text-transform: uppercase; margin-bottom: 4px; }
.process p { font-size: .9rem; color: var(--muted); margin: 0; }
@media (max-width: 760px) {
  .process { grid-template-columns: 1fr; gap: 22px; }
  .process::before { left: 27px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--accent) 0 10px, transparent 10px 18px); }
  .process li { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: left; padding: 0; }
  .process li > span { grid-row: span 2; margin: 0; }
  .process h4 { align-self: end; }
}

/* ---------- Quality ---------- */
.quality { position: relative; color: #fff; padding: clamp(80px, 11vw, 140px) 0; isolation: isolate; overflow: hidden; }
.quality-bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(12,18,24,.95) 30%, rgba(12,18,24,.7)), url("img/tank-interior.jpg") center / cover fixed;
}
@media (hover: none) { .quality-bg { background-attachment: scroll; } }
.quality-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.quality h2 { margin: 0; }
.quality-points { display: grid; gap: 20px; }
.quality-points article { padding: 26px 28px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.quality-points h3 { color: var(--accent-2); text-transform: uppercase; font-size: 1.3rem; letter-spacing: .04em; }
.quality-points p { color: #c8d0d7; margin: 0; }
.quality-points strong { color: #fff; }
@media (max-width: 860px) { .quality-inner { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  font: 600 .92rem var(--body); padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  color: var(--text); cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.project-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
@media (max-width: 380px) { .project-list { grid-template-columns: 1fr; } }
.project {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--paper);
  display: flex; flex-direction: column; gap: 10px; transition: border-color .25s, box-shadow .25s, transform .25s;
  animation: fadeUp .45s both;
}
.project:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.project-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tag { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.status { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #1f8a4c; background: #e7f6ed; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.project h3 { font-size: 1.35rem; margin: 0; }
.project p { color: var(--muted); font-size: .94rem; margin: 0; flex: 1; }
.project-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--text); padding-top: 12px; border-top: 1px dashed var(--line); }
.project-meta span { display: inline-flex; align-items: center; gap: 6px; }
.project-meta svg { width: 15px; height: 15px; fill: none; stroke: var(--steel); stroke-width: 2; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; grid-auto-flow: dense; }
.gallery a { position: relative; overflow: hidden; border-radius: 10px; display: block; background: var(--line); }
.gallery a.g-wide { grid-column: span 2; }
.gallery a.g-tall { grid-row: span 2; }
.section-tint .gallery a { background: #fff; }
.gallery a.g-fit img { object-fit: contain; padding: 10px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .4s; }
.gallery a::after {
  content: attr(data-caption); position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; color: #fff; font-size: .9rem; font-weight: 500;
  background: linear-gradient(transparent, rgba(12,18,24,.85)); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.gallery a:hover img { transform: scale(1.07); }
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; transform: none; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } .gallery a.g-tall { grid-row: span 1; } }
@media (max-width: 480px) { .gallery { grid-auto-rows: 140px; gap: 8px; } }

/* ---------- Support ---------- */
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.support-card { padding: 32px 28px; border-radius: var(--radius); background: var(--paper-2); position: relative; overflow: hidden; }
.support-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .35s; }
.support-card:hover::before { transform: scaleY(1); }
.support-card h3 { text-transform: uppercase; font-size: 1.4rem; }
.support-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.support-card li { color: var(--muted); font-size: .95rem; }
.support-card li b { color: var(--text); display: block; }
@media (max-width: 900px) { .support-grid { grid-template-columns: 1fr; max-width: 640px; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { margin: 0; padding: 34px 30px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgba(255,255,255,.07); display: flex; flex-direction: column; position: relative; }
.quote::before { content: "“"; font-family: Georgia, serif; font-size: 6rem; line-height: .7; color: var(--accent); opacity: .9; height: 46px; }
.quote blockquote { margin: 0 0 24px; font-size: 1.05rem; color: #e6ebef; flex: 1; }
.quote figcaption strong { display: block; color: #fff; font-family: var(--head); font-size: 1.25rem; letter-spacing: .02em; }
.quote figcaption span { font-size: .85rem; color: var(--steel-2); }
@media (max-width: 980px) { .quotes { grid-template-columns: 1fr; max-width: 680px; } }

.clients { margin-top: 64px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; }
.clients p { font-size: .8rem; text-transform: uppercase; letter-spacing: .24em; color: var(--steel-2); }
.clients ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.clients li { font-family: var(--head); font-weight: 600; font-size: 1.1rem; letter-spacing: .04em; color: #c5ced6; padding: 8px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-info > p { color: var(--muted); font-size: 1.08rem; }
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list svg { width: 48px; height: 48px; padding: 12px; border-radius: 12px; background: var(--ink); stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.contact-list span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 2px; }
.contact-list a, .contact-list p { display: block; font-size: 1.12rem; font-weight: 600; color: var(--text); text-decoration: none; margin: 0; }
.contact-list a:hover { color: var(--accent); }

.contact-form { background: var(--paper-2); border-radius: 18px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 400 1rem var(--body); color: var(--text); padding: 14px 16px; border-radius: 10px; border: 1px solid #d5dbe1; background: #fff;
  transition: border-color .2s, box-shadow .2s; width: 100%; text-transform: none; letter-spacing: 0;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(232,137,28,.18); }
.contact-form .invalid { border-color: #d64545; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; text-align: center; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.map { margin-top: 64px; }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); filter: grayscale(.4) contrast(1.05); display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--steel-2); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-tag { margin-top: 18px; max-width: 32ch; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer nav a, .footer-grid > div > a:not(.brand) { display: block; text-decoration: none; padding: 4px 0; font-size: .95rem; transition: color .2s; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,12,16,.94); display: grid; place-items: center; padding: 40px 16px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); text-align: center; }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: #cfd6dc; margin-top: 14px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; transition: background .2s; }
.lightbox button:hover { background: var(--accent); color: var(--ink); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.2rem; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s; z-index: 40;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
