/* Ascalon Group - site styles. Mobile first; one dark theme by brand. */

/* EB Garamond (headings) and Inter (text): latin + latin-ext (č ć š ž đ for the Serbian version); the browser downloads a file only when the page uses it. */
@font-face { font-family: 'EB Garamond'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/eb-garamond-latin-500.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: 'EB Garamond'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/eb-garamond-latin-ext-500.woff2') format('woff2'); unicode-range: 500 normal 500; }
@font-face { font-family: 'EB Garamond'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/eb-garamond-latin-600.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: 'EB Garamond'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/eb-garamond-latin-ext-600.woff2') format('woff2'); unicode-range: 600 normal 600; }
@font-face { font-family: 'EB Garamond'; font-weight: 500; font-style: italic; font-display: swap; src: url('../fonts/eb-garamond-latin-500-italic.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: 'EB Garamond'; font-weight: 500; font-style: italic; font-display: swap; src: url('../fonts/eb-garamond-latin-ext-500-italic.woff2') format('woff2'); unicode-range: 500 italic 500-italic; }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-400.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'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-ext-400.woff2') format('woff2'); unicode-range: Inter inter 400; }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-600.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'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-ext-600.woff2') format('woff2'); unicode-range: Inter inter 600; }

:root {
  --charcoal: #0B0B0C;   /* primary background: dark grey close to black */
  --panel: #131315;      /* alternating sections, form */
  --panel-2: #1A1A1D;    /* cards */
  --footer: #070708;
  --white: #FFFFFF;      /* text */
  --grey: #C8C8C8;       /* secondary text */
  --steel: #A9B1BA;      /* the one restrained accent: muted silver/steel */
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(169, 177, 186, .38);
  --error: #E8A5A0;      /* readable on charcoal, muted */
  --serif: 'EB Garamond', Garamond, Georgia, 'Times New Roman', serif;
  --sans: 'Inter', 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1160px;
  --gutter: 16px;
  --radius: 4px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--white); text-decoration-color: var(--line-strong); text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--white); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }

:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--white); color: var(--charcoal); padding: .6em 1em; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 780px; }

/* Placeholders stay visible so they can be found and replaced. */
.placeholder { color: var(--steel); background: rgba(169, 177, 186, .12); border: 1px dashed var(--line-strong); padding: 0 .3em; border-radius: 2px; font-family: var(--sans); font-size: .92em; white-space: normal; overflow-wrap: anywhere; }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--white); }
.logo-img { height: 50px; width: auto; }
.logo-lockup { display: inline-flex; align-items: center; gap: 13px; }
.logo-lockup .sword { width: 16px; height: 48px; color: var(--white); flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-word { font-family: var(--serif); font-weight: 600; font-size: 1.68rem; letter-spacing: .16em; }
.logo-sub { font-family: var(--sans); font-size: .66rem; letter-spacing: .38em; color: var(--grey); margin-top: 5px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 12, .88); backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(11, 11, 12, .96); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--white); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--charcoal); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.site-nav.is-open { display: block; }
.nav-links { list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--grey); font-size: .95rem; letter-spacing: .04em; }
.nav-links a:hover, .nav-links a.is-active { color: var(--white); }
.lang-switch { list-style: none; display: flex; gap: 6px; margin: 18px 0 0; padding: 0; font-size: .75rem; letter-spacing: .12em; }
.lang-switch li > * { display: inline-block; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--grey); }
.lang-switch [aria-current] { color: var(--white); border-color: var(--line-strong); }
.lang-planned { opacity: .45; cursor: default; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: var(--radius); font-family: var(--sans); font-size: .9rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .25s, color .25s, border-color .25s; }
.btn-primary { background: var(--white); color: var(--charcoal); }
.btn-primary:hover { background: var(--grey); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--white); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Divider motif: thin line with a crossguard ---------- */
.divider { display: flex; align-items: center; gap: 10px; color: var(--steel); margin: 0 0 28px; max-width: 220px; }
.divider svg { width: 40px; height: 12px; flex: none; }
.divider-line { height: 1px; flex: 1; background: var(--line-strong); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding: 72px 0 88px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-lines { position: absolute; inset: 0; pointer-events: none; }
.hero-lines span { position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent, var(--line) 20%, var(--line) 80%, transparent); }
.hero-lines span:nth-child(1) { left: 12%; }
.hero-lines span:nth-child(2) { display: none; } /* a centre line would cut through the copy */
.hero-lines span:nth-child(3) { right: 12%; }
.hero-lines span:nth-child(1), .hero-lines span:nth-child(3) { display: none; } /* would cross the copy on narrow screens; shown from 1280px */
/* Hero loop: black in the video is transparent on the page (screen blend), so only its light shows over the background.
   The poster holds the still frame until the loop plays; on narrow screens the sword sits behind the copy, so it is dimmer. */
.hero-video { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .38; }
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; opacity: .75; transition: opacity 1.6s var(--ease); }
.hero-video.is-playing video { opacity: 1; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
/* Copy on the left, set quietly: small eyebrow, a measured serif line, then the description. */
.hero-eyebrow { font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--steel); margin-bottom: 1.6em; display: flex; align-items: center; gap: 14px; }
.hero-eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--line-strong); }
.hero-headline { font-size: clamp(2rem, 5.4vw, 3.1rem); font-weight: 500; line-height: 1.12; max-width: 14em; margin-bottom: .55em; }
.hero-sub { color: var(--grey); max-width: 34em; font-size: 1.02rem; margin-bottom: 2.2em; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 360px; }

/* Right column: the three service lines as a quiet numbered index. */
.hero-visual { border-left: 1px solid var(--line-strong); padding-left: 32px; }
.hero-services { list-style: none; margin: 0; padding: 0; }
.hero-services a { display: flex; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--grey); text-decoration: none; font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; transition: color .3s, padding-left .3s var(--ease); }
.hero-services li:last-child a { border-bottom: 0; }
.hero-services a span { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; color: var(--steel); }
.hero-services a:hover { color: var(--white); padding-left: 6px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--panel); }
.section-title { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: .7em; }
.about-text p { color: var(--grey); font-size: 1.06rem; }
.about-text p:first-child { color: var(--white); font-family: var(--serif); font-size: clamp(1.3rem, 3.6vw, 1.6rem); line-height: 1.45; }

/* Services */
.service-grid { display: grid; gap: 20px; }
.service-card { position: relative; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 24px 28px; display: flex; flex-direction: column; }
.service-card::before { content: ''; position: absolute; top: -1px; left: 24px; width: 48px; height: 2px; background: var(--steel); }
.service-index { font-family: var(--serif); font-size: 1rem; color: var(--steel); letter-spacing: .2em; margin-bottom: 14px; }
.service-card h3 { font-size: 1.75rem; }
.service-intro { color: var(--white); font-size: 1.02rem; }
.service-points { list-style: none; margin: 4px 0 18px; padding: 0; color: var(--grey); }
.service-points li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--line); }
.service-points li::before { content: ''; position: absolute; left: 2px; top: 1.15em; width: 9px; height: 1px; background: var(--steel); }
.service-points li::after { content: ''; position: absolute; left: 9px; top: calc(1.15em - 3px); width: 1px; height: 7px; background: var(--steel); }
.service-points strong { color: var(--white); font-weight: 600; }
.service-note { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line-strong); color: var(--grey); font-size: .94rem; font-style: italic; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step { position: relative; display: flex; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-number { flex: none; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.5rem; color: var(--white); }
.step p { margin: 0; color: var(--grey); align-self: center; }
.step strong { color: var(--white); font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }

/* How we work: one process per line of business */
.how-group + .how-group { margin-top: 56px; }
.how-title { font-size: 1.45rem; color: var(--white); margin-bottom: 20px; display: flex; align-items: center; gap: 14px; }
.how-title::before { content: ''; width: 28px; height: 1px; background: var(--steel); flex: none; }

/* Offers: packages without prices; each ends in an enquiry link that fills in the contact form */
.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.offer { position: relative; background: var(--panel); padding: 30px 24px 28px; display: flex; flex-direction: column; }
.offer h3 { font-size: 1.55rem; margin-bottom: .35em; }
.offer-text { color: var(--grey); margin: 0 0 20px; }
.offer-includes-label { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--steel); margin: 0 0 8px; }
.offer-includes { list-style: none; margin: 0 0 24px; padding: 0; color: var(--grey); font-size: .95rem; }
.offer-includes li { position: relative; padding: 7px 0 7px 20px; border-top: 1px solid var(--line); }
.offer-includes li::before { content: ''; position: absolute; left: 2px; top: 1.05em; width: 9px; height: 1px; background: var(--steel); }
.offer-cta { margin-top: auto; align-self: flex-start; color: var(--white); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: border-color .25s; }
.offer-cta span { display: inline-block; transition: transform .25s var(--ease); }
.offer-cta:hover, .offer-cta:focus-visible { border-color: var(--white); }
.offer-cta:hover span, .offer-cta:focus-visible span { transform: translateX(4px); }
.offer { transition: background-color .4s var(--ease); }
.offer:hover { background: var(--panel-2); }

/* "From sketch to launch" band: a framed loop (screen blend, so its black is the panel) with a caption under it */
.reel { padding: 8px 0 0; }
.reel-frame { margin: 0; position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.reel-media { aspect-ratio: 16 / 9; }
.reel-media video { display: block; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; opacity: .8; transition: opacity 1.4s var(--ease); }
.reel-media.is-playing video { opacity: 1; }
.reel-caption { display: grid; gap: 6px; padding: 20px 24px 22px; border-top: 1px solid var(--line); }
.reel-eyebrow { margin: 0; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--steel); }
.reel-text { margin: 0; color: var(--grey); max-width: 46em; }

/* Why Ascalon */
.section-intro { color: var(--grey); max-width: 46em; font-size: 1.05rem; margin: -.4em 0 2.4em; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { background: var(--panel); padding: 28px 24px; }
.tile h3 { font-size: 1.6rem; margin-bottom: .3em; }
.tile h3::after { content: ''; display: block; width: 28px; height: 1px; background: var(--steel); margin-top: 12px; }
.tile p { margin: 0; color: var(--grey); }

/* Contact */
.contact-grid { display: grid; gap: 40px; }
.contact-intro > p { color: var(--grey); font-size: 1.06rem; }
.details-title { font-family: var(--sans); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); margin: 32px 0 12px; }
.contact-details { list-style: none; margin: 0; padding: 0; }
.contact-details li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.detail-label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.detail-value { overflow-wrap: anywhere; }

.contact-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; position: relative; }
.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 0; }
.field label { display: block; font-size: .85rem; color: var(--grey); margin-bottom: 6px; letter-spacing: .02em; }
.req { color: var(--white); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; background: var(--charcoal); color: var(--white);
  border: 1px solid var(--line-strong); border-radius: var(--radius); font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color .2s;
}
textarea { resize: vertical; min-height: 140px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--grey) 50%), linear-gradient(135deg, var(--grey) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input:hover, select:hover, textarea:hover { border-color: var(--grey); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--white); outline-offset: 1px; border-color: var(--white); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { color: var(--error); font-size: .85rem; margin: 6px 0 0; }
.field-check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.field-check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--white); }
.field-check label { margin: 0; color: var(--grey); font-size: .9rem; line-height: 1.55; }
.field-check .field-error { grid-column: 2; }
.form-required-note { font-size: .8rem; color: var(--grey); margin: 0 0 16px; }
.form-notice { font-size: .85rem; line-height: 1.55; color: var(--grey); margin: 0 0 14px; }
.form-status { border-left: 2px solid var(--error); padding: 8px 12px; color: var(--white); background: rgba(232, 165, 160, .08); margin-bottom: 18px; font-size: .92rem; }
.form-success { text-align: center; padding: 24px 8px 8px; }
.form-success .sword { width: 14px; height: 42px; color: var(--steel); margin: 0 auto 16px; }
.form-success p { font-family: var(--serif); font-size: 1.45rem; line-height: 1.4; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 88px; min-height: 60vh; }
.legal-back { margin-bottom: 32px; font-size: .9rem; }
.legal-back a { color: var(--grey); }
.legal-updated { color: var(--grey); font-size: .9rem; }
.legal section { padding: 20px 0; border-top: 1px solid var(--line); }
.legal h2 { font-size: 1.6rem; }
.legal section p { color: var(--grey); margin: 0; }
.legal section p + p, .legal section ul + p { margin-top: 12px; }
.legal section ul { color: var(--grey); margin: 10px 0 0; padding-left: 1.2em; }
.legal section li { margin: 4px 0; }

/* ---------- Service showcases: our work (screenshots) and companies we work with (logos) ---------- */
.service-link { align-self: flex-start; margin-top: 18px; color: var(--white); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: border-color .25s; }
.service-link span { display: inline-block; transition: transform .25s var(--ease); }
.service-link:hover { border-color: var(--white); }
.service-link:hover span { transform: translateX(4px); }
.projects .section-intro { margin-bottom: 40px; }
.project-grid { display: grid; gap: 24px; }
.project-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.project-shot { aspect-ratio: 16 / 10; background: var(--panel); border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.project-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.project-card:hover .project-shot img { transform: scale(1.03); }
.project-body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.project-type { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--steel); margin-bottom: .6em; }
.projects .project-body h2 { font-size: 1.6rem; margin-bottom: .35em; }
.project-body > p:not(.project-type):not(.project-private) { color: var(--grey); }
.project-body .btn, .project-private { margin-top: auto; }
.project-body .btn { align-self: flex-start; }
.project-private { color: var(--steel); font-size: .85rem; letter-spacing: .06em; margin-bottom: 0; }
.project-details { list-style: none; margin: 0 0 20px; padding: 12px 0 0; border-top: 1px solid var(--line); font-size: .88rem; color: var(--grey); }
.project-details li + li { margin-top: 4px; }
.is-partner .project-shot { aspect-ratio: 3 / 1; padding: 24px 32px; }
.is-partner .project-shot img { width: auto; height: auto; max-width: 70%; max-height: 64px; object-fit: contain; filter: grayscale(1) brightness(1.6); opacity: .85; transition: filter .4s, opacity .4s; }
.is-partner:hover .project-shot img { transform: none; filter: none; opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--footer); }
.footer-top { display: grid; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-brand p { color: var(--grey); margin: 16px 0 0; max-width: 360px; font-size: .95rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.footer-links a { color: var(--grey); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-legal ul { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--grey); font-size: .8rem; }
.footer-notice { margin: 16px 0 0; max-width: 72ch; color: var(--grey); font-size: .78rem; line-height: 1.6; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Film grain over the whole page: breaks up the flat charcoal without adding a picture. */
body::after { content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Motion layer (assets/js/motion.js) ----------
   Every hidden starting state is scoped under html.motion, which motion.js sets only when the visitor has not asked for
   reduced motion - without JS or with reduced motion everything is simply shown. */

/* Split headings: each word rises out of its own clipped line. */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.split .w > span { display: inline-block; }
.motion .split .w > span { transform: translateY(108%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0ms) + var(--i) * 45ms); }
.motion .split.is-in .w > span { transform: none; }

/* Hero: a slow steel glow that drifts and leans toward the pointer; the guide lines draw down on load. */
.hero::before { content: ''; position: absolute; inset: -10%; pointer-events: none; background: radial-gradient(640px circle at var(--gx, 72%) var(--gy, 38%), rgba(169, 177, 186, .11), transparent 62%); }
.motion .hero::before { animation: hero-drift 22s ease-in-out infinite alternate; }
@keyframes hero-drift { from { transform: translate3d(-3%, -2%, 0); } to { transform: translate3d(3%, 3%, 0); } }
.motion .hero-lines span { transform: scaleY(0); transform-origin: top; transition: transform 1.8s var(--ease) .35s; }
.motion .hero-lines.is-in span { transform: none; }

/* Hero service index: rows slide in one by one; hover draws a steel underline and lights the number. */
.motion .hero-services li { opacity: 0; transform: translateX(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.motion .hero-visual.is-visible li { opacity: 1; transform: none; }
.motion .hero-visual.is-visible li:nth-child(1) { transition-delay: .45s; }
.motion .hero-visual.is-visible li:nth-child(2) { transition-delay: .57s; }
.motion .hero-visual.is-visible li:nth-child(3) { transition-delay: .69s; }
.hero-services a { position: relative; }
.hero-services a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--steel); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.hero-services a:hover::after, .hero-services a:focus-visible::after { transform: scaleX(1); }
.hero-services a span { transition: color .3s; }
.hero-services a:hover span { color: var(--white); }

/* Section divider: the rule draws out and the ornament traces itself. */
.motion .divider .divider-line { transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); }
.motion .divider svg { opacity: 0; transform: translateX(-8px); transition: opacity .8s var(--ease) .5s, transform .8s var(--ease) .5s; }
.motion .divider svg path { stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset 1.4s var(--ease) .5s; }
.motion .divider.is-in .divider-line { transform: none; }
.motion .divider.is-in svg { opacity: 1; transform: none; }
.motion .divider.is-in svg path { stroke-dashoffset: 0; }

/* Scroll-driven, fed by motion.js as CSS variables (0..1). `translate`/`scale` are separate from `transform`, so they
   do not fight the reveal transitions on the same elements. */
.motion .hero-copy { translate: 0 calc(var(--out, 0) * -56px); opacity: calc(1 - var(--out, 0) * .75); }
.motion .hero-visual { translate: 0 calc(var(--out, 0) * -110px); }
.motion .reel-frame { clip-path: inset(0 calc((1 - var(--rp, 1)) * 10%) round var(--radius)); scale: calc(.95 + var(--rp, 1) * .05); }
/* Offers: a hairline draws across the top of each card, then its list comes in line by line. */
.offer::before { content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 1px; background: var(--steel); transform: scaleX(0); transform-origin: left; }
.motion .offer::before { transition: transform 1s var(--ease); transition-delay: calc(var(--delay, 0ms) + 150ms); }
.motion .offer.is-visible::before, html:not(.motion) .offer::before { transform: none; }
.motion .offer .offer-includes li { opacity: 0; translate: -10px 0; transition: opacity .5s var(--ease), translate .5s var(--ease); transition-delay: calc(var(--delay, 0ms) + 350ms + var(--n, 0) * 70ms); }
.motion .offer.is-visible .offer-includes li { opacity: 1; translate: 0 0; }
/* Process subheadings and tile rules draw themselves when they arrive. */
.motion .how-title::before { transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) .15s; }
.motion .how-title.is-visible::before { transform: none; }
.motion .tile h3::after { width: 0; }
.motion .tile.is-visible h3::after { width: 28px; transition-delay: calc(var(--delay, 0ms) + 300ms); }
.motion .tile.is-visible:hover h3::after { width: 64px; transition-delay: 0ms; }

/* About: the lead sentence lights up word by word as it scrolls through the screen. */
/* Unlit words stay at 4.5:1 contrast on the background (opacity .2 was 1.8:1, unreadable before the scroll reached them). */
.motion .scrub .sw { opacity: .54; transition: opacity .35s linear; }
.motion .scrub .sw.on { opacity: 1; }

/* Service cards: points follow the card in; on a pointer device the card tilts slightly and a steel light follows the cursor. */
.motion .service-card .service-points li { opacity: 0; transform: translateX(-10px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--delay, 0ms) + 350ms + var(--n) * 70ms); }
.motion .service-card.is-visible .service-points li { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .service-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease); background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), rgba(169, 177, 186, .10), transparent 60%); }
  .service-card:hover { border-color: var(--line-strong); }
  .service-card:hover::after { opacity: 1; }
}

/* Steps: the numbers ring in; on desktop a white line runs along the row as the section scrolls by. */
.motion .step.is-visible .step-number { animation: step-ring 1.2s var(--ease) both; animation-delay: var(--delay, 0ms); }
@keyframes step-ring {
  0% { transform: scale(.6); opacity: 0; box-shadow: 0 0 0 0 rgba(169, 177, 186, .45); }
  60% { transform: scale(1); opacity: 1; }
  100% { box-shadow: 0 0 0 14px rgba(169, 177, 186, 0); }
}
.steps { position: relative; }

/* Tiles: hover lifts the tile and stretches its rule. */
.tile { transition: background-color .4s var(--ease); }
.tile h3::after { transition: width .5s var(--ease); }
.tile:hover { background: var(--panel-2); }
.tile:hover h3::after { width: 64px; }

/* Buttons: a light sweep on hover; motion.js adds a small magnetic pull on pointer devices. */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-18deg); opacity: 0; }
.btn:hover::after { opacity: 1; animation: btn-sweep .9s var(--ease); }
.btn-ghost::after { background: linear-gradient(100deg, transparent, rgba(169, 177, 186, .22), transparent); }
@keyframes btn-sweep { from { left: -60%; } to { left: 130%; } }
.btn.magnetic { transition: background-color .25s, color .25s, border-color .25s, transform .35s var(--ease); }

/* Form: the field being filled in lights its label; the success sword rises in. */
.field label { transition: color .3s; }
.field:focus-within label { color: var(--white); }
.form-success:not([hidden]) .sword { animation: sword-rise 1s var(--ease) both; }
@keyframes sword-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Back to top, with a ring that fills as the page is read. */
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(19, 19, 21, .9); color: var(--white); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { position: absolute; inset: 0; width: 48px; height: 48px; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke-width: 1.5; }
.to-top .track { stroke: var(--line); }
.to-top .bar { stroke: var(--steel); stroke-dasharray: 138.2; stroke-dashoffset: 138.2; }
.to-top span { font-size: 1.1rem; line-height: 1; transition: transform .3s var(--ease); }
.to-top:hover span { transform: translateY(-3px); }
@media (min-width: 960px) {
  .to-top { right: 28px; bottom: 28px; }
  .steps::before { content: ''; position: absolute; top: 0; left: 0; height: 1px; width: calc(var(--p, 0) * 100%); background: var(--white); z-index: 1; }
}

/* Without JavaScript the menu is simply shown under the header. */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .header-inner { flex-wrap: wrap; }
html:not(.js) .site-nav { display: block; position: static; width: 100%; padding: 0 0 12px; border: 0; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  .hero-actions { flex-direction: row; max-width: none; width: auto; }
  .field-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .contact-form { padding: 36px 32px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .offers { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .contact-details li { grid-template-columns: 120px 1fr; align-items: baseline; }
  .footer-links { grid-template-columns: repeat(3, auto); justify-content: start; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --header-h: 76px; --gutter: 40px; }
  .nav-toggle { display: none; }
  .site-nav { position: static; display: flex !important; align-items: center; gap: 28px; padding: 0; border: 0; background: none; max-height: none; overflow: visible; }
  .nav-links { display: flex; gap: 26px; }
  .nav-links a { padding: 6px 0; border: 0; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; position: relative; }
  .nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
  .lang-switch { margin: 0; padding-left: 22px; border-left: 1px solid var(--line); }
  .section { padding: 112px 0; }
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .service-card { padding: 40px 32px 32px; }
  .service-card::before { left: 32px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .step { flex-direction: column; gap: 18px; padding: 32px 0 0; border-top: 1px solid var(--line-strong); }
  .step:last-child { border-bottom: 0; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .tile { padding: 36px 28px; }
  .offers { grid-template-columns: repeat(3, 1fr); }
  .offer { padding: 36px 30px 32px; }
  .reel { padding-top: 16px; }
  .reel-caption { grid-template-columns: minmax(220px, auto) 1fr; align-items: baseline; gap: 40px; padding: 26px 36px 28px; }
  .how-group + .how-group { margin-top: 80px; }
  .contact-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr auto; align-items: start; }
  .hero-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
  .hero-video { opacity: 1; }
}
/* 960-1279px: seven menu items must fit on one line (the logo already links home), and the sword sits closer to the
   service list, so the loop is dimmer there. */
@media (min-width: 960px) and (max-width: 1279px) {
  .site-nav { gap: 18px; }
  .nav-links { gap: 18px; }
  .nav-links a { white-space: nowrap; font-size: .74rem; letter-spacing: .07em; }
  .nav-links li:first-child { display: none; }
  .lang-switch { padding-left: 16px; }
  .hero-video { opacity: .55; }
}
@media (min-width: 1280px) {
  .hero-lines span:nth-child(1), .hero-lines span:nth-child(3) { display: block; }
}
