@font-face{font-family:'Inter Tight';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/inter-tight-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/inter-tight-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/inter-tight-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/inter-tight-cyrillic-500-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/inter-tight-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/inter-tight-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fragment Mono';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/fragment-mono-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Fragment Mono';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/fragment-mono-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Fragment Mono';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/jetbrains-mono-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}

/* Meistri Grupp — the Tames type system in a light version:
   one grotesk at medium weight (Inter Tight), two-tone copy, small mono labels in [ brackets ],
   pill buttons, a floating header, 20px page margins. */

:root {
  --bg: #ffffff;
  --bg-2: #f3f3f1;
  --ink: #0c0c0d;
  --grey: #6e6e72;      /* second tone of two-tone copy */
  --grey-2: #8e8e92;    /* menu links before hover */
  --label: #707074;     /* mono labels */
  --hair: rgba(12, 12, 13, 0.12);
  --dark: #0c0c0d;
  --dark-ink: #efeeea;
  --dark-grey: #8f8f93;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "Fragment Mono", ui-monospace, Menlo, monospace;
  --pad: 20px;
  --t-hero: clamp(46px, 6.6vw, 116px);
  --t-display: clamp(40px, 4vw, 64px);
  --t-list: clamp(30px, 3.1vw, 50px);
  --t-body: clamp(18px, 1.39vw, 21px);
  --t-small: clamp(15px, 1.11vw, 16px);
  --t-label: 11px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 104px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; overflow-x: hidden;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; font-weight: 500; }
ul, ol, dl { margin: 0; padding: 0; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--bg); }
[hidden] { display: none !important; }

.wrap { padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }
.display { font-size: var(--t-display); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.body-l { font-size: var(--t-body); line-height: 1.2; letter-spacing: -0.01em; text-wrap: pretty; }
.body-s { font-size: var(--t-small); line-height: 1.35; color: var(--grey); text-wrap: pretty; }
.dim { color: var(--grey); }
.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.label, .pill, .meta, .site-footer {
  font-family: var(--mono); font-size: var(--t-label); line-height: 1.35; font-weight: 400;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.label { color: var(--label); }
.br::before { content: "[\00a0\00a0"; }
.br::after { content: "\00a0\00a0]"; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 10px 24px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--bg); white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.pill:hover { background: #3a3a3d; }
.pill--ghost { background: rgba(12, 12, 13, 0.06); color: var(--ink); }
.pill--ghost:hover { background: rgba(12, 12, 13, 0.13); }
.pill[disabled] { opacity: 0.55; cursor: progress; }

.skip-link { position: fixed; z-index: 300; top: -70px; left: 20px; padding: 12px 18px; background: var(--ink); color: var(--bg); }
.skip-link:focus { top: 20px; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; }

/* ---------- header: floating pill bar */
.site-header {
  position: fixed; z-index: 90;
  top: max(14px, env(safe-area-inset-top, 0px));
  left: max(var(--pad), env(safe-area-inset-left, 0px)); right: max(var(--pad), env(safe-area-inset-right, 0px));
  height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px 8px 26px; border-radius: 999px;
  background: rgba(12, 12, 13, 0.9); color: var(--dark-ink);
  box-shadow: 0 10px 30px rgba(12, 12, 13, 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  transition: transform 0.45s ease, background 0.3s;
}
.site-header.is-scrolled { background: rgba(12, 12, 13, 0.96); }
.site-header :focus-visible { outline-color: var(--dark-ink); }
.site-header.is-hidden { transform: translateY(-140%); }
.brand { display: block; line-height: 0; }
.brand img { width: auto; height: 50px; }
.site-header .pill { background: var(--dark-ink); color: var(--ink); }
.site-header .pill:hover { background: #fff; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-lang { display: flex; gap: 2px; margin-right: 10px; }
.header-lang a, .lang-list a { padding: 6px; color: var(--label); }
.header-lang a:hover, .lang-list a:hover { color: var(--ink); }
.header-lang a[aria-current="page"], .lang-list a[aria-current="page"] { color: var(--ink); }
.header-lang a { color: var(--dark-grey); }
.header-lang a:hover, .header-lang a[aria-current="page"] { color: var(--dark-ink); }
.pill-call { display: none; }
.menu-button {
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 0; border-radius: 50%; background: var(--dark-ink); color: var(--ink);
  font: 300 22px/1 var(--sans); transition: transform 0.3s;
}
.menu-button:hover { transform: rotate(90deg); }

/* ---------- menu overlay */
.menu-overlay {
  position: fixed; z-index: 120; inset: 0;
  visibility: hidden; opacity: 0; pointer-events: none;
  background: var(--bg); transition: opacity 0.4s ease, visibility 0.4s;
}
.menu-overlay.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.menu-inner { height: 100%; display: flex; flex-direction: column; padding-top: max(14px, env(safe-area-inset-top, 0px)); padding-bottom: var(--pad); overflow-y: auto; }
.menu-top { height: 66px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 26px; }
.menu-content { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: var(--pad); padding: 6vh 0 4vh; }
.menu-navigation { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.menu-link { display: flex; align-items: baseline; gap: 14px; width: max-content; max-width: 100%; color: var(--grey-2); transition: color 0.2s; }
.menu-link small { font-family: var(--mono); font-size: var(--t-label); font-weight: 400; color: var(--label); }
.menu-link span { font-size: clamp(40px, 4.6vw, 72px); line-height: 1.04; letter-spacing: -0.025em; }
.menu-link:hover, .menu-link:focus-visible { color: var(--ink); }
.menu-contact { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: clamp(24px, 3vw, 40px); border-radius: 6px; background: var(--bg-2); }
.menu-contact .big-phone { font-size: clamp(32px, 3.4vw, 54px); line-height: 1; letter-spacing: -0.025em; }
.menu-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.lang-list { display: flex; gap: 4px; }

/* ---------- intro (hero) */
.intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--pad); align-items: start;
  padding-top: clamp(120px, 11vw, 160px); padding-bottom: clamp(70px, 9vw, 140px);
}
/* large logo under the header bar */
.hero-logo { display: block; width: clamp(220px, 24vw, 380px); height: auto; }
.intro .hero-logo { grid-column: 1 / -1; margin-bottom: clamp(16px, 2vw, 28px); }
.hero-logo-link { display: inline-block; margin-bottom: clamp(40px, 6vw, 80px); }
.hero-title { font-size: var(--t-hero); line-height: 0.95; letter-spacing: -0.035em; text-wrap: balance; max-width: 11ch; }
.intro-copy { display: flex; flex-direction: column; gap: 22px; max-width: 620px; justify-self: end; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pad);
  list-style: none; padding-top: 18px; border-top: 1px solid var(--hair);
  font-size: var(--t-body); line-height: 1.25; letter-spacing: -0.01em;
}

/* ---------- examples of work: opening rows */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--pad); padding-bottom: clamp(36px, 5vw, 64px); }
.measure { padding-bottom: clamp(110px, 13vw, 200px); }
.measure-list { list-style: none; border-bottom: 1px solid var(--hair); }
.measure-list > li {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--pad); row-gap: 0; align-items: center;
  padding-block: 22px; border-top: 1px solid var(--hair);
}
.js .measure-list > li { cursor: pointer; }
/* left column: open arrow + row number */
.m-head { grid-column: 1; display: flex; align-items: center; gap: 12px; }
.m-title { grid-column: 2 / span 5; font-size: var(--t-list); line-height: 1; letter-spacing: -0.025em; }
.m-place { grid-column: 7 / span 6; font-size: var(--t-body); line-height: 1.3; letter-spacing: -0.01em; }
.measure-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

/* arrow that opens a project's details */
.m-toggle {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--ink); border-radius: 50%;
  background: transparent; color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.m-toggle svg { width: 15px; height: 15px; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.measure-list > li:hover .m-toggle { background: rgba(12, 12, 13, 0.08); }
.measure-list > li.is-open .m-toggle { background: var(--ink); color: var(--bg); }
.measure-list > li.is-open .m-toggle svg { transform: rotate(180deg); }
.m-panel { grid-column: 2 / -1; display: grid; grid-template-rows: 1fr; cursor: auto; }
.js .m-panel { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.45s; }
.js .measure-list > li.is-open .m-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s; }
.m-panel > div { min-height: 0; overflow: hidden; }
.m-panel-inner { display: flex; flex-direction: column; gap: 36px; padding: 28px 0 8px; }
.m-scope { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.m-scope ul { list-style: none; display: grid; gap: 4px; color: var(--ink); }
.m-scope li { position: relative; padding-left: 16px; }
.m-scope li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 1px; background: var(--ink); }
.m-scope .pill { margin-top: 6px; }
.m-photo { align-self: start; max-width: 420px; }
/* topic cards inside an opened row */
.m-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--pad); }
.m-card {
  display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: left;
  border: 1px solid var(--hair); border-radius: 6px; background: var(--bg);
  font: inherit; color: inherit; cursor: pointer; transition: border-color 0.2s, box-shadow 0.25s;
}
.m-card:hover { border-color: rgba(12, 12, 13, 0.35); box-shadow: 0 10px 28px rgba(12, 12, 13, 0.08); }
.m-card .photo { border-radius: 0; }
.m-card .photo img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.m-card:hover .photo img { transform: scale(1.04); }
.m-card-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; padding: 18px 18px 20px; }
.m-card h4 { margin: 0; font-size: clamp(20px, 1.6vw, 26px); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.m-card-link { display: flex; align-items: center; gap: 12px; }
.m-card-arrow { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--bg); transition: transform 0.25s; }
.m-card-arrow svg { width: 15px; height: 15px; }
.m-card:hover .m-card-arrow { transform: translateX(3px); }
.m-card--empty { cursor: default; }
.m-examples { max-width: 760px; }
.m-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.m-thumb { width: 72px; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 3px; overflow: hidden; background: var(--bg-2); opacity: 0.5; cursor: pointer; transition: opacity 0.2s; }
.m-thumb img { width: 100%; height: 100%; object-fit: cover; }
.m-thumb:hover { opacity: 0.8; }
.m-thumb[aria-pressed="true"] { opacity: 1; outline: 1px solid var(--ink); outline-offset: 2px; }

/* photo viewer */
.lightbox { width: min(1100px, calc(100% - 24px)); max-height: 94svh; padding: clamp(16px, 2.4vw, 32px); border: 0; border-radius: 10px; background: var(--bg); color: var(--ink); overflow: auto; }
.lightbox::backdrop { background: rgba(12, 12, 13, 0.75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lb-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.lb-title { font-size: var(--t-list); line-height: 1; letter-spacing: -0.025em; }
.lb-main { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.lb-main img { width: 100%; max-height: 64svh; object-fit: contain; border-radius: 4px; background: var(--bg-2); }
.lb-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.lb-nav { display: flex; align-items: center; gap: 12px; }
.lb-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.lb-btn:hover { background: var(--ink); color: var(--bg); }
.lb-btn svg { width: 15px; height: 15px; }
.lb-btn[hidden] { display: none; }

/* ---------- "Mida me teeme" block */
.approach { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--pad); align-items: end; padding-block: clamp(90px, 11vw, 170px); background: var(--bg-2); }
.approach h2 { grid-column: 1 / span 6; }
.approach-copy { grid-column: 7 / span 6; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 640px; }
.approach-copy .body-l { line-height: 1.3; }

/* ---------- photos and meta lists */
.photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--bg-2); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 3px 18px; }
.meta dt { color: var(--label); }
.meta dd { margin: 0; }

/* ---------- process */
.process { padding-block: clamp(90px, 11vw, 170px); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--pad); list-style: none; counter-reset: step; }
.steps li { position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--hair); counter-increment: step; }
.steps li::before { content: "[\00a0\00a0" counter(step, decimal-leading-zero) "\00a0\00a0]"; font-family: var(--mono); font-size: var(--t-label); font-weight: 400; color: var(--label); margin-bottom: 14px; }
.steps h3 { font-size: clamp(24px, 2vw, 32px); line-height: 1.05; letter-spacing: -0.02em; }
.steps p { max-width: 26em; }

/* ---------- quote */
.quote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--pad); padding-block: clamp(110px, 13vw, 200px); }
.quote-copy { display: flex; flex-direction: column; gap: 18px; align-self: start; max-width: 560px; }
.quote-copy .display { font-size: clamp(34px, 3.6vw, 58px); letter-spacing: -0.025em; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 16px; }
.big-phone { font-size: clamp(30px, 2.8vw, 46px); line-height: 1; letter-spacing: -0.025em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.big-phone:hover { color: var(--grey); }
.email-line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.email-line .label { color: var(--ink); user-select: all; }
.person { display: flex; flex-direction: column; gap: 3px; }
.person-name { font-size: var(--t-small); }
.person-photo { width: min(100%, 360px); aspect-ratio: 1 / 1; margin-top: 10px; overflow: hidden; border-radius: 4px; background: var(--bg-2); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }

.quote-form { align-self: start; display: flex; flex-direction: column; gap: 22px; padding: clamp(22px, 3.4vw, 44px); border-radius: 10px; background: var(--bg-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { padding: 0; font-family: var(--mono); font-size: var(--t-label); font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; color: var(--label); }
.opt { text-transform: none; }
.hint { font-family: var(--mono); font-size: var(--t-label); font-weight: 400; color: var(--label); }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid rgba(12, 12, 13, 0.4); border-radius: 0;
  background: transparent; color: var(--ink); font-family: var(--sans); font-size: 17px; font-weight: 500;
}
.quote-form textarea { min-height: 120px; resize: vertical; line-height: 1.35; }
.quote-form ::placeholder { color: #9a9a9e; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 36px; padding: 8px 18px; border-radius: 999px; background: rgba(12, 12, 13, 0.06); font-family: var(--mono); font-size: var(--t-label); font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; cursor: pointer; transition: background 0.2s, color 0.2s; }
.chip span:hover { background: rgba(12, 12, 13, 0.13); }
.chip input:checked + span { background: var(--ink); color: var(--bg); }
.chip input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.form-foot .body-s { font-size: 13px; }
.form-status { display: none; padding: 12px 14px; border-radius: 6px; font-size: var(--t-small); line-height: 1.35; }
.form-status[data-state="ok"] { display: block; background: #e4f2e7; color: #1e4d2b; }
.form-status[data-state="error"] { display: block; background: #fbe9e7; color: #7a2117; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

/* ---------- footer (dark, mirrors the light Tames footer) */
.site-footer { background: var(--dark); color: var(--dark-ink); padding-block: 22px max(22px, env(safe-area-inset-bottom, 0px)); }
.site-footer :focus-visible { outline-color: var(--dark-ink); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--pad); padding-bottom: clamp(60px, 8vw, 120px); }
.footer-brand img { width: clamp(180px, 20vw, 320px); height: auto; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--pad); }
.footer-cols h2 { margin: 0 0 12px; font: inherit; color: var(--dark-grey); }
.footer-cols a, .footer-cols span { display: block; margin-bottom: 4px; overflow-wrap: anywhere; }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-cols .lang-list a { display: inline-block; margin: 0; padding: 0 10px 0 0; color: var(--dark-grey); }
.footer-cols .lang-list a[aria-current="page"], .footer-cols .lang-list a:hover { color: var(--dark-ink); text-decoration: none; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(50px, 6vw, 90px); color: var(--dark-grey); }

/* ---------- references page */
.refs-intro { padding-top: clamp(120px, 11vw, 160px); padding-bottom: clamp(50px, 6vw, 90px); }
.refs-intro h1 { font-size: var(--t-hero); line-height: 0.95; letter-spacing: -0.035em; max-width: 14ch; }
.refs-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: clamp(36px, 5vw, 64px); padding-top: 16px; border-top: 1px solid var(--hair); }
.refs-summary { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ref-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ref-filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.refs { padding-bottom: clamp(110px, 13vw, 200px); }
.ref-year { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--pad); padding-top: 16px; margin-top: clamp(40px, 5vw, 70px); border-top: 1px solid var(--ink); }
.ref-year h2 { grid-column: 1 / span 3; font-size: var(--t-list); line-height: 1; letter-spacing: -0.025em; }
.ref-list { grid-column: 4 / span 9; list-style: none; }
.ref { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(90px, 1.4fr); gap: 4px var(--pad); padding-block: 12px; border-bottom: 1px solid var(--hair); font-size: var(--t-small); line-height: 1.3; }
.ref:first-child { padding-top: 4px; }
.ref-qty { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.refs-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--pad); align-items: end; padding-block: clamp(90px, 11vw, 170px); background: var(--bg-2); }
.refs-cta .display { font-size: clamp(34px, 3.6vw, 58px); letter-spacing: -0.025em; }
.refs-cta div { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

/* ---------- 404 */
.nf-main { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-block: 120px 60px; }
.nf-main h1 { font-size: clamp(90px, 16vw, 220px); line-height: 0.9; letter-spacing: -0.04em; }
.nf-list { display: grid; gap: 10px; list-style: none; }
.nf-list li { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; }

/* ---------- responsive */
@media (max-width: 1100px) {
  .header-lang { display: none; }
  .m-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .intro, .quote, .refs-cta { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .intro-copy { justify-self: start; }
  .measure-list > li { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 8px; }
  .m-head { grid-column: 1; grid-row: 1; }
  .m-head .label { display: none; }
  .m-title { grid-column: 2; grid-row: 1; }
  .m-place { grid-column: 2; grid-row: 2; }
  .m-panel { grid-column: 1 / -1; grid-row: 3; }
  .m-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .m-card-body { gap: 18px; padding: 14px 14px 16px; }
  .m-card h4 { font-size: 17px; hyphens: auto; overflow-wrap: break-word; }
  .m-card-link .label { font-size: 10px; }
  .m-card-arrow { width: 32px; height: 32px; }
  .approach { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .approach h2, .approach-copy { grid-column: 1; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .quote-copy { position: static; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .menu-content { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; gap: 40px; padding-top: 4vh; }
  .menu-contact { justify-content: flex-start; }
  .ref-year { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ref-year h2, .ref-list { grid-column: 1; }
}
@media (max-width: 600px) {
  :root { --t-display: 36px; --t-list: 32px; --t-body: 18px; }
  .site-header { height: 60px; padding-left: 20px; }
  .menu-top { height: 60px; padding-left: 20px; }
  .brand img { height: 44px; }
  .menu-button { width: 40px; height: 40px; }
  .header-actions .pill { min-height: 36px; padding: 8px 16px; }
  .pill-quote { display: none; }
  .pill-call { display: inline-flex; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .footer-base, .footer-top { flex-direction: column; }
  .ref { grid-template-columns: minmax(0, 1fr) auto; }
  .ref-work { grid-column: 1; grid-row: 2; color: var(--grey); }
  .ref-qty { grid-column: 2; grid-row: 1 / span 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}
