/* ==========================================================================
   MipetK Ltd — Design System
   Concept: equipment nameplates & spec sheets. Rescue gear ships with a
   stamped metal ID plate; this system borrows that vocabulary — rivets,
   engraved type, mono spec readouts — as the site's structural language.
   Brand-coded accents (Holmatro / ETC / Interspiro) carry real meaning:
   each supplier keeps its own color wherever its gear is discussed.
   ========================================================================== */

:root{
  /* --- Core steel/paper base --- */
  --ink:        #201C1D;
  --steel-900:  #211E1F;
  --steel-800:  #2C2829;
  --steel-700:  #423C3D;
  --steel-500:  #756E6E;
  --steel-300:  #B3ACAB;
  --paper:      #F2EFE9;
  --paper-dim:  #E6E1D7;
  --white:      #FCFBF8;

  /* --- MipetK brand mark colors (sampled from the logo) --- */
  --brand-red:    #E5262B;
  --brand-red-dim:#C11E22;
  --brand-orange: #F2A73A;

  /* --- Signal / hazard accent: brand flame stands in for the old amber --- */
  --signal:     #E5262B;
  --signal-dim: #C11E22;
  --alert:      #C11E22;
  --flame: linear-gradient(100deg, var(--brand-red) 0%, var(--brand-orange) 100%);

  /* --- Brand-coded accents (used only when discussing that supplier) --- */
  --holmatro:   #E1580A;
  --etc:        #1C6DD0;
  --interspiro: #0E7C7B;

  /* --- Type --- */
  --f-display: 'Oswald', 'Arial Narrow', sans-serif;
  --f-body:    'IBM Plex Sans', -apple-system, sans-serif;
  --f-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --radius: 2px;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--f-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; }

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

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 28px;
}

/* --------------------------------------------------------------------
   Typography scale
   -------------------------------------------------------------------- */
h1,h2,h3,h4{
  font-family:var(--f-display);
  text-transform:uppercase;
  letter-spacing:0.02em;
  color:var(--steel-900);
  line-height:1.08;
}
h1{ font-size:clamp(2.4rem, 5.5vw, 4.6rem); font-weight:600; }
h2{ font-size:clamp(1.7rem, 3.2vw, 2.6rem); font-weight:600; }
h3{ font-size:1.25rem; font-weight:600; letter-spacing:0.04em; }
h4{ font-size:0.95rem; font-weight:600; letter-spacing:0.08em; }

.eyebrow{
  font-family:var(--f-mono);
  font-size:0.78rem;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--signal-dim);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:22px; height:2px;
  background:var(--signal);
  display:inline-block;
}
p.lede{ font-size:1.1rem; color:var(--steel-700); max-width:56ch; }
.mono{ font-family:var(--f-mono); }

/* --------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------- */
.util-bar{
  background:var(--ink);
  border-bottom:1px solid rgba(255,255,255,0.08);
  font-family:var(--f-mono);
  font-size:0.74rem;
  letter-spacing:0.03em;
  color:var(--steel-300);
}
.util-bar .wrap{
  display:flex; justify-content:space-between; align-items:center;
  padding:8px 28px;
  gap:16px; flex-wrap:wrap;
}
.util-links{ display:flex; gap:22px; flex-wrap:wrap; }
.util-links a:hover{ color:var(--brand-orange); }
.util-tag{
  color:var(--brand-orange);
  text-transform:uppercase;
  letter-spacing:0.1em;
}
@media (max-width:700px){ .util-tag{ display:none; } }

.site-header{
  position:sticky; top:0; z-index:100;
  background:var(--ink);
  border-bottom:1px solid rgba(255,255,255,0.08);
  transition:box-shadow .2s ease;
}
.site-header.is-scrolled{ box-shadow:0 6px 24px -12px rgba(0,0,0,0.5); }
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 28px;
  max-width:1180px; margin:0 auto;
}
.brand{
  display:flex; align-items:center; gap:14px;
  color:var(--white);
}
.brand-logo-chip{
  background:var(--white);
  padding:9px 14px;
  border-radius:4px;
  display:flex; align-items:center;
  flex-shrink:0;
  box-shadow:0 4px 14px rgba(0,0,0,0.35);
}
.brand-logo{
  height:52px; width:auto; display:block; flex-shrink:0;
  image-rendering:-webkit-optimize-contrast;
}
.brand-name{
  font-family:var(--f-display);
  font-size:1.05rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--white);
  border-left:2px solid var(--steel-700);
  padding-left:14px;
}
.brand-name small{
  display:block;
  font-family:var(--f-mono);
  font-size:0.6rem;
  letter-spacing:0.08em;
  color:var(--steel-300);
  text-transform:uppercase;
  margin-top:3px;
  max-width:19ch;
  line-height:1.4;
}
@media (max-width:640px){ .brand-name{ display:none; } }
.nav-links{
  display:flex; gap:2px;
  align-items:center;
}
.nav-links a{
  color:var(--steel-300);
  font-family:var(--f-display);
  font-size:0.76rem;
  letter-spacing:0.07em;
  text-transform:uppercase;
  padding:10px 12px;
  border-bottom:2px solid transparent;
  transition:border-color .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active{
  color:var(--brand-orange);
  border-bottom-color:var(--brand-orange);
}
.nav-cta{
  background:var(--flame) !important;
  color:var(--white) !important;
  padding:10px 20px !important;
  margin-left:8px;
  border-radius:2px;
  box-shadow:0 6px 14px -6px rgba(229,38,43,0.5);
}
.nav-cta:hover{ filter:brightness(1.08); border-bottom-color:transparent !important; }
.nav-toggle{
  display:none;
  background:none; border:1px solid var(--steel-500);
  color:var(--white); padding:8px 10px;
}

@media (max-width: 860px){
  .nav-toggle{ display:block; }
  .nav-links{
    position:absolute; top:100%; left:0; right:0;
    background:var(--ink);
    flex-direction:column; align-items:stretch;
    display:none;
    border-top:1px solid var(--steel-700);
    box-shadow:0 12px 24px -12px rgba(0,0,0,0.4);
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ padding:16px 28px; border-bottom:1px solid var(--steel-800); }
  .nav-cta{ margin:10px 28px; text-align:center; }
}

/* --------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--f-display);
  font-size:0.85rem; letter-spacing:0.09em; text-transform:uppercase;
  padding:14px 26px;
  border:1px solid var(--ink);
  background:var(--ink); color:var(--white);
  transition:transform .12s ease, background .15s;
}
.btn:hover{ background:var(--steel-800); transform:translateY(-1px); }
.btn-signal{ background:var(--flame); border-color:transparent; color:var(--white); box-shadow:0 6px 16px -6px rgba(229,38,43,0.55); }
.btn-signal:hover{ filter:brightness(1.08); transform:translateY(-2px); box-shadow:0 10px 22px -6px rgba(229,38,43,0.6); }
.btn-outline{ background:transparent; color:var(--ink); border-color:var(--steel-700); }
.btn-outline:hover{ background:var(--ink); color:var(--white); }
.btn-outline.on-dark{ color:var(--white); border-color:var(--steel-500); }
.btn-outline.on-dark:hover{ background:var(--white); color:var(--ink); }

/* --------------------------------------------------------------------
   Section rhythm
   -------------------------------------------------------------------- */
section{ padding:88px 0; }
section.tight{ padding:56px 0; }
.section-dark{ background:var(--steel-900); color:var(--paper); }
.section-dark h1, .section-dark h2, .section-dark h3{ color:var(--white); }
.section-dark p.lede{ color:var(--steel-300); }
.section-alt{ background:var(--white); }

.section-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap:24px; margin-bottom:44px; flex-wrap:wrap;
}

/* --------------------------------------------------------------------
   Signature component: SPEC PLATE
   A stamped-nameplate card used for stats, product categories, values.
   -------------------------------------------------------------------- */
.plate{
  position:relative;
  background:var(--white);
  border:1px solid var(--steel-300);
  padding:26px 24px;
}
.plate::before, .plate::after,
.plate .rivet-tl, .plate .rivet-br{
  content:"";
  position:absolute;
  width:6px; height:6px; border-radius:50%;
  background:var(--steel-300);
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.35);
}
.plate::before{ top:8px; left:8px; }
.plate::after{ bottom:8px; right:8px; }
.plate-code{
  font-family:var(--f-mono);
  font-size:0.7rem;
  letter-spacing:0.1em;
  color:var(--steel-500);
  margin-bottom:10px;
  display:block;
}
.plate-value{
  font-family:var(--f-display);
  font-size:2.6rem;
  font-weight:600;
  line-height:1;
  color:var(--steel-900);
}
.plate-label{
  font-family:var(--f-mono);
  font-size:0.76rem;
  letter-spacing:0.06em;
  color:var(--steel-700);
  margin-top:8px;
  text-transform:uppercase;
}
.plate--dark{ background:var(--steel-800); border-color:var(--steel-700); }
.plate--dark .plate-value{ color:var(--white); }
.plate--dark .plate-code, .plate--dark .plate-label{ color:var(--steel-300); }

/* Lifted interaction: plates/cards rise on hover, echoing "lifted catalogue" feel */
.plate, .card{
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.plate:hover, .card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 34px -18px rgba(20,17,17,0.35);
  border-color:var(--steel-500);
}
.plate--dark:hover{ border-color:var(--brand-orange); }

.icon-frame{
  width:52px; height:52px;
  display:flex; align-items:center; justify-content:center;
  background:var(--paper-dim);
  margin-bottom:6px;
}
.icon-frame svg{ width:28px; height:28px; }
.plate[data-brand="holmatro"] .icon-frame{ background:rgba(225,88,10,0.1); color:var(--holmatro); }
.plate[data-brand="etc"] .icon-frame{ background:rgba(28,109,208,0.1); color:var(--etc); }
.plate[data-brand="interspiro"] .icon-frame{ background:rgba(14,124,122,0.1); color:var(--interspiro); }

/* Photo-topped catalogue cards — real product photography instead of icons */
.plate-photo{
  width:calc(100% + 48px);
  margin:-26px -24px 16px;
  aspect-ratio:4/3;
  overflow:hidden;
  background:var(--steel-800);
}
.plate-photo img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .35s ease;
}
.plate:hover .plate-photo img{ transform:scale(1.05); }
.plate-photo.contain{ background:var(--white); display:flex; align-items:center; justify-content:center; }
.plate-photo.contain img{ object-fit:contain; padding:14px; }

/* Plates that are also links should not look like link text */
a.plate{ display:flex; flex-direction:column; text-decoration:none; }
.plate-link-hint{
  font-family:var(--f-mono); font-size:0.68rem; letter-spacing:0.05em;
  color:var(--steel-500); margin-top:10px; text-transform:uppercase;
  display:flex; align-items:center; gap:5px;
}
a.plate:hover .plate-link-hint{ color:var(--brand-red); }

/* Brand accent bar on plates */
.plate[data-brand="holmatro"]{ border-top:3px solid var(--holmatro); }
.plate[data-brand="etc"]{ border-top:3px solid var(--etc); }
.plate[data-brand="interspiro"]{ border-top:3px solid var(--interspiro); }

/* --------------------------------------------------------------------
   Grids
   -------------------------------------------------------------------- */
.grid{ display:grid; gap:22px; }
.grid-2{ grid-template-columns:repeat(2, 1fr); }
.grid-3{ grid-template-columns:repeat(3, 1fr); }
.grid-4{ grid-template-columns:repeat(4, 1fr); }
@media (max-width:900px){
  .grid-3, .grid-4{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:600px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns:1fr; }
}

/* --------------------------------------------------------------------
   Hero — full-bleed brand photo with a legibility gradient over it
   -------------------------------------------------------------------- */
.hero{
  background:
    linear-gradient(90deg, rgba(3,2,2,0.9) 0%, rgba(3,2,2,0.55) 30%, rgba(3,2,2,0.05) 55%, transparent 70%),
    url("images/hero-cover.jpg") right center / contain no-repeat,
    #030202;
  color:var(--white);
  padding:64px 0 0;
  overflow:hidden;
  position:relative;
  min-height:640px;
}
.hero-grid{
  display:grid; grid-template-columns:1.15fr 0.85fr;
  gap:48px; align-items:center;
  padding-bottom:64px;
}
@media (max-width:900px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero{ min-height:420px; }
}

.hero-badge{
  display:inline-flex; align-items:center; gap:8px;
  border:1px solid var(--steel-500);
  padding:7px 12px;
  font-family:var(--f-mono); font-size:0.72rem; letter-spacing:0.08em;
  color:var(--brand-orange); text-transform:uppercase;
  margin-bottom:22px;
  background:rgba(20,17,17,0.5);
}
.hero-badge::before{ content:"●"; font-size:0.6rem; color:var(--brand-red); }

.hero h1{
  margin-bottom:22px;
  color:var(--white) !important;
  text-shadow:0 3px 20px rgba(0,0,0,0.65);
  font-size:clamp(2.1rem, 4.4vw, 3.7rem);
}
.hero h1 .accent{ color:var(--brand-orange); }
.hero p.lede{ margin-bottom:34px; color:var(--steel-300); }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

.console{
  border:1px solid var(--steel-700);
  background:rgba(38,33,34,0.9);
  backdrop-filter:blur(6px);
  box-shadow:0 24px 48px -20px rgba(0,0,0,0.6);
}
.console-head{
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 18px;
  border-bottom:1px solid var(--steel-700);
  font-family:var(--f-mono); font-size:0.7rem; letter-spacing:0.1em;
  color:var(--steel-300); text-transform:uppercase;
}
.console-dot{ width:8px; height:8px; border-radius:50%; background:var(--signal); }
.console-body{ padding:4px 0; }
.console-row{
  display:flex; justify-content:space-between; align-items:center;
  gap:14px;
  padding:15px 18px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.console-row:last-child{ border-bottom:none; }
.console-row .k-wrap{ display:flex; align-items:center; gap:10px; }
.console-row .k-icon{
  width:26px; height:26px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:rgba(242,167,58,0.15); color:var(--brand-orange);
}
.console-row .k-icon svg{ width:15px; height:15px; }
.console-row .k{ font-family:var(--f-mono); font-size:0.75rem; color:var(--steel-300); letter-spacing:0.02em; }
.console-row .v{ font-family:var(--f-display); font-size:1.4rem; color:var(--white); flex-shrink:0; }

.hero-strip{
  border-top:1px solid var(--steel-700);
  padding:20px 0;
  background:rgba(20,17,17,0.55);
}
.strip-track{
  display:flex; gap:0; align-items:stretch;
  font-family:var(--f-mono); font-size:0.74rem; letter-spacing:0.08em;
  color:var(--steel-300); text-transform:uppercase;
  flex-wrap:wrap;
}
.strip-item{
  display:flex; align-items:center; gap:10px;
  padding:6px 26px;
  border-right:1px solid var(--steel-700);
}
.strip-item:last-child{ border-right:none; }
.strip-item svg{ width:20px; height:20px; flex-shrink:0; color:var(--brand-orange); }
.strip-track b{ color:var(--white); font-family:var(--f-body); font-size:0.88rem; letter-spacing:0; text-transform:none; }
.strip-track span.strip-label{ display:block; font-size:0.66rem; color:var(--steel-500); }
@media (max-width:860px){ .strip-item{ padding:6px 16px; } }

/* --------------------------------------------------------------------
   Brand rows (Holmatro / ETC / Interspiro)
   -------------------------------------------------------------------- */
.brand-row{
  display:grid; grid-template-columns:0.9fr 1.1fr;
  gap:40px; align-items:center;
  padding:40px 0;
  border-bottom:1px solid var(--paper-dim);
}
.brand-row:last-child{ border-bottom:none; }
@media (max-width:820px){ .brand-row{ grid-template-columns:1fr; } }

.brand-tag{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--f-mono); font-size:0.72rem; letter-spacing:0.12em;
  text-transform:uppercase; padding:6px 10px;
  border:1px solid currentColor;
  margin-bottom:16px;
}
.brand-row[data-brand="holmatro"] .brand-tag{ color:var(--holmatro); }
.brand-row[data-brand="etc"] .brand-tag{ color:var(--etc); }
.brand-row[data-brand="interspiro"] .brand-tag{ color:var(--interspiro); }

.brand-row[data-brand="holmatro"] h3{ color:var(--holmatro); }
.brand-row[data-brand="etc"] h3{ color:var(--etc); }
.brand-row[data-brand="interspiro"] h3{ color:var(--interspiro); }

.tag-list{ display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.tag-list span, .tag-list a{
  font-family:var(--f-mono); font-size:0.72rem;
  padding:6px 10px; background:var(--paper-dim); color:var(--steel-700);
}
.tag-list a{
  text-decoration:none;
  transition:background .15s, color .15s;
}
.tag-list a:hover{ background:var(--brand-red); color:var(--white); }

/* --------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------- */
.card{
  background:var(--white);
  border:1px solid var(--paper-dim);
  padding:26px;
  height:100%;
  display:flex; flex-direction:column;
  gap:14px;
}
.card h3{ font-size:1.05rem; }
.card p{ color:var(--steel-700); font-size:0.95rem; flex-grow:1; }
.card-meta{
  display:flex; justify-content:space-between;
  font-family:var(--f-mono); font-size:0.72rem;
  color:var(--steel-500); letter-spacing:0.04em;
  padding-top:14px; border-top:1px solid var(--paper-dim);
}

/* --------------------------------------------------------------------
   Timeline / process
   -------------------------------------------------------------------- */
.rail{ position:relative; padding-left:34px; }
.rail::before{
  content:""; position:absolute; left:6px; top:6px; bottom:6px;
  width:1px; background:var(--paper-dim);
}
.rail-item{ position:relative; padding-bottom:38px; }
.rail-item:last-child{ padding-bottom:0; }
.rail-item::before{
  content:""; position:absolute; left:-34px; top:4px;
  width:13px; height:13px; border:2px solid var(--signal);
  background:var(--white);
}

/* --------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------- */
.site-footer{
  background:var(--ink); color:var(--steel-300);
  padding:64px 0 28px;
}
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:36px; padding-bottom:44px;
}
@media (max-width:820px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid h4{ color:var(--white); margin-bottom:16px; }
.footer-grid ul li{ margin-bottom:10px; font-size:0.92rem; }
.footer-grid a:hover{ color:var(--signal); }
.footer-bottom{
  border-top:1px solid var(--steel-700);
  padding-top:24px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-family:var(--f-mono); font-size:0.72rem; letter-spacing:0.04em;
  color:var(--steel-500);
}
.footer-brand{ display:flex; gap:10px; align-items:center; color:var(--white); margin-bottom:14px; }

/* --------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------- */
.field{ margin-bottom:20px; }
.field label{
  display:block; font-family:var(--f-mono); font-size:0.75rem;
  letter-spacing:0.06em; text-transform:uppercase; color:var(--steel-700);
  margin-bottom:8px;
}
.field input, .field select, .field textarea{
  width:100%; background:var(--white);
  border:1px solid var(--steel-300);
  padding:12px 14px; font-family:var(--f-body); font-size:0.95rem;
  color:var(--ink); border-radius:var(--radius);
}
.field textarea{ resize:vertical; min-height:120px; }
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--signal); }
.form-note{ font-size:0.82rem; color:var(--steel-500); margin-top:6px; }
.form-status{
  margin-top:16px; padding:12px 14px; font-size:0.9rem;
  border-left:3px solid var(--signal); background:var(--paper-dim); display:none;
}
.form-status.show{ display:block; }

/* --------------------------------------------------------------------
   Page header (interior pages)
   -------------------------------------------------------------------- */
.page-head{
  background:var(--steel-900); color:var(--white);
  padding:70px 0 54px;
}
.page-head h1,
.page-head h2,
.page-head h3{ color:var(--white) !important; }
.page-head p.lede{ color:var(--steel-300) !important; }
.page-head .eyebrow{ color:var(--signal); }
.breadcrumb{
  font-family:var(--f-mono); font-size:0.75rem; color:var(--steel-300);
  margin-top:16px;
}
.breadcrumb a:hover{ color:var(--signal); }

/* --------------------------------------------------------------------
   Map block (static/embed placeholder)
   -------------------------------------------------------------------- */
.map-frame{
  border:1px solid var(--steel-300);
  height:340px; width:100%;
  filter:grayscale(0.15);
}

/* --------------------------------------------------------------------
   Social links
   -------------------------------------------------------------------- */
.social-links{ display:flex; gap:10px; }
.social-links a{
  width:34px; height:34px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--steel-700);
  color:var(--steel-300);
  transition:background .15s, color .15s, border-color .15s;
}
.social-links a:hover{ background:var(--flame); border-color:transparent; color:var(--white); }
.social-links svg{ width:16px; height:16px; }

/* --------------------------------------------------------------------
   Photo placeholder — used everywhere a real photo will eventually go.
   Swap by replacing this block with a plain <img src="images/...">.
   -------------------------------------------------------------------- */
.photo-slot{
  position:relative;
  background:
    linear-gradient(135deg, rgba(229,38,43,0.10), rgba(242,167,58,0.08)),
    repeating-linear-gradient(45deg, var(--paper-dim) 0 2px, transparent 2px 14px);
  border:1px dashed var(--steel-300);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:10px;
  color:var(--steel-500);
  text-align:center;
  padding:20px;
  aspect-ratio:4/3;
}
.photo-slot svg{ width:34px; height:34px; opacity:0.55; }
.photo-slot span{
  font-family:var(--f-mono); font-size:0.7rem; letter-spacing:0.04em;
  max-width:22ch; line-height:1.5; text-transform:uppercase;
}
.photo-slot.square{ aspect-ratio:1/1; }
.photo-slot.wide{ aspect-ratio:16/9; }
.photo-slot.portrait{ aspect-ratio:3/4; }

/* --------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------- */
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}
@media (max-width:860px){ .gallery-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .gallery-grid{ grid-template-columns:1fr; } }
.gallery-item{ cursor:pointer; }
.gallery-item .photo-slot{ transition:transform .2s ease, border-color .2s ease; }
.gallery-photo{
  aspect-ratio:4/3; overflow:hidden; background:var(--steel-800);
  transition:transform .2s ease, box-shadow .2s ease;
}
.gallery-photo img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s ease; }
.gallery-item:hover .gallery-photo{ transform:translateY(-4px); box-shadow:0 16px 30px -16px rgba(20,17,17,0.4); }
.gallery-item:hover .gallery-photo img{ transform:scale(1.05); }
.gallery-item:hover .photo-slot{ transform:translateY(-4px); border-color:var(--brand-red); }
.gallery-caption{
  margin-top:10px;
  font-family:var(--f-mono); font-size:0.74rem; color:var(--steel-700);
  display:flex; justify-content:space-between; gap:8px;
}
.gallery-caption b{ font-family:var(--f-body); color:var(--ink); font-weight:600; }
.gallery-filters{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:36px; }
.gallery-filters .filter-btn{
  font-family:var(--f-mono); font-size:0.75rem; letter-spacing:0.06em; text-transform:uppercase;
  padding:9px 14px; border:1px solid var(--steel-300); background:var(--white); color:var(--steel-700);
}
.gallery-filters .filter-btn.active, .gallery-filters .filter-btn:hover{
  border-color:var(--ink); color:var(--ink); background:var(--paper-dim);
}
.gallery-item[hidden]{ display:none; }

/* Lightbox */
.lightbox{
  position:fixed; inset:0; background:rgba(20,17,17,0.92);
  display:none; align-items:center; justify-content:center;
  z-index:1000; padding:40px;
}
.lightbox.open{ display:flex; }
.lightbox-inner{ max-width:640px; width:100%; text-align:center; }
.lightbox-close{
  position:absolute; top:24px; right:28px;
  background:none; border:1px solid var(--steel-500); color:var(--white);
  width:40px; height:40px; font-size:1.2rem;
}
.lightbox-caption{ color:var(--steel-300); font-family:var(--f-mono); font-size:0.8rem; margin-top:16px; }

/* --------------------------------------------------------------------
   Directors / team
   -------------------------------------------------------------------- */
.director-card{ text-align:left; }
.director-card .photo-slot{ margin-bottom:16px; }
.director-card h4{ font-size:1rem; letter-spacing:0.02em; text-transform:none; margin-bottom:2px; }
.director-role{
  font-family:var(--f-mono); font-size:0.72rem; letter-spacing:0.06em;
  color:var(--brand-red); text-transform:uppercase; margin-bottom:10px; display:block;
}

/* --------------------------------------------------------------------
   Supplies accent (general/imported goods — not principal-specific)
   -------------------------------------------------------------------- */
.plate[data-brand="supplies"]{ border-top:3px solid var(--brand-orange); }
.plate[data-brand="supplies"] .icon-frame{ background:rgba(242,167,58,0.14); color:var(--brand-red-dim); }

/* Utility */
.mt-0{ margin-top:0; }
.center{ text-align:center; }
.small{ font-size:0.85rem; }
.divider{ height:1px; background:var(--paper-dim); margin:44px 0; }
