/* Cebu Machine Shop - public site
   Dark shop-floor palette, amber accent, Archivo headings. */

/* Dark is the default: it is the brand's own look and what most visitors
   arrive to. The light theme is a designed counterpart, not an inversion -
   warm paper rather than flat white, with a deeper amber so links and
   small text keep their contrast against a pale background. */
:root {
  --bg:        #0b0b0c;
  --surface:   #141416;
  --surface-2: #1b1b1f;
  --line:      #2a2a30;
  --line-soft: #202026;
  --text:      #f4f4f3;
  --muted:     #9b9ba4;
  --muted-dim: #6d6d76;

  --amber:      #f5a524;  /* fills: buttons, active chips */
  --amber-text: #f5a524;  /* links and small text on the page background */
  --amber-ink:  #1a1205;  /* text sitting on an amber fill */

  --head-bg:   rgba(11, 11, 12, 0.92);
  --nav-bg:    #101012;
  --foot-bg:   #08080a;
  --shadow:    none;

  /* Isometric service diagrams. Amber is the moving part, grey the structure. */
  --dg-ground:      #131318;
  --dg-ground-line: #212129;
  --dg-wall:        #1b1b21;
  --dg-walltop:     #24242c;
  --dg-wall-line:   #2f2f39;
  --dg-part:        #22222a;
  --dg-parttop:     #2c2c36;
  --dg-part-line:   #4b4b58;
  --dg-move:        #2a2417;
  --dg-movetop:     #3a3120;
  --dg-bar:         #3b3222;
  --dg-move-line:   #f5a524;

  /* The page wrapper. It fills the screen up to 2560px, then stops and
     centres, so a 4K monitor doesn't stretch the gallery ten across. The
     side margin grows with the screen: 22px on a phone, 72px on a laptop,
     96px at 1920, 128px from 2560 up. */
  --wrap: 2560px;
  --gutter: clamp(22px, 5vw, 128px);
  --r-lg: 16px;
  --r-md: 10px;
  --r-sm: 6px;

  --h-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --h-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Light is opt-in: a visitor gets it by pressing the button in the header,
   and the choice is remembered from then on. */
:root[data-theme="light"] {
  --bg:        #f6f5f3;
  --surface:   #ffffff;
  --surface-2: #edebe7;
  --line:      #d8d4cd;
  --line-soft: #e6e3dd;
  --text:      #17181a;
  --muted:     #5c6166;
  --muted-dim: #7e838a;

  --amber:      #f0990d;
  --amber-text: #94590a;
  --amber-ink:  #1a1205;

  --head-bg:   rgba(246, 245, 243, 0.92);
  --nav-bg:    #ffffff;
  --foot-bg:   #edebe7;
  --shadow:    0 1px 2px rgba(23, 24, 26, 0.05);

  --dg-ground:      #e9e6e0;
  --dg-ground-line: #d3cec5;
  --dg-wall:        #dedad2;
  --dg-walltop:     #efece6;
  --dg-wall-line:   #bdb7ac;
  --dg-part:        #d5d0c6;
  --dg-parttop:     #e7e3da;
  --dg-part-line:   #928c80;
  --dg-move:        #fbe9c6;
  --dg-movetop:     #fdf3de;
  --dg-bar:         #f8dfae;
  --dg-move-line:   #a6660a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--h-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Photos fade in as they arrive instead of snapping into place. The
   .img-fade class is put on <html> by a script in the head, so if that
   never runs the images just show normally. */
:root.img-fade .fade-img { opacity: 0; transition: opacity 0.45s ease; }
:root.img-fade .fade-img.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  :root.img-fade .fade-img { opacity: 1; transition: none; }
}
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--h-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0;
}

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

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.sr-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--amber); color: var(--amber-ink); padding: 10px 16px;
}
.skip:focus { left: 12px; top: 12px; }

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

/* ---------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--head-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.head-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo {
  height: 44px; width: auto; max-width: 230px; flex: none;
  object-fit: contain;
}
/* How the logo copes with the light theme. Set in the admin panel, because
   which one looks right depends entirely on how the logo is drawn. */

/* "file": two logo files, show whichever suits the theme. */
.for-light { display: none; }
:root[data-theme="light"] .for-light { display: block; }
:root[data-theme="light"] .for-dark { display: none; }

/* "plate": sit the logo on a small dark panel, so a white logo still reads. */
:root[data-theme="light"] .logo-plate,
.logo-plate-always {
  background: #17181a;
  padding: 5px 9px;
  border-radius: 9px;
  box-sizing: content-box;
}

/* "invert": flip the logo's colours. Suits a plain white or black mark. */
:root[data-theme="light"] .logo-invert,
.logo-invert-always { filter: invert(1) hue-rotate(180deg); }

/* Drawn mark, used only if no logo file is set. */
.brand-mark {
  width: 26px; height: 26px; flex: none; border-radius: 4px;
  background:
    linear-gradient(135deg, var(--amber) 0 48%, transparent 48% 52%, var(--amber) 52% 100%);
}
.foot-logo { height: 40px; width: auto; max-width: 190px; object-fit: contain; }
.brand-text strong {
  display: block; font-family: var(--h-display); font-size: 17px;
  font-weight: 700; letter-spacing: -0.01em;
}
.brand-text small { display: block; font-size: 11.5px; color: var(--muted-dim); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-size: 14.5px; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav-cta {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; color: var(--text) !important;
}
.nav-cta:hover { border-color: var(--amber-text); color: var(--amber-text) !important; }

/* The two header buttons travel together, hard against the right edge. */
.head-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.theme-toggle, .nav-toggle {
  width: 44px; height: 40px; flex: none; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--muted); cursor: pointer;
}
.theme-toggle:hover, .nav-toggle:hover { color: var(--text); border-color: var(--muted-dim); }

.theme-toggle svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
/* Show the icon for the theme you would switch TO. */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* The menu button only exists once the nav collapses. */
.nav-toggle { display: none; flex-direction: column; gap: 4px; }
.nav-toggle span {
  display: block; width: 17px; height: 1.5px; background: currentColor; border-radius: 1px;
}

/* ---------------------------------------------- buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--h-body); font-size: 14.5px; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-solid { background: var(--amber); color: var(--amber-ink); }
.btn-solid:hover { background: #ffb63f; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--amber-text); color: var(--amber-text); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------------------------------------------- hero */
.hero { padding: 76px 0 84px; border-bottom: 1px solid var(--line-soft); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px; align-items: center;
}
.hero-copy h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; max-width: 15ch; }
.hero-copy > p {
  margin: 20px 0 30px; color: var(--muted); font-size: 17px; max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stats {
  display: flex; gap: 38px; margin: 42px 0 0; padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.hero-stats div { margin: 0; }
.hero-stats dt { font-size: 12.5px; color: var(--muted-dim); }
.hero-stats dd {
  margin: 4px 0 0; font-family: var(--h-display); font-size: 27px; font-weight: 700;
}

.hero-shots {
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr;
  gap: 14px;
}
.hero-shot { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; }
.hero-shot-1 { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.hero-shot-2, .hero-shot-3 { aspect-ratio: 4 / 3; }
.hero-shot figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 16px 13px;
  font-size: 13px; font-weight: 600;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
}
.hero-shot figcaption span { display: block; font-weight: 400; color: #cfcfd4; font-size: 12px; }

/* ---------------------------------------------- video hero */
/* The video fades out at its own edges rather than having panels laid over
   it: the page background shows through, so no seam can appear. */
.hero-video {
  position: relative;
  padding: 0;
  min-height: 680px;
  display: flex;
  align-items: center;
  border-bottom: 0;
  overflow: hidden;
}

.hero-stage {
  position: absolute;
  top: 0; bottom: 0;
  left: 29%;
  right: 9%;
  z-index: 0;
}

.hero-vid {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0;
  transition: opacity 0.7s ease;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,0.30) 24%, #000 56%, #000 74%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 19%, #000 77%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, rgba(0,0,0,0.30) 24%, #000 56%, #000 74%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 19%, #000 77%, transparent 100%);
  mask-composite: intersect;
}
.hero-vid.is-on { opacity: 1; }

/* Without mask support the video would be a hard-edged block, so it is
   dimmed and pushed back instead of pretending to blend. */
@supports not ((mask-composite: intersect) or (-webkit-mask-composite: source-in)) {
  .hero-vid { opacity: 0; }
  .hero-vid.is-on { opacity: 0.5; }
}

.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-video .hero-copy { max-width: 640px; }
.hero-video .hero-copy h1 { font-size: clamp(34px, 4.2vw, 56px); max-width: 18ch; }
.hero-video .hero-copy > p { max-width: 42ch; }

.hero-nav { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-dot {
  display: flex; flex-direction: column; gap: 7px;
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
}
.hero-dot-name {
  font-family: var(--h-display); font-size: 14px; font-weight: 700; color: var(--muted-dim);
}
.hero-dot.is-on .hero-dot-name { color: var(--text); }
.hero-dot-bar {
  display: block; width: 64px; height: 2px;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.hero-dot-bar > span {
  display: block; width: 0; height: 2px; background: var(--amber); border-radius: 2px;
}
.hero-dot.is-on .hero-dot-bar > span { width: 100%; transition: width 0.3s ease; }

/* This control sits on the footage, not on the page, so it ignores the theme
   and stays white on a dark disc: the video looks the same in both themes. */
.hero-play {
  position: absolute; z-index: 3;
  top: 34px; right: calc(9% + 22px);
  width: 44px; height: 44px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12, 12, 15, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #ffffff;
  cursor: pointer; padding: 0;
  transition: background-color 0.15s, border-color 0.15s;
}
.hero-play:hover {
  background: rgba(12, 12, 15, 0.82);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}
.hero-play svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round;
}
.hero-play .icon-play { fill: currentColor; stroke: none; }
.hero-play .icon-play { display: none; }
.hero-play.is-paused .icon-pause { display: none; }
.hero-play.is-paused .icon-play { display: block; }

/* the spec plate */
.hero-plate {
  position: absolute; z-index: 2;
  right: calc(9% + 0px); bottom: 60px;
  width: 400px; max-width: calc(100% - 2 * var(--gutter));
  background: rgba(12, 12, 15, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease;
}
.hero-plate.is-on { opacity: 1; pointer-events: auto; }
:root[data-theme="light"] .hero-plate { background: rgba(255, 255, 255, 0.88); }

.plate-no { display: flex; align-items: baseline; gap: 11px; }
.plate-no span { font-size: 13px; color: var(--muted); }
.plate-no strong {
  font-family: var(--h-display); font-size: clamp(44px, 5vw, 70px); font-weight: 800;
  line-height: 0.88; letter-spacing: -0.03em; color: var(--amber-text);
  white-space: nowrap;
}
.plate-name {
  margin: 4px 0 16px;
  font-family: var(--h-display); font-size: 19px; font-weight: 600;
}
.plate-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px; margin: 0;
  padding-top: 16px; border-top: 1px solid var(--line-soft);
}
.plate-facts > div { margin: 0; }
.plate-facts .wide { grid-column: 1 / -1; }
.plate-facts dt { font-size: 11.5px; color: var(--muted-dim); }
.plate-facts dd { margin: 3px 0 0; font-size: 14px; }
.plate-link { display: inline-block; margin-top: 18px; font-size: 13.5px; color: var(--amber-text); }

/* Narrow screens get a different hero, not a squeezed one. Text over moving
   video is unreadable at this size and the spec plate has nowhere to sit, so
   the whole thing stacks: clip, then words, then the caption. */
@media (max-width: 1024px) {
  .hero.hero-video {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 0 0 36px;
  }

  .hero-stage {
    position: relative;
    left: auto; right: auto; top: auto; bottom: auto;
    width: 100%;
    aspect-ratio: 8 / 7;
    order: 0;
  }
  .hero-vid {
    /* contained now, so only the bottom edge needs to melt into the page */
    -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
    mask-composite: intersect;
  }
  @supports not ((mask-composite: intersect) or (-webkit-mask-composite: source-in)) {
    .hero-vid.is-on { opacity: 1; }
  }

  .hero-inner { order: 1; padding-top: 10px; }
  .hero-video .hero-copy { max-width: none; }
  .hero-video .hero-copy h1 { font-size: clamp(30px, 7.6vw, 44px); max-width: 22ch; }
  .hero-video .hero-copy > p { max-width: none; }
  .hero-actions { gap: 10px; }

  .hero-nav {
    margin-top: 26px;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .hero-nav::-webkit-scrollbar { display: none; }
  .hero-dot { flex: none; }

  .hero-play {
    top: 14px;
    right: var(--gutter);
  }

  /* the plate becomes a plain caption under the words */
  .hero-plate {
    position: static;
    order: 2;
    width: auto; max-width: none;
    margin: 24px var(--gutter) 0;
    padding: 0;
    background: none;
    border: 0;
    border-top: 1px solid var(--line-soft);
    padding-top: 18px;
    display: none;
  }
  :root[data-theme="light"] .hero-plate { background: none; }
  .hero-plate.is-on { display: block; opacity: 1; }

  .plate-no { display: inline-flex; align-items: baseline; gap: 8px; }
  .plate-no span { font-size: 12.5px; }
  .plate-no strong {
    font-size: 30px;
    line-height: 1;
    white-space: nowrap;
  }
  .plate-name {
    display: inline;
    margin: 0 0 0 10px;
    font-size: 17px;
  }

  /* values speak for themselves at this size, so the labels go */
  .plate-facts {
    display: flex; flex-wrap: wrap;
    gap: 4px 16px;
    margin-top: 10px;
    padding-top: 0;
    border-top: 0;
  }
  .plate-facts .wide { grid-column: auto; }
  .plate-facts dt { display: none; }
  .plate-facts dd { margin: 0; font-size: 13.5px; color: var(--muted); }
  .plate-link { margin-top: 12px; }
}

@media (max-width: 620px) {
  .hero-stage { aspect-ratio: 1 / 1; }
  .hero-video .hero-copy h1 { max-width: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .plate-no strong { font-size: 26px; }
}

/* ---------------------------------------------- bands */
.band { padding: 84px 0; border-bottom: 1px solid var(--line-soft); }
.band-title { font-size: clamp(27px, 3.1vw, 37px); }
.band-head { margin-bottom: 34px; }
.band-sub { color: var(--muted); margin: 12px 0 0; max-width: 56ch; }

/* ---------------------------------------------- services */
.svc-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px; margin-top: 38px;
}

.svc {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: border-color 0.15s;
}
.svc:hover { border-color: var(--line); }

/* the moving diagram */
.svc-dia {
  position: relative; display: block; height: 178px;
  background: var(--surface-2); border-bottom: 1px solid var(--line-soft);
  padding: 10px;
}
.svc-dia svg { width: 100%; height: 100%; display: block; }
.svc-dia-tag {
  position: absolute; left: 12px; bottom: 10px;
  padding: 4px 9px; border-radius: 999px;
  background: var(--bg); color: var(--muted);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* the real job underneath it */
.svc-shot {
  display: block; height: 108px; overflow: hidden;
  background: var(--surface-2); border-bottom: 1px solid var(--line-soft);
}
.svc-shot img { width: 100%; height: 100%; object-fit: cover; }

.svc-body {
  display: flex; flex-direction: column; gap: 9px;
  padding: 20px 22px 22px; flex: 1;
}
.svc-title {
  font-family: var(--h-display); font-size: 19px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--text);
}
.svc:hover .svc-title { color: var(--amber-text); }
.svc-desc { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.svc-count {
  margin-top: auto; padding-top: 15px;
  font-size: 12.5px; font-weight: 500; color: var(--amber-text);
}

/* ---------------------------------------------- filters */
.filters {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  justify-content: space-between; margin-bottom: 30px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  text-decoration: none; font-size: 13.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
}
.chip em { font-style: normal; color: var(--muted-dim); margin-left: 5px; }
.chip:hover { border-color: var(--muted-dim); color: var(--text); }
.chip.is-on {
  background: var(--amber); border-color: var(--amber); color: var(--amber-ink); font-weight: 600;
}
.chip.is-on em { color: rgba(26, 18, 5, 0.65); }

.search { display: flex; align-items: center; gap: 8px; }
.search input {
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 14px; min-width: 240px;
}
.search input::placeholder { color: var(--muted-dim); }
.search button {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 9px 17px; font: inherit; font-size: 14px;
  font-weight: 600; cursor: pointer;
}
.search button:hover { border-color: var(--amber-text); color: var(--amber-text); }
.search-clear { font-size: 13px; color: var(--muted); text-decoration: underline; }

.empty { color: var(--muted); padding: 40px 0; }
.empty a { color: var(--amber-text); }

/* ---------------------------------------------- project cards */
.cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}

.card-shot {
  position: relative; display: block; aspect-ratio: 4 / 3;
  background: var(--surface-2); overflow: hidden;
}
.card-shot img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s ease;
}
.card-shot:hover img, .card-shot:focus-visible img { transform: scale(1.035); }

.tag {
  position: absolute; top: 14px; z-index: 2;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(10, 10, 11, 0.82); color: #fff;
  backdrop-filter: blur(4px);
}
.tag-type { left: 14px; }
.tag-style {
  right: 14px; color: var(--amber);
  box-shadow: inset 0 0 0 1px rgba(245, 165, 36, 0.45);
}
.tag.is-static { position: static; display: inline-block; backdrop-filter: none; }

.card-over {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; background: rgba(8, 8, 9, 0.62);
  opacity: 0; transition: opacity 0.2s ease;
}
.card-shot:hover .card-over,
.card-shot:focus-visible .card-over { opacity: 1; }
.card-over-dot {
  width: 24px; height: 24px; border-radius: 50%; background: var(--amber);
}
.card-over-text {
  font-family: var(--h-display); font-weight: 600; font-size: 16px; color: #fff;
}

.card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 21px; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--amber-text); }
.card-desc {
  margin: 10px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.55;
}

.card-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center;
  margin-top: auto; padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.card-meta:first-child { border-top: 0; }
.meta {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--muted-dim);
}
.meta svg {
  width: 14px; height: 14px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

.card-links { display: flex; gap: 16px; margin-top: 12px; }
.card-links a { font-size: 12.5px; color: var(--amber-text); text-decoration: none; }
.card-links a:hover { text-decoration: underline; }

.more { margin: 42px 0 0; text-align: center; }
.more .btn { font-family: var(--h-body); }

/* Every project is in the page; the filter, the search and "Show more"
   just decide which cards are shown. Images are lazy-loaded, so a hidden
   card downloads nothing until it appears. */
.card[hidden],
.card.is-stashed,
.card.is-filtered { display: none; }

.empty[hidden], .more[hidden], .search-clear[hidden] { display: none; }


/* ---------------------------------------------- about */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px;
}
.about-grid p { color: var(--muted); max-width: 62ch; }
.about-grid .lede { color: var(--text); font-size: 17.5px; margin-top: 22px; }
.about-grid .quiet { font-size: 14px; color: var(--muted-dim); }

.capabilities { list-style: none; margin: 0; padding: 0; align-self: start; }
.capabilities li {
  padding: 13px 0 13px 26px; border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px; position: relative;
}
.capabilities li::before {
  content: ''; position: absolute; left: 0; top: 20px;
  width: 9px; height: 9px; border-radius: 2px; background: var(--amber);
}

/* ---------------------------------------------- contact */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px;
}
.contact-info > p { color: var(--muted); margin: 16px 0 34px; max-width: 42ch; }
.info-block { padding: 16px 0; border-top: 1px solid var(--line-soft); }
.info-block h3 { font-size: 12.5px; font-weight: 600; color: var(--muted-dim); }
.info-block p { margin: 6px 0 0; font-size: 15px; }
.info-block a { text-decoration: none; }
.info-block a:hover { color: var(--amber-text); }

.contact-form-wrap {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 30px;
}
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg); border: 1px solid var(--line);
  color: var(--text); border-radius: var(--r-md); padding: 11px 14px;
  font: inherit; font-size: 15px;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--amber-text); outline: none;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.note { border-radius: var(--r-md); padding: 14px 16px; font-size: 14.5px; margin: 0 0 20px; }
.note p { margin: 0 0 6px; }
.note p:last-child { margin: 0; }
.note-ok { background: rgba(48, 160, 96, 0.13); color: #7ee2a8; }
.note-error { background: rgba(214, 68, 68, 0.13); color: #ff9c9c; }

/* ---------------------------------------------- project detail */
.page-project { background: var(--bg); }
.detail { padding: 48px 0 80px; }
.detail-missing { padding: 100px 0; }
.detail-missing a { color: var(--amber-text); }

.crumbs { font-size: 13px; color: var(--muted-dim); margin: 0 0 22px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--amber-text); }
.crumbs span { margin: 0 8px; }

.detail-head {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  justify-content: space-between;
}
.detail-head h1 { font-size: clamp(30px, 4vw, 44px); }
.detail-tags { display: flex; gap: 8px; }

.detail-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; margin: 34px 0;
  background: var(--line-soft); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); overflow: hidden;
}
.detail-facts > div { background: var(--surface); padding: 18px 20px; margin: 0; }
.detail-facts .wide { grid-column: 1 / -1; }
.detail-facts dt { font-size: 12px; color: var(--muted-dim); }
.detail-facts dd { margin: 6px 0 0; font-size: 15px; }

.detail-fb { margin: 0 0 40px; }

.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}
.gallery figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 12px 16px; font-size: 13px; color: var(--muted); }

.detail-back { margin-top: 48px; }
.detail-back a { color: var(--amber-text); }

/* ---------------------------------------------- footer */
.site-foot { background: var(--foot-bg); padding: 58px 0 0; }
.foot-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 38px; padding-bottom: 44px;
}
.foot-grid strong { font-family: var(--h-display); font-size: 17px; }
.foot-grid h3 { font-size: 12.5px; color: var(--muted-dim); font-weight: 600; margin-bottom: 14px; }
.foot-grid p { color: var(--muted); font-size: 14px; margin: 8px 0 18px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--amber-text); }
.socials { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; }
.socials a { color: var(--muted); }

.foot-base {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px var(--gutter); border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--muted-dim);
}
.foot-base a { text-decoration: none; }
.foot-base a:hover { color: var(--amber-text); }

/* ---------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero:not(.hero-video) { padding: 54px 0 62px; }
  .band { padding: 62px 0; }
  .hero-copy h1 { max-width: none; }
}

@media (max-width: 760px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--nav-bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 18px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
  .nav-cta { border: 0; border-radius: 0; padding: 13px 0; color: var(--amber-text) !important; }
  .nav-toggle { display: flex; }
  .head-actions { margin-left: auto; }
  .head-inner { position: relative; gap: 12px; min-height: 64px; }
  .brand-logo { height: 34px; max-width: 150px; }
  .brand-text small { display: none; }

  .hero-stats { gap: 24px; }
  .hero-stats dd { font-size: 22px; }
  .filters { flex-direction: column; align-items: stretch; }
  .search input { min-width: 0; flex: 1; }
  .cards { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-dia { height: 200px; }
  .svc-shot { height: 124px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 22px; }
  .foot-base { flex-direction: column; align-items: flex-start; }
}
