/* Brevis & Tener – site styles */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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";
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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: "Cinzel";
  src: url("../fonts/cinzel-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --bg: #f7f5f1;
  --bg-alt: #efebe4;
  --surface: #ffffff;
  --text: #1b1916;
  --muted: #6b645a;
  --line: #e2dcd1;
  --accent: #8a5a2b;
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(40, 30, 20, .06), 0 12px 32px -12px rgba(40, 30, 20, .18);
  --mark-1: #3a2a1b;    /* wordmark: dark bronze, top to bottom */
  --mark-2: #15100b;
  --amp-1: #c08d4f;     /* ampersand: polished bronze */
  --amp-2: #7f5124;
  --radius: 14px;
  --wrap: 1120px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mark: "Cinzel", "Trajan Pro", Georgia, serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14110e;
    --bg-alt: #1a1612;
    --surface: #211c17;
    --text: #ede7dd;
    --muted: #a39a8c;
    --line: #322b24;
    --accent: #d2a46c;
    --accent-ink: #1b1409;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    --mark-1: #f6ead6;
    --mark-2: #c9a46e;
    --amp-1: #f0c98a;
    --amp-2: #b07a3c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14110e;
  --bg-alt: #1a1612;
  --surface: #211c17;
  --text: #ede7dd;
  --muted: #a39a8c;
  --line: #322b24;
  --accent: #d2a46c;
  --accent-ink: #1b1409;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  --mark-1: #f6ead6;
  --mark-2: #c9a46e;
  --amp-1: #f0c98a;
  --amp-2: #b07a3c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.skip {
  position: absolute; left: 16px; top: -100px;
  background: var(--text); color: var(--bg);
  padding: 8px 14px; border-radius: 8px; z-index: 100; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header – a warm brown bar in both themes: it re-declares the colour tokens with the dark
   set, so everything inside (nav, CTA, language dropdown, wordmark) follows. */
.site-header {
  --text: #ede7dd;
  --muted: #dccfba;
  --line: #7b6450;
  --surface: #644c37;
  --bg-alt: #725840;
  --accent: #d2a46c;
  --mark-1: #f6ead6;
  --mark-2: #c9a46e;
  --amp-1: #f0c98a;
  --amp-2: #b07a3c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
  position: sticky; top: 0; z-index: 50;
  color: var(--text);
  background: rgba(90, 67, 48, .97);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 96px; transition: height .3s ease;
}
.site-header.scrolled .header-inner { height: 64px; }

/* Wordmark – large metallic lockup; shrinks with the header once scrolled */
.wordmark {
  font-family: var(--font-mark);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  word-spacing: -0.12em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text);
  transition: font-size .3s ease, letter-spacing .3s ease;
}
.wordmark .amp { color: var(--accent); }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .wordmark, .wordmark .amp {
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .wordmark { display: inline-block; padding: 0.08em 0; background-image: linear-gradient(180deg, var(--mark-1), var(--mark-2)); }
  .wordmark .amp { background-image: linear-gradient(160deg, var(--amp-1) 20%, var(--amp-2) 85%); }
}
/* Header: the wordmark fills most of the bar height */
.site-header .wordmark { font-size: 46px; }
.site-header.scrolled .wordmark { font-size: 31px; }
@media (max-width: 1100px) { .site-header .wordmark { font-size: 38px; } }
@media (max-width: 900px) { .site-header .wordmark { font-size: 30px; } .site-header.scrolled .wordmark { font-size: 27px; } }
/* Footer */
.site-footer .wordmark { font-size: 30px; }
@media (max-width: 640px) { .site-footer .wordmark { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .header-inner, .wordmark { transition: none; } }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }

/* Language switch – a <details> dropdown, works without JS */
.lang { position: relative; }
.lang summary {
  display: flex; align-items: center; gap: 8px;
  list-style: none; cursor: pointer; user-select: none;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .15s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after {
  content: ""; width: 5px; height: 5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .15s;
}
.lang[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang summary:hover, .lang[open] summary { border-color: var(--text); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 190px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.lang li a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: 15px;
}
.lang li a span { width: 20px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.lang li a:hover { background: var(--bg-alt); }
.lang li a[aria-current] { color: var(--accent); }
.lang li a[aria-current] span { color: inherit; }
.nav a {
  text-decoration: none; font-size: 15px; color: var(--muted);
  padding: 8px 12px; border-radius: 999px; transition: color .15s, background-color .15s;
}
.nav a:hover { color: var(--text); }
.nav .nav-cta { color: var(--text); border: 1px solid var(--line); margin-left: 8px; }
.nav .nav-cta:hover { border-color: var(--text); }
@media (max-width: 860px) {
  .nav a:not(.nav-cta) { display: none; }
}
@media (max-width: 720px) {
  .header-inner { height: 76px; }
  .site-header .wordmark { font-size: 26px; }
  .site-header.scrolled .wordmark { font-size: 23px; }
}
@media (max-width: 400px) {
  .site-header .wordmark, .site-header.scrolled .wordmark { font-size: 22px; }
}
@media (max-width: 350px) {
  .site-header .wordmark, .site-header.scrolled .wordmark { font-size: 18px; }
}

/* Shared */
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 640px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-size: 16px; font-weight: 500;
  text-decoration: none; transition: transform .15s, background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--text); }

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); max-width: 720px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); }

/* Hero */
.hero { padding: clamp(80px, 14vw, 168px) 0 clamp(72px, 10vw, 128px); }
.hero h1 { font-size: clamp(40px, 7vw, 80px); letter-spacing: -0.035em; line-height: 1.04; margin-bottom: 28px; max-width: 980px; }
.hero .lead { margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) { .br-wide { display: none; } }

/* Services */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.services li { padding: 32px 32px 40px 0; border-bottom: 1px solid var(--line); }
.services li:not(:nth-child(3n + 1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.services .num { display: block; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 28px; }
.services h3 { font-size: 20px; margin-bottom: 10px; }
.services p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .services li, .services li:not(:nth-child(3n + 1)) { padding: 28px 24px 32px 0; border-left: 0; }
  .services li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
}
@media (max-width: 580px) {
  .services { grid-template-columns: 1fr; }
  .services li, .services li:nth-child(even) { padding: 24px 0 28px; border-left: 0; }
  .services .num { margin-bottom: 14px; }
}

/* Approach */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600;
  border: 1px solid var(--accent); color: var(--accent);
}
.steps li::after {
  content: ""; position: absolute; top: 17px; left: 46px; right: -12px;
  height: 1px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .steps li::after { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

/* References */
.ref {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}
.ref:last-child { padding-bottom: 0; }
.ref:has(.shots) { align-items: start; }
.ref:has(.shots) .ref-text { position: sticky; top: 120px; }
.ref-kind { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.ref h3 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; }
.ref-text > p:not(.ref-kind) { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li { font-size: 13px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.link-arrow {
  display: inline-block; margin-top: 28px; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
}
.link-arrow:hover { color: var(--accent); }
@media (max-width: 860px) {
  .ref { grid-template-columns: 1fr; }
  .ref:has(.shots) .ref-text { position: static; }
}

.shots { display: grid; gap: 28px; }
.shots figure { margin: 0; }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }
.shot {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.shot:hover { transform: translateY(-3px); }
.frame-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
@media (prefers-reduced-motion: reduce) { .shot, .shot:hover { transition: none; transform: none; } }

/* QuickPanel – full-width layout: text on top, wide panel photo below */
.ref-wide { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 44px); }
.ref-wide .ref-text { max-width: 780px; }
.ref-highlight {
  margin-top: 20px; padding-left: 18px; border-left: 2px solid var(--accent);
  font-size: clamp(17px, 1.8vw, 19px); font-weight: 500; color: var(--text);
}
.ref-text > p.ref-highlight { color: var(--text); }

.ref-photo { margin: 0; }
.ref-photo a {
  display: block; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.ref-photo img { width: 100%; transition: transform .5s ease; }
.ref-photo a:hover img { transform: scale(1.03); }
.ref-photo figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .ref-photo img, .ref-photo a:hover img { transition: none; transform: none; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: end; }
.contact h2 { font-size: clamp(30px, 4.2vw, 46px); margin-bottom: 20px; max-width: 640px; }
.contact-email {
  display: inline-block; margin-top: 40px;
  font-size: clamp(24px, 4vw, 40px); font-weight: 600; letter-spacing: -0.02em;
  text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 4px;
  overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--accent); }
.contact-phone { display: block; margin-top: 18px; font-size: 19px; text-decoration: none; color: var(--muted); }
.contact-phone:hover { color: var(--text); }
.company { font-style: normal; color: var(--muted); line-height: 1.8; padding: 24px 0 0; border-top: 1px solid var(--line); }
.company strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.company-id { display: block; margin-top: 12px; font-size: 15px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { padding: 32px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-footer .wordmark { color: var(--text); }

/* Lightbox */
.lightbox {
  width: min(96vw, 1600px); max-width: none; max-height: 94vh; padding: 0;
  border: 0; border-radius: 12px; background: var(--surface); overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lightbox::backdrop { background: rgba(10, 8, 6, .78); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; }
.lightbox-close {
  position: sticky; top: 10px; float: right; margin: 10px 10px -52px 0; z-index: 1;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(20, 17, 14, .75); color: #fff; font-size: 26px; line-height: 1;
}
.lightbox-close:hover { background: rgba(20, 17, 14, .95); }

/* Reveal on scroll (only when JS has run) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
