/* ============================================================
   WELDCON — "Výrobní dokumentace"
   The whole site as an engineering shop drawing.
   Warm paper · ink · welding orange · ISO weld symbols ·
   dimension lines · title block · CAD crosshair
   ============================================================ */

:root{
  /* ===== DEFAULT THEME: BLUEPRINT (modrotisk) ===== */
  --paper:    #103A5E;   /* drawing sheet */
  --paper-2:  #0C2E4B;   /* field / panel */
  --paper-3:  #16466E;   /* raised / light */
  --ink:      #EAF1F7;   /* primary line + text */
  --ink-2:    #A9C4D8;   /* secondary text */
  --ink-3:    #6F93AC;   /* annotations, faint */
  --line:     rgba(234,241,247,.72);
  --line-2:   rgba(234,241,247,.30);
  --line-3:   rgba(234,241,247,.10);  /* grid / faint */

  /* welding orange */
  --orange:   #FF6A2C;
  --orange-d: #FF8A3D;
  --rust:     #FF9152;   /* small text / annotations */

  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-body:    "Hanken Grotesk", system-ui, sans-serif;
  --f-mono:    "Space Mono", ui-monospace, monospace;

  --maxw: 1280px;
  --gap: clamp(16px,4vw,40px);     /* sheet margin */
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --ch: 8px; /* small logo-derived corner cut */
}

/* ===== THEME: GRAPHITE (ocelová grafitová) ===== */
[data-theme="graphite"]{
  --paper:#1B2024; --paper-2:#15191C; --paper-3:#232B30;
  --ink:#ECEFF1; --ink-2:#AEB7BD; --ink-3:#6E797F;
  --line:rgba(236,239,241,.70); --line-2:rgba(236,239,241,.28); --line-3:rgba(236,239,241,.09);
  --orange:#FF6A2C; --orange-d:#FF8A3D; --rust:#FF9152;
}

/* ===== THEME: WHITE (čistý rýsovák) ===== */
[data-theme="white"]{
  --paper:#F6F5F1; --paper-2:#EAE8E2; --paper-3:#FCFBF8;
  --ink:#16181B; --ink-2:#4B5055; --ink-3:#8A9197;
  --line:rgba(22,24,27,.82); --line-2:rgba(22,24,27,.28); --line-3:rgba(22,24,27,.10);
  --orange:#FF6A2C; --orange-d:#E2531B; --rust:#B23C0E;
}

/* ===== THEME: CREAM (rýsovací papír / pauzák) ===== */
[data-theme="cream"]{
  --paper:#EAE6DC; --paper-2:#E2DDD1; --paper-3:#F2EFE8;
  --ink:#1B1813; --ink-2:#574F44; --ink-3:#8B8475;
  --line:rgba(27,24,19,.85); --line-2:rgba(27,24,19,.30); --line-3:rgba(27,24,19,.12);
  --orange:#FF6A2C; --orange-d:#E2531B; --rust:#B23C0E;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--f-body);
  font-size:18px; line-height:1.62;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:hidden;
  /* crisp isometric (ISO) engineering paper — light lines for dark sheets */
  background-image:url("assets/iso-grid.svg");
  background-repeat:repeat;
}
[data-theme="white"] body,
[data-theme="cream"] body{ background-image:url("assets/iso-grid-dark.svg"); }
::selection{ background:var(--orange); color:#160a04; }
a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; }
/* keyboard focus ring (mouse focus stays clean via :focus-visible) */
a:focus-visible, button:focus-visible, .btn:focus-visible{ outline:2px solid var(--orange); outline-offset:3px; }

.mono{ font-family:var(--f-mono); }
.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:clamp(22px,5vw,64px); }

/* corner-cut helper (logo geometry) */
.cut{ clip-path:polygon(var(--ch) 0,calc(100% - var(--ch)) 0,100% var(--ch),100% calc(100% - var(--ch)),calc(100% - var(--ch)) 100%,var(--ch) 100%,0 calc(100% - var(--ch)),0 var(--ch)); }

/* ============ SHEET FRAME (drawing border) ============ */
.sheet{ position:fixed; inset:var(--gap); border:1.5px solid var(--line); z-index:40; pointer-events:none; }
.sheet::before{ content:""; position:absolute; inset:5px; border:1px solid var(--line-2); }
/* corner registration ticks */
.reg{ position:fixed; width:13px; height:13px; z-index:41; pointer-events:none; }
.reg::before,.reg::after{ content:""; position:absolute; background:var(--orange); }
.reg::before{ left:50%; top:0; width:1.5px; height:100%; transform:translateX(-50%); }
.reg::after{ top:50%; left:0; height:1.5px; width:100%; transform:translateY(-50%); }
.reg.tl{ left:calc(var(--gap) - 6.5px); top:calc(var(--gap) - 6.5px); }
.reg.tr{ right:calc(var(--gap) - 6.5px); top:calc(var(--gap) - 6.5px); }
.reg.bl{ left:calc(var(--gap) - 6.5px); bottom:calc(var(--gap) - 6.5px); }
.reg.br{ right:calc(var(--gap) - 6.5px); bottom:calc(var(--gap) - 6.5px); }
/* coordinate refs along top & left of the sheet */
.coords{ position:fixed; z-index:41; pointer-events:none; display:flex; font-family:var(--f-mono); font-size:.62rem; color:var(--ink-3); letter-spacing:.05em; }
.coords-top{ top:calc(var(--gap) + 7px); left:var(--gap); right:var(--gap); justify-content:space-around; }
.coords-left{ left:calc(var(--gap) + 6px); top:var(--gap); bottom:var(--gap); flex-direction:column; justify-content:space-around; align-items:center; }
@media (max-width:780px){ .coords, .sheet::before{ display:none; } :root{ --gap:9px; } }

/* live CAD coordinate chip (hero) */
.coord-chip{ position:fixed; bottom:calc(var(--gap) + 12px); right:calc(var(--gap) + 16px); z-index:42;
  font-family:var(--f-mono); font-size:.68rem; letter-spacing:.04em; color:var(--ink-2); pointer-events:none;
  display:flex; gap:14px; opacity:0; transition:opacity .4s var(--ease); }
.coord-chip.on{ opacity:1; }
.coord-chip b{ color:var(--rust); font-weight:400; }
@media (max-width:780px){ .coord-chip{ display:none; } }

/* hero crosshair */
.cross{ position:fixed; z-index:39; pointer-events:none; background:var(--line-2); opacity:0; transition:opacity .3s; }
.cross.v{ width:1px; top:0; bottom:0; } .cross.h{ height:1px; left:0; right:0; }
.cross.show{ opacity:1; }

/* ============ TYPE ============ */
h1,h2,h3,h4{ font-family:var(--f-display); color:var(--ink); font-weight:700; line-height:1.0; letter-spacing:-.02em; text-wrap:balance; }
.kicker{ font-family:var(--f-mono); font-size:.72rem; letter-spacing:.2em; text-transform:uppercase; color:var(--rust); }
.lead{ font-size:clamp(1.05rem,1.5vw,1.28rem); color:var(--ink-2); line-height:1.55; text-wrap:pretty; }

/* detail-callout section tag */
.sec-tag{ display:inline-flex; align-items:center; gap:0; }
.sec-tag .badge{ width:38px; height:38px; border:1.5px solid var(--ink); border-radius:50%; display:grid; place-items:center;
  font-family:var(--f-mono); font-weight:700; font-size:.9rem; color:var(--ink); flex:none; background:var(--paper); }
.sec-tag .ll{ width:34px; height:1.5px; background:var(--ink); }
.sec-tag .label{ font-family:var(--f-mono); font-size:.74rem; letter-spacing:.18em; text-transform:uppercase; color:var(--ink); padding-left:14px; }
.reveal.in .sec-tag .ll{ animation:llgrow .5s var(--ease-out) both; }
@keyframes llgrow{ from{ width:0; } to{ width:34px; } }

/* ============ dimension line ============ */
.dim{ position:relative; height:1px; background:var(--ink-2); margin:var(--dm,30px) 0; transform:scaleX(0); transform-origin:left; transition:transform .7s var(--ease-out); }
.dim.in{ transform:scaleX(1); }
.dim::before,.dim::after{ content:""; position:absolute; top:-5px; width:1.5px; height:11px; background:var(--ink-2); }
.dim::before{ left:0; } .dim::after{ right:0; }
.dim .v{ position:absolute; left:var(--at,50%); top:50%; transform:translate(-50%,-50%); background:var(--paper); padding:0 10px;
  font-family:var(--f-mono); font-size:.72rem; letter-spacing:.08em; color:var(--ink-2); white-space:nowrap; opacity:0; transition:opacity .4s .35s var(--ease); }
.dim.in .v{ opacity:1; }
.dim .v b{ color:var(--rust); font-weight:400; }

/* ============ buttons ============ */
.btn{ position:relative; font-family:var(--f-display); font-weight:700; font-size:1rem; letter-spacing:.01em; text-transform:uppercase;
  padding:15px 28px; display:inline-flex; align-items:center; gap:.6em; cursor:pointer; border:1.5px solid var(--ink); overflow:hidden;
  transition:background .2s var(--ease), color .2s var(--ease), transform .25s var(--ease-out); }
.btn-primary{ background:var(--orange); color:#160a04; border-color:var(--orange); }
.btn-primary:hover{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.btn-ghost{ background:transparent; color:var(--ink); }
.btn-ghost:hover{ background:var(--ink); color:var(--paper); }
.btn svg{ width:17px; height:17px; transition:transform .25s var(--ease-out); }
.btn:hover svg{ transform:translateX(4px); }

/* ============ HEADER ============ */
header.site{ position:fixed; top:var(--gap); left:var(--gap); right:var(--gap); z-index:60; padding:0; }
.nav{ display:flex; align-items:center; gap:30px; height:128px; padding-inline:clamp(16px,3vw,34px);
  border-bottom:1.5px solid transparent; transition:background .3s var(--ease), border-color .3s var(--ease), height .3s var(--ease); }
header.site.scrolled .nav{ background:color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter:blur(8px); border-bottom-color:var(--line); height:104px; }
.brand{ display:flex; align-items:center; margin-right:auto; }
.brand img{ height:96px; width:auto; }
.nav-links{ display:flex; gap:26px; align-items:center; }
.nav-links a{ font-family:var(--f-mono); font-weight:400; font-size:.78rem; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-2); position:relative; padding:6px 0; transition:color .2s var(--ease); }
.nav-links a .nn{ color:var(--ink-3); margin-right:6px; }
.nav-links a::after{ content:""; position:absolute; left:0; right:100%; bottom:0; height:1.5px; background:var(--orange); transition:right .25s var(--ease); }
.nav-links a:hover, .nav-links a.active{ color:var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after{ right:0; }

.lang{ position:relative; display:flex; align-items:center; font-family:var(--f-mono); font-size:.74rem; border:1.5px solid var(--ink); }
.lang button{ position:relative; z-index:2; background:none; border:0; cursor:pointer; color:var(--ink-2); padding:6px 10px; font:inherit; transition:color .25s var(--ease); }
.lang button.active{ color:#160a04; }
.lang .pill{ position:absolute; z-index:1; top:0; bottom:0; background:var(--orange); transition:left .3s var(--ease-out), width .3s var(--ease-out); }
.nav-cta{ padding:11px 20px; }

/* sheet (theme) switcher */
.sheet-sw{ display:flex; align-items:center; gap:9px; }
.sheet-sw .sw-lab{ font-family:var(--f-mono); font-size:.62rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-3); }
.sheet-sw .sw-set{ display:flex; gap:6px; }
.sheet-sw button{ width:18px; height:18px; padding:0; border:1.5px solid var(--line-2); cursor:pointer; transition:transform .2s var(--ease-out), border-color .2s; position:relative; }
.sheet-sw button:hover{ transform:scale(1.12); }
.sheet-sw button.active{ border-color:var(--orange); }
.sheet-sw button.active::after{ content:""; position:absolute; inset:-4px; border:1px solid var(--orange); }
.sw-blueprint{ background:#103A5E; }
.sw-graphite{ background:#1B2024; }
.sw-white{ background:#F6F5F1; }
.burger{ display:none; background:none; border:1.5px solid var(--ink); cursor:pointer; color:var(--ink); width:42px; height:42px; place-items:center; }

/* ============ HERO ============ */
.hero{ position:relative; min-height:100svh; display:flex; align-items:center; padding-top:200px; padding-bottom:80px; overflow:hidden; }
.hero-mark{ position:absolute; right:2%; top:50%; transform:translateY(-50%); width:min(46vw,580px); opacity:.6; z-index:0; pointer-events:none; }
.hero-mark.fill{ opacity:.06; }
.hero-construct{ position:absolute; inset:0; z-index:0; pointer-events:none; }
.hero-construct .cl{ position:absolute; background:var(--line-3); }
.hero .wrap{ position:relative; z-index:2; width:100%; }
.hero .kicker{ display:flex; align-items:center; gap:14px; }
.hero .kicker::before{ content:""; width:40px; height:1.5px; background:var(--rust); }
.hero h1{ font-size:clamp(3.2rem,9.2vw,8.4rem); letter-spacing:-.035em; line-height:.9; margin:20px 0 0; font-weight:800; overflow-wrap:break-word; hyphens:auto; }
.hero h1 .o{ color:var(--orange); }
.hero h1 .outline{ color:transparent; -webkit-text-stroke:2px var(--ink); }
.hero .dim{ max-width:560px; }
.hero .lead{ max-width:44ch; margin-top:24px; }
.hero-cta{ display:flex; gap:14px; margin-top:36px; flex-wrap:wrap; }
.hero-note{ position:absolute; z-index:2; right:clamp(22px,5vw,64px); bottom:80px; max-width:230px; text-align:right; display:none; }
@media (min-width:1080px){ .hero-note{ display:block; } }
.hero-note .ll{ display:inline-block; width:60px; height:1.5px; background:var(--ink); margin-bottom:10px; }
.hero-note p{ font-family:var(--f-mono); font-size:.72rem; line-height:1.6; color:var(--ink-2); letter-spacing:.03em; }
.hero-scroll{ position:absolute; bottom:34px; left:clamp(22px,5vw,64px); z-index:2; font-family:var(--f-mono); font-size:.7rem; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-3); display:flex; align-items:center; gap:12px; }
.hero-scroll .ln{ width:46px; height:1px; background:var(--ink-3); position:relative; overflow:hidden; }
.hero-scroll .ln::after{ content:""; position:absolute; inset:0; width:16px; background:var(--orange); animation:scrollRun 2s var(--ease) infinite; }
@keyframes scrollRun{ from{ transform:translateX(-16px); } to{ transform:translateX(46px); } }

/* ============ weld-symbol divider ============ */
/* two line segments + a centred symbol with a transparent gap, so the ISO grid
   shows continuously through behind the weld mark instead of a flat paper patch */
.weld-div{ position:relative; max-width:var(--maxw); margin-inline:auto; height:42px; display:flex; align-items:center; justify-content:center; color:var(--ink); }
.weld-div::before, .weld-div::after{ content:""; flex:1; height:1.5px; background:var(--line); }
.weld-div .sym{ flex:none; background:transparent; padding:0 18px; display:block; line-height:0; }
.weld-div svg{ display:block; width:72px; height:42px; }

/* ============ generic section ============ */
section{ position:relative; }
.section{ padding-block:clamp(72px,11vw,132px); }
.section-head{ max-width:62ch; margin-top:22px; }
.section-head h2{ font-size:clamp(2.2rem,5vw,3.7rem); margin-top:18px; }
.section-head .lead{ margin-top:18px; }

.reveal{ opacity:0; transform:translateY(26px); transition:opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in{ opacity:1; transform:none; }
.reveal.d1{ transition-delay:.08s; } .reveal.d2{ transition-delay:.16s; } .reveal.d3{ transition-delay:.24s; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; } }

/* ============ ABOUT ============ */
.about-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(36px,6vw,86px); align-items:start; margin-top:50px; }
.about-copy p{ color:var(--ink-2); margin-top:18px; max-width:52ch; }
.about-copy p strong{ color:var(--ink); font-weight:600; }
.cap-list{ display:flex; flex-direction:column; }
.cap{ position:relative; padding:24px 4px 24px 28px; border-top:1.5px solid var(--line); transition:padding-left .3s var(--ease-out), background .3s var(--ease); }
.cap:last-child{ border-bottom:1.5px solid var(--line); }
.cap::before{ content:attr(data-n); position:absolute; left:0; top:26px; font-family:var(--f-mono); font-size:.74rem; color:var(--rust); transition:left .3s var(--ease-out); }
.cap::after{ content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--orange); transform:scaleY(0); transform-origin:top; transition:transform .35s var(--ease-out); }
.cap:hover{ padding-left:38px; background:var(--paper-3); }
.cap:hover::before{ left:14px; }
.cap:hover::after{ transform:scaleY(1); }
.cap h4{ font-size:1.22rem; font-weight:700; }
.cap p{ color:var(--ink-2); font-size:.97rem; line-height:1.5; margin-top:6px; max-width:46ch; }

/* stats */
.stats{ display:grid; grid-template-columns:repeat(4,1fr); margin-top:clamp(54px,8vw,90px); border:1.5px solid var(--line); }
.stat{ padding:clamp(26px,3.4vw,40px) clamp(18px,2.4vw,30px); border-right:1.5px solid var(--line); position:relative; }
.stat:last-child{ border-right:0; }
.stat .tag{ position:absolute; top:12px; right:14px; font-family:var(--f-mono); font-size:.6rem; color:var(--ink-3); letter-spacing:.08em; }
.stat .v{ font-family:var(--f-display); font-weight:800; font-size:clamp(2.7rem,5vw,4.1rem); color:var(--ink); letter-spacing:-.03em; line-height:1; }
.stat .v .u{ color:var(--orange); }
.stat .l{ font-family:var(--f-mono); font-size:.74rem; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-2); margin-top:14px; line-height:1.4; }

/* ============ GALLERY ============ */
.gallery{ display:grid; grid-template-columns:repeat(12,1fr); grid-auto-rows:clamp(72px,8vw,100px); gap:14px; margin-top:50px; }
.g-cell{ position:relative; border:1.5px solid var(--line); overflow:hidden; background:var(--paper-2); }
.g-cell image-slot{ width:100%; height:100%; background:transparent; transition:transform .6s var(--ease-out); display:block; }
.g-cell:hover image-slot{ transform:scale(1.04); }
/* hardcoded gallery photos — replace a .g-ph with <img class="g-img" src="…" alt="…"> */
.g-cell > img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease-out); }
.g-cell:hover > img{ transform:scale(1.04); }
/* neutral on-brand placeholder until real photos are added */
.g-ph{ position:absolute; inset:0; background:var(--paper-2); }
.g-ph::after{ content:""; position:absolute; inset:0; background:url("assets/mark-white.svg") center / 70px no-repeat; opacity:.07; }
/* "show whole gallery" button under the grid */
.gallery-more{ display:flex; justify-content:center; margin-top:clamp(30px,5vw,48px); }
/* separate full-gallery page: uniform responsive grid */
.gallery-full{ display:grid; grid-template-columns:repeat(auto-fill,minmax(clamp(190px,28vw,290px),1fr)); gap:14px; margin-top:clamp(36px,6vw,54px); }
.gallery-full .g-cell{ aspect-ratio:4/3; }
.g-wide{ grid-column:span 8; grid-row:span 4; }
.g-side{ grid-column:span 4; grid-row:span 4; }
.g-half{ grid-column:span 6; grid-row:span 4; }
/* fig label (always visible, top-left, like a drawing figure number) */
.g-cell .fig{ position:absolute; top:0; left:0; z-index:3; font-family:var(--f-mono); font-size:.64rem; letter-spacing:.08em;
  background:var(--ink); color:var(--paper); padding:4px 9px; pointer-events:none; }
/* hover: crosshair + dimension + caption */
.g-cell .ch-h, .g-cell .ch-v{ position:absolute; background:var(--orange); z-index:3; opacity:0; transition:opacity .3s var(--ease); pointer-events:none; }
.g-cell .ch-h{ left:0; right:0; top:50%; height:1px; } .g-cell .ch-v{ top:0; bottom:0; left:50%; width:1px; }
.g-cell:hover .ch-h, .g-cell:hover .ch-v{ opacity:.8; }
.g-cell .cap-tag{ position:absolute; left:0; right:0; bottom:0; z-index:4; padding:26px 14px 12px;
  background:linear-gradient(transparent, rgba(27,24,19,.9)); transform:translateY(6px); opacity:0;
  transition:opacity .35s var(--ease), transform .35s var(--ease-out); pointer-events:none; }
.g-cell:hover .cap-tag{ opacity:1; transform:none; }
.g-cell .cap-tag .s{ font-family:var(--f-mono); font-size:.64rem; letter-spacing:.12em; color:var(--orange); }
.g-cell .cap-tag .t{ font-family:var(--f-display); font-weight:700; color:var(--paper); font-size:1.02rem; }

/* ============ REFERENCES (notes) ============ */
.refs{ display:grid; grid-template-columns:repeat(3,1fr); gap:0; margin-top:50px; border-top:1.5px solid var(--line); }
.ref{ position:relative; padding:34px 28px 30px; border-right:1.5px solid var(--line); border-bottom:1.5px solid var(--line); display:flex; flex-direction:column; gap:18px; min-height:270px; transition:background .3s var(--ease); }
.ref:last-child{ border-right:0; }
.ref .note-n{ font-family:var(--f-mono); font-size:.68rem; letter-spacing:.1em; color:var(--rust); }
.ref:hover{ background:var(--paper-3); }
.ref blockquote{ font-size:1.08rem; color:var(--ink); line-height:1.5; flex:1; }
.ref blockquote::before{ content:"„"; color:var(--orange); font-family:var(--f-display); font-weight:800; font-size:2rem; line-height:0; vertical-align:-.35em; margin-right:.1em; }
.ref .who{ display:flex; align-items:center; gap:12px; padding-top:16px; border-top:1px solid var(--line-2); }
.ref .who .av{ width:40px; height:40px; flex:none; border:1.5px solid var(--ink); display:grid; place-items:center; font-family:var(--f-mono); font-weight:700; font-size:.82rem; color:var(--ink); }
.ref .who > span:last-child{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.ref .who .n{ font-family:var(--f-display); font-weight:700; color:var(--ink); font-size:.98rem; line-height:1.2; }
.ref .who .r{ font-family:var(--f-mono); font-size:.72rem; color:var(--ink-3); letter-spacing:.04em; }
@media (max-width:900px){ .refs{ grid-template-columns:1fr; } .ref{ border-right:0; } }

/* ===== partner / reference logo groups ===== */
.ref-group{ margin-top:46px; }
.ref-group + .ref-group{ margin-top:64px; }
.ref-group > h3{ font-family:var(--f-display); font-weight:700; font-size:clamp(1.15rem,2.4vw,1.55rem); letter-spacing:-.01em; display:flex; align-items:center; gap:14px; }
.ref-group > h3 .gn{ font-family:var(--f-mono); font-weight:400; font-size:.8rem; color:var(--rust); border:1.5px solid var(--line-2); width:28px; height:28px; display:grid; place-items:center; flex:none; }
.partner-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:24px; }
.partner{ border:1.5px solid var(--line); background:var(--paper-2); display:flex; flex-direction:column; transition:background .25s var(--ease); }
.partner:hover{ background:var(--paper-3); }
.partner image-slot{ width:100%; aspect-ratio:16/9; background:transparent; }
.partner .pn{ border-top:1.5px solid var(--line); padding:11px 14px; font-family:var(--f-mono); font-size:.74rem; letter-spacing:.05em; color:var(--ink-2); display:flex; justify-content:space-between; align-items:center; gap:10px; }
.partner .pn .arr{ color:var(--orange); flex:none; }
@media (max-width:760px){ .partner-grid{ grid-template-columns:1fr 1fr; } }

/* ============ CONTACT ============ */
.contact{ background:var(--paper-2); }
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(36px,6vw,76px); align-items:start; }
.contact-info{ display:flex; flex-direction:column; margin-top:36px; border-top:1.5px solid var(--line); }
.ci-row{ display:flex; gap:18px; align-items:center; padding:18px 4px; border-bottom:1.5px solid var(--line); transition:padding-left .25s var(--ease-out); }
.ci-row:hover{ padding-left:10px; }
.ci-row .ico{ width:42px; height:42px; flex:none; border:1.5px solid var(--ink); display:grid; place-items:center; color:var(--ink); transition:background .25s, color .25s; }
.ci-row:hover .ico{ background:var(--orange); border-color:var(--orange); color:#160a04; }
.ci-row .ico svg{ width:19px; height:19px; }
.ci-row .lab{ font-family:var(--f-mono); font-size:.66rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-3); }
.ci-row .val{ font-family:var(--f-display); font-weight:700; color:var(--ink); font-size:1.08rem; margin-top:2px; }
.ci-row .val span{ display:block; font-family:var(--f-mono); font-weight:400; color:var(--ink-2); font-size:.78rem; letter-spacing:.02em; margin-top:2px; }

form.quote{ display:grid; gap:0; border:1.5px solid var(--line); background:var(--paper-3); }
.field{ display:flex; flex-direction:column; gap:7px; padding:16px 18px; border-bottom:1.5px solid var(--line); position:relative; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; }
.form-row .field:first-child{ border-right:1.5px solid var(--line); }
.field label{ font-family:var(--f-mono); font-size:.66rem; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-3); }
.field input, .field textarea{ font-family:var(--f-body); font-size:1rem; color:var(--ink); background:transparent; border:0; outline:none; padding:2px 0; width:100%; }
.field textarea{ resize:vertical; min-height:104px; }
.field input::placeholder, .field textarea::placeholder{ color:var(--ink-3); }
.field.focus{ background:var(--paper); }
.field.focus label{ color:var(--rust); }
.field.err{ background:rgba(255,106,44,.08); }
.field .msg{ font-family:var(--f-mono); font-size:.7rem; color:var(--orange-d); display:none; }
.field.err .msg{ display:block; }
.form-foot{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; padding:18px; }
.form-foot .btn{ flex:none; }
.form-note{ font-family:var(--f-mono); font-size:.7rem; color:var(--ink-2); max-width:32ch; line-height:1.5; letter-spacing:.02em; }
.form-ok{ display:none; border:1.5px solid var(--ink); padding:30px 28px; align-items:center; gap:18px; background:var(--paper-3); }
.form-ok.show{ display:flex; animation:okIn .5s var(--ease-out); }
@keyframes okIn{ from{ opacity:0; transform:translateY(12px); } to{ opacity:1; transform:none; } }
.form-ok .tick{ width:46px; height:46px; flex:none; background:var(--orange); color:#160a04; display:grid; place-items:center; }
.form-ok h4{ font-size:1.2rem; font-weight:700; } .form-ok p{ color:var(--ink-2); font-size:.94rem; }

/* ============ FOOTER = TITLE BLOCK ============ */
footer.site{ padding:clamp(40px,6vw,70px) 0 calc(var(--gap) + 30px); }
.titleblock{ border:1.5px solid var(--line); display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; }
.tb{ padding:18px 20px; border-right:1.5px solid var(--line); border-bottom:1.5px solid var(--line); }
.tb .k{ font-family:var(--f-mono); font-size:.62rem; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-3); }
.tb .v{ font-family:var(--f-display); font-weight:700; color:var(--ink); font-size:1.02rem; margin-top:6px; line-height:1.2; }
.tb .v a{ transition:color .2s; } .tb .v a:hover{ color:var(--rust); }
.tb-logo{ grid-row:span 2; display:flex; flex-direction:column; justify-content:space-between; gap:18px; }
.tb-line{ grid-column:1 / -1; }
.tb-logo img{ height:120px; width:auto; align-self:flex-start; }
.tb-logo .slogan{ font-family:var(--f-mono); font-size:.66rem; letter-spacing:.14em; color:var(--ink-2); text-transform:uppercase; }
.foot-bot{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:20px; font-family:var(--f-mono); font-size:.72rem; color:var(--ink-2); letter-spacing:.04em; }
.foot-bot a:hover{ color:var(--rust); }

/* ============ mobile drawer ============ */
.drawer{ position:fixed; inset:0; z-index:80; background:var(--paper); display:flex; flex-direction:column; padding:calc(var(--gap) + 14px) clamp(22px,6vw,40px); transform:translateX(100%); transition:transform .35s var(--ease-out); }
.drawer.open{ transform:none; }
.drawer-top{ display:flex; justify-content:space-between; align-items:center; }
.drawer-top img{ height:80px; }
.drawer-links{ display:flex; flex-direction:column; margin-top:40px; border-top:1.5px solid var(--line); }
.drawer-links a{ font-family:var(--f-display); font-weight:700; font-size:1.7rem; color:var(--ink); padding:18px 0; border-bottom:1.5px solid var(--line); display:flex; align-items:baseline; gap:14px; transition:padding-left .2s var(--ease-out), color .2s; }
.drawer-links a .nn{ font-family:var(--f-mono); font-size:.8rem; color:var(--rust); }
.drawer-links a:hover{ padding-left:10px; color:var(--rust); }
.drawer .lang{ margin-top:34px; align-self:flex-start; }

/* ============ responsive ============ */

/* tablets / small laptops */
@media (max-width:1080px){
  .nav{ height:104px; }
  header.site.scrolled .nav{ height:84px; }
  .brand img{ height:74px; }
  .hero{ padding-top:160px; }
}

/* switch to the burger before the full nav starts to crowd (~960px) */
@media (max-width:1024px){
  .nav-links, .nav-cta{ display:none; }
  .burger{ display:grid; }
  .nav{ height:96px; gap:18px; }
  header.site.scrolled .nav{ height:80px; }
}

@media (max-width:900px){
  .nav-links, .nav-cta{ display:none; }
  .burger{ display:grid; }
  .nav{ height:88px; gap:16px; }
  header.site.scrolled .nav{ height:74px; }
  .brand img{ height:60px; }
  .hero{ padding-top:128px; min-height:auto; padding-bottom:60px; }
  .hero-mark{ width:62vw; opacity:.32; right:-6%; }
  .about-grid, .contact-grid{ grid-template-columns:1fr; }
  .stats{ grid-template-columns:1fr 1fr; }
  .stat:nth-child(2){ border-right:0; } .stat:nth-child(1),.stat:nth-child(2){ border-bottom:1.5px solid var(--line); }
  .gallery{ grid-template-columns:1fr; grid-auto-rows:auto; }
  .g-wide,.g-side,.g-half{ grid-column:auto; grid-row:auto; }
  .g-cell{ aspect-ratio:16/10; }
  .g-cell image-slot{ height:100%; }
  .titleblock{ grid-template-columns:1fr 1fr; }
  .tb{ border-right:1.5px solid var(--line); }
  .tb:nth-child(2n){ border-right:0; }
  .tb-logo{ grid-row:auto; grid-column:span 2; }
}

@media (max-width:640px){
  .nav{ height:74px; }
  header.site.scrolled .nav{ height:64px; }
  .brand img{ height:48px; }
  .hero{ padding-top:104px; }
  .hero-mark{ opacity:.22; width:78vw; right:-14%; }
  .hero-scroll{ display:none; }
  .section-head{ margin-top:14px; }
}

@media (max-width:560px){
  body{ font-size:17px; }
  .form-row{ grid-template-columns:1fr; }
  .form-row .field:first-child{ border-right:0; }
  .stats{ grid-template-columns:1fr; }
  .stat{ border-right:0; border-bottom:1.5px solid var(--line); }
  .stat:last-child{ border-bottom:0; }
  .partner-grid{ grid-template-columns:1fr 1fr; }
  .titleblock{ grid-template-columns:1fr; }
  .tb{ border-right:0; }
  .tb-logo{ grid-column:auto; }
  .btn{ width:100%; justify-content:center; }
  .hero-cta{ flex-direction:column; align-items:stretch; }
  .hero-cta .btn{ width:100%; }
}

@media (max-width:380px){
  .brand img{ height:42px; }
  .nav{ height:68px; }
  .partner-grid{ grid-template-columns:1fr; }
  .lang button{ padding:5px 7px; }
}

/* ============ PRINT (Save as PDF) ============ */
@media print{
  @page{ size:A4 portrait; margin:0; }
  *{ -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  /* jump animations to end-state */
  *,*::before,*::after{ animation-delay:-99s !important; animation-duration:.001s !important;
    animation-iteration-count:1 !important; animation-fill-mode:both !important; transition-duration:0s !important; }
  .reveal,.dim{ opacity:1 !important; transform:none !important; }
  /* drop fixed/decorative chrome that can't repeat per page */
  .sheet,.reg,.coords,.coord-chip,.cross,.hero-scroll,.progress{ display:none !important; }
  /* header becomes static so logo prints once at the top */
  header.site{ position:static !important; inset:auto !important; }
  .nav{ height:auto !important; padding:10mm 0 6mm !important; }
  .nav-cta,.burger{ display:none !important; }
  /* keep each theme's own background full-bleed (do NOT force white) */
  body{ background-image:none !important; padding:0 8mm 8mm !important; }
  .hero{ min-height:auto !important; padding:4mm 0 12mm !important; }
  .hero-mark{ opacity:.45 !important; }
  .cap,.ref,.g-cell,.stat,.tb,.field{ break-inside:avoid; }
  .seam,.weld-div{ display:none !important; }
}
