/* Auve Production v2 – built from the FTB, AXDRIVE and Forge references. See DESIGN.md */
:root {
  --black: #000;
  --panel: #0d1014;
  --panel-2: #151a20;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.22);
  --grey: #8f98a5;
  --white: #fff;
  --blue: #0375ff;          /* Auve sinine – labels and highlights on black (5:1) */
  --blue-btn: #0366e6;      /* button fill, 5.2:1 with white text */
  --blue-btn-hover: #0258c7;
  --paper: #fff;
  --dots: #d6dbe1;
  --ink: #0d1014;
  --ink-2: #5b6470;
  --paper-line: #e3e7ec;

  --f-head: "Poppins", system-ui, sans-serif;
  --f-body: "Work Sans", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --space-6: clamp(80px, 11vw, 160px);
  --r-card: 28px;
  --r-img: 14px;
  --r-btn: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; background: var(--black); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, table { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--white); color: var(--black); padding: 10px 16px; border-radius: var(--r-btn); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); position: relative; }
.muted { color: var(--grey); }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- type ---------- */
  font-family: var(--f-head); font-weight: 600; letter-spacing: -0.02em;
}
.h1 { font-size: clamp(2.75rem, 7vw, 6rem); line-height: 1; letter-spacing: -0.04em; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.05; letter-spacing: -0.035em; max-width: 18ch; }
.h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; }
.h4 { font-size: 1.125rem; line-height: 1.3; }
.two-tone .tt-a { color: var(--grey); }
.two-tone .tt-a, .two-tone .tt-b { display: block; }
.label { font-family: var(--f-head); font-weight: 500; font-size: 0.95rem; color: var(--blue); margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--grey); max-width: 56ch; margin-top: 20px; }
.section-lead { color: var(--grey); font-size: 1.08rem; max-width: 52ch; margin-top: 16px; }
p { max-width: 68ch; }
.h1, .h2 { overflow-wrap: break-word; hyphens: auto; }

/* ghost words (FTB "Perfection", AXDRIVE wordmark) */
.ghost {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--f-head); font-weight: 600; line-height: 0.8; letter-spacing: -0.05em; white-space: nowrap;
  background: linear-gradient(to bottom, rgba(255,255,255,0.13), rgba(255,255,255,0));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  font-family: var(--f-head); font-weight: 500; font-size: 0.98rem;
  border-radius: var(--r-btn); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 0.92rem; }
.btn-blue { background: var(--blue-btn); color: #fff; }
.btn-blue:hover { background: var(--blue-btn-hover); }
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: #dfe3e8; }
.btn-outline { border-color: var(--line-2); color: #fff; }
.btn-outline:hover { border-color: #fff; }
.btn-upload { padding-inline: 20px 26px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.btn-row-center { justify-content: center; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header.in-hero { position: relative; background: transparent; backdrop-filter: none; border: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; padding-inline: var(--gutter); max-width: var(--max); margin-inline: auto; }
.in-hero .header-inner { max-width: none; padding-inline: clamp(16px, 3vw, 40px); min-height: 88px; }
.brand { display: inline-flex; color: #fff; }
.logo { width: 176px; height: auto; }
.site-nav { display: flex; align-items: center; flex: 1; gap: 24px; }
.nav-list { display: flex; gap: 28px; margin-left: clamp(16px, 3vw, 48px); }
.nav-list a { text-decoration: none; font-weight: 500; font-size: 0.98rem; color: #d4d9df; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav-list a:hover { color: #fff; }
.nav-list a[aria-current="page"] { color: #fff; border-bottom-color: var(--blue); }
.nav-end { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.lang { display: flex; gap: 10px; font-size: 0.9rem; font-weight: 500; }
.lang a { text-decoration: none; }
.lang a[aria-current] { color: #fff; border-bottom: 1px solid var(--blue); }
.lang-soon { color: #5d6570; cursor: default; }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .logo { width: 150px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; color: inherit; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease, background-color .2s ease; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -7px; }
  .menu-icon::after { top: 7px; }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none;
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: 8px var(--gutter) 28px; background: var(--panel); border-bottom: 1px solid var(--line);
  }
  .in-hero .site-nav { border-radius: 0 0 20px 20px; }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; margin: 0; }
  .nav-list a { display: block; padding: 14px 0; font-family: var(--f-head); font-size: 1.3rem; color: #fff; border-bottom: 1px solid var(--line); }
  .nav-list a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--line); }
  .nav-end { margin: 0; justify-content: space-between; }
}

/* ---------- hero (FTB card) ---------- */
.hero { padding: 12px; }
.hero-card {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: max(780px, calc(100svh - 24px));
  display: flex; flex-direction: column;
  border-radius: var(--r-card);
  background: radial-gradient(120% 70% at 50% 0%, #121820 0%, #06080a 55%, #000 100%);
  box-shadow: 0 0 0 1px var(--line), 0 30px 120px -40px rgba(3, 117, 255, 0.45);
}
.ghost-hero { top: 72px; left: 50%; transform: translateX(-50%); font-size: clamp(6rem, 21vw, 22rem); }
/* the spindle sits in the lower half, centred like FTB's drill bit */
.hero-photo { position: absolute; inset: 40% 0 0 0; z-index: 0; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 28% 18%;
  filter: grayscale(0.3) brightness(0.78) contrast(1.1);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 28%, #000 55%);
          mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 28%, #000 55%);
}
.hero-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; z-index: 0; background: linear-gradient(to top, rgba(0,0,0,0.92), transparent); pointer-events: none; }
.hero-content { position: relative; z-index: 2; text-align: center; padding: clamp(40px, 7vh, 96px) var(--gutter) 0; display: flex; flex-direction: column; align-items: center; }
.hero-title { font-size: clamp(2.6rem, 6.4vw, 6.25rem); line-height: 1; letter-spacing: -0.045em; }
.hero-lead { color: #c3c9d1; max-width: 50ch; margin: 24px auto 0; font-size: clamp(1rem, 1.25vw, 1.15rem); }
.hero-content .btn { margin-top: 32px; }
/* the three service areas, the only thing the hero points to */
.hero-services {
  position: relative; z-index: 2; margin-top: auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-inline: clamp(16px, 3vw, 40px); margin-bottom: 72px;
  border-top: 1px solid var(--line-2);
}
.hero-services li + li { border-left: 1px solid var(--line-2); }
.hero-services a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px clamp(16px, 2vw, 28px); text-decoration: none;
  font-family: var(--f-head); font-weight: 500; font-size: clamp(1.1rem, 1.6vw, 1.45rem); letter-spacing: -0.01em;
  transition: background-color .15s ease;
}
.hero-services a .ico { color: var(--blue); width: 22px; height: 22px; }
.hero-services a:hover { background: rgba(255,255,255,0.05); }
@media (max-width: 960px) {
  .hero-services { grid-template-columns: 1fr; margin-top: 240px; margin-bottom: 24px; }
  .hero-services li + li { border-left: 0; border-top: 1px solid var(--line-2); }
  .hero-services a { padding-inline: 4px; }
}
.hero-meta { position: absolute; z-index: 2; bottom: 24px; font-size: 0.8rem; line-height: 1.4; color: var(--grey); }
.hero-meta-left { left: clamp(16px, 3vw, 40px); }
.hero-meta-right { right: clamp(16px, 3vw, 40px); text-align: right; }

@media (max-width: 960px) {
  .hero { padding: 8px; }
  .hero-card { min-height: 0; border-radius: 22px; }
  .ghost-hero { top: 96px; font-size: 30vw; }
  .hero-photo { inset: 48% 0 0 0; }
  .hero-photo img { object-position: 34% 40%; }
  .hero-meta { display: none; }
}

/* ---------- partners ---------- */
.partners-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 48px; padding-block: 48px; border-bottom: 1px solid var(--line); }
.partners-title { font-size: 0.95rem; font-weight: 500; color: var(--grey); }
.partner-list { display: flex; align-items: center; flex-wrap: wrap; gap: 28px clamp(28px, 4.5vw, 72px); }
.partner-list img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: 0.6; }

/* ---------- about (AXDRIVE) ---------- */
.about { position: relative; padding-block: var(--space-6); overflow: hidden; }
.ghost-side { top: 8%; left: -2vw; font-size: clamp(10rem, 30vw, 30rem); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-p { color: var(--grey); margin-top: 20px; }
.features { margin-top: 36px; border-top: 1px solid var(--line); }
.features li { padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--grey); font-size: 0.98rem; }
.features strong { color: #fff; font-weight: 500; }
.about-fig { position: relative; }
.about-fig img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 50% 80%; border-radius: var(--r-img); filter: brightness(0.82) contrast(1.05); }

/* callout boxes with leader lines */
.callout {
  position: absolute; z-index: 2; max-width: 250px; padding: 12px 16px;
  background: rgba(13, 16, 20, 0.86); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2); border-radius: 10px; font-size: 0.85rem; color: var(--grey); line-height: 1.45;
}
.callout-title { color: #fff; font-size: 0.92rem; margin-bottom: 2px; }
.callout::before { content: ""; position: absolute; top: 50%; width: 64px; height: 1px; background: rgba(255,255,255,0.75); }
.callout::after { content: ""; position: absolute; top: calc(50% - 4px); width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(3,117,255,0.25); }
.callout-0 { top: 38%; left: -6%; }
.callout-0::before { left: 100%; }
.callout-0::after { left: calc(100% + 64px); }
.callout-1 { top: 47%; right: -4%; }
.callout-1::before { right: 100%; }
.callout-1::after { right: calc(100% + 64px); }
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .callout-0 { left: 12px; top: 12px; }
  .callout-1 { right: 12px; bottom: 12px; }
  .callout::before, .callout::after { display: none; }
}

/* ---------- light sections (Forge) ---------- */
.light {
  background-color: var(--paper); color: var(--ink);
  background-image: radial-gradient(var(--dots) 1px, transparent 1.3px);
  background-size: 22px 22px;
}
.light .section-lead, .light .lead { color: var(--ink-2); }
.light :focus-visible { outline-color: var(--blue-btn); }
.services { padding-block: var(--space-6); }
.services-page { padding-block: clamp(56px, 8vw, 112px); }
.center-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: clamp(48px, 6vw, 80px); }
.center-head .h2 { max-width: 20ch; }
.svc-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc-col { background: #fff; border: 1px solid var(--paper-line); border-radius: 20px; padding: 12px 12px 20px; display: flex; flex-direction: column; }
.svc-img { display: block; border-radius: 12px; overflow: hidden; background: #eef1f4; }
.svc-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.svc-col:hover .svc-img img { transform: scale(1.03); }
.svc-title { font-size: 1.5rem; margin: 22px 10px 0; }
.svc-title a { text-decoration: none; }
.svc-title a:hover { color: var(--blue-btn); }
.svc-summary { color: var(--ink-2); font-size: 0.95rem; margin: 10px 10px 22px; min-height: 6.4em; }
.svc-list { margin: 0 10px 0; padding-top: 0; border-top: 1px solid var(--paper-line); }
.svc-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--paper-line); text-decoration: none; font-weight: 500; }
.svc-list a:hover { color: var(--blue-btn); }
.svc-list .ico { color: var(--blue-btn); }
@media (max-width: 960px) { .svc-cols { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- grid lines (AXDRIVE engineering sections) ---------- */
.grid-lines {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 120px 120px;
  background-position: -1px -1px;
  background-color: var(--black);
}
.grid-lines { --line: rgba(255,255,255,0.06); }
.grid-lines .spec-table, .grid-lines .fit-inputs, .grid-lines .fit-sheet, .grid-lines .specs-drawing { --line: rgba(255,255,255,0.12); }

/* ---------- spec table (AXDRIVE parameter / specification) ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.spec-table thead th { font-family: var(--f-head); font-weight: 500; font-size: 0.85rem; color: var(--blue); text-align: left; padding: 0 12px 12px 0; border-bottom: 1px solid var(--line-2); }
.spec-table tbody th, .spec-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table tbody th { font-weight: 500; color: #fff; width: 48%; }
.spec-table td { color: var(--grey); }
.spec-table a { text-decoration: none; }
.spec-table a:hover { color: var(--blue); }
.spec-compact { max-width: 520px; margin-top: 28px; }

/* ---------- fit tool ---------- */
.fit { padding-block: var(--space-6); }
.fit-grid { display: grid; grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.35fr); gap: clamp(32px, 4vw, 64px); align-items: start; margin-top: clamp(40px, 5vw, 72px); }
.fit-inputs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 28px; }
.fit-inputs label { display: grid; grid-template-columns: 1fr auto; padding: 12px 14px 10px; border-right: 1px solid var(--line); }
.fit-inputs label:last-child { border-right: 0; }
.fit-inputs span { grid-column: 1 / -1; font-size: 0.8rem; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fit-inputs input {
  width: 100%; min-width: 0; border: 0; background: transparent; padding: 2px 0;
  font-family: var(--f-head); font-weight: 600; font-size: 1.6rem; font-variant-numeric: tabular-nums; color: #fff; -moz-appearance: textfield;
}
.fit-inputs input::-webkit-outer-spin-button, .fit-inputs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fit-inputs input:focus-visible { outline: none; }
.fit-inputs label:focus-within { box-shadow: inset 0 -2px 0 var(--blue); background: var(--panel-2); }
.fit-inputs em { font-style: normal; color: var(--grey); align-self: end; padding-bottom: 7px; font-size: 0.85rem; }
.fit-table td.num { white-space: nowrap; }
.fit-table td:last-child { text-align: right; padding-right: 0; }
.fit-table thead th:last-child { text-align: right; padding-right: 0; }
.fit-state { display: inline-block; font-family: var(--f-head); font-weight: 500; font-size: 0.82rem; padding: 3px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--grey); white-space: nowrap; }
.fit-table tr.is-fit .fit-state { background: var(--blue-btn); border-color: var(--blue-btn); color: #fff; }
.fit-note { margin-top: 20px; font-size: 0.9rem; color: var(--grey); }
.fit-form .btn { margin-top: 24px; }
.fit-sheet { position: sticky; top: 100px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-img); padding: clamp(14px, 2vw, 28px); }
.fit-svg { width: 100%; height: auto; display: block; }
.fit-sheet figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 14px; font-size: 0.85rem; color: var(--grey); }
.fit-legend { display: inline-flex; align-items: center; gap: 8px; }
.fit-legend i { width: 18px; height: 12px; border: 1.5px solid var(--blue); background: repeating-linear-gradient(135deg, rgba(3,117,255,.45) 0 2px, transparent 2px 5px); }
.fit-svg .bed { fill: none; stroke: rgba(255,255,255,0.32); stroke-width: 6; }
.fit-svg .bed.is-fit { stroke: var(--blue); stroke-width: 10; }
.fit-svg .bed-label { font: 500 70px var(--f-body); fill: var(--grey); }
.fit-svg .bed-label.is-fit { fill: #fff; }
.fit-svg .part { fill: url(#hatch); stroke: var(--blue); stroke-width: 10; }
.fit-svg .dim { stroke: rgba(255,255,255,0.7); stroke-width: 4; }
.fit-svg .dim-txt { font: 600 76px var(--f-head); fill: #fff; }
@media (max-width: 1000px) { .fit-grid { grid-template-columns: 1fr; } .fit-sheet { position: static; } }
@media (max-width: 600px) {
  .fit-svg .bed-label { font-size: 150px; }
  .fit-svg .dim-txt { font-size: 160px; }
  .fit-inputs input { font-size: 1.25rem; }
  .fit-table thead th:nth-child(2), .fit-table td.num { display: none; }
}

/* ---------- works ---------- */
.works-home { padding-block: var(--space-6); }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 72px); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 20px; }
.work a { display: block; text-decoration: none; }
.work-img { overflow: hidden; border-radius: var(--r-img); background: var(--panel); }
.work-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: brightness(0.9); transition: transform .6s ease, filter .3s ease; }
.work a:hover .work-img img { transform: scale(1.04); filter: brightness(1); }
.work-meta { padding-top: 16px; }
.work-cat { font-size: 0.82rem; color: var(--blue); font-family: var(--f-head); font-weight: 500; }
.work-title { font-size: 1.25rem; line-height: 1.25; margin-top: 4px; }
.work a:hover .work-title { color: var(--blue); }
.work-sub { color: var(--grey); font-size: 0.95rem; margin-top: 2px; }
.work[hidden] { display: none; }
.work-grid-featured { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.work-grid-featured .w0 { grid-column: span 2; grid-row: span 2; }
.work-grid-featured .w0 .work-img img { aspect-ratio: 4 / 3.45; }
.work-grid-featured .w0 .work-title { font-size: 1.75rem; }
@media (max-width: 1000px) { .work-grid, .work-grid-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .work-grid { grid-template-columns: 1fr; gap: 40px; }
  .work-grid-featured { gap: 32px 12px; }
  .work-grid-featured .w0 { grid-column: 1 / -1; grid-row: auto; }
  .work-grid-featured .work:not(.w0) .work-title { font-size: 1rem; }
  .work-grid-featured .work:not(.w0) .work-sub, .work-grid-featured .work:not(.w0) .work-cat { display: none; }
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.filters button { min-height: 44px; padding: 8px 18px; border: 1px solid var(--line-2); background: transparent; color: #fff; border-radius: 999px; cursor: pointer; font-weight: 500; }
.filters button:hover { border-color: #fff; }
.filters button[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }
.works-all { padding-bottom: var(--space-6); }

/* ---------- page heads ---------- */
.page-head { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 104px) clamp(56px, 7vw, 96px); }
.page-head .ghost { top: clamp(24px, 4vw, 48px); right: -2vw; font-size: clamp(6rem, 17vw, 17rem); }
.page-head-inner { z-index: 1; }
.crumbs { margin-bottom: 36px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.88rem; color: var(--grey); }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 10px; color: #4a525c; }
.crumbs a { color: var(--grey); }
.crumbs a:hover { color: #fff; }

/* ---------- category list ---------- */
.cat-list { padding-bottom: var(--space-6); }
.cat-item { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr); gap: 32px clamp(32px, 5vw, 80px); padding-block: 56px; border-top: 1px solid var(--line); }
.cat-img { display: block; border-radius: var(--r-img); overflow: hidden; }
.cat-img img, .cat-img .ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cat-body { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.cat-body p { color: var(--grey); }
.cat-body .h3 a { text-decoration: none; }
.cat-body .h3 a:hover { color: var(--blue); }
@media (max-width: 900px) { .cat-item { grid-template-columns: 1fr; padding-block: 40px; } }

/* photo placeholder – visible on purpose until real photos arrive */
.ph {
  display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; border-radius: var(--r-img);
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), var(--line) 50%, transparent calc(50% + 1px)),
    linear-gradient(to top left, transparent calc(50% - 1px), var(--line) 50%, transparent calc(50% + 1px)),
    var(--panel);
  border: 1px dashed var(--line-2);
}
.ph span { background: var(--panel); padding: 6px 12px; font-size: 0.88rem; color: var(--grey); }
.ph-portrait { aspect-ratio: 4 / 5; }

/* ---------- service page ---------- */
.svc-hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 120px); }
.svc-hero .ghost { bottom: -2vw; left: -1vw; font-size: clamp(5rem, 14vw, 14rem); }
.svc-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; z-index: 1; }
.svc-hero-text .btn { margin-top: 32px; }
.svc-hero-img { position: relative; }
.svc-hero-img img, .svc-hero-img .ph { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--r-img); }
.svc-hero-img .callout-0 { top: auto; bottom: 28px; left: -40px; }
.svc-hero-img .callout-0::before, .svc-hero-img .callout-0::after { display: none; }
@media (max-width: 960px) {
  .svc-hero-grid { grid-template-columns: 1fr; }
  .svc-hero-img .callout-0 { left: 12px; bottom: 12px; }
}
.specs { padding-block: var(--space-6); }
.specs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: clamp(40px, 5vw, 64px); }
.specs-main { display: grid; gap: 48px; }
.spec-title { font-size: 1.15rem; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; font-size: 0.92rem; color: #d4d9df; }
.specs-drawing { position: sticky; top: 100px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-img); padding: clamp(16px, 2.5vw, 32px); }
.area svg { width: 100%; height: auto; }
.area figcaption { margin-top: 12px; font-size: 0.85rem; color: var(--grey); }
.a-bed { fill: rgba(3,117,255,0.08); stroke: rgba(255,255,255,0.6); stroke-width: 3; }
.a-part { stroke: rgba(255,255,255,0.7); stroke-width: 6; }
.a-dim { stroke: var(--blue); stroke-width: 2; }
.a-ext { stroke: var(--blue); stroke-width: 1.5; }
.a-txt { font: 600 32px var(--f-head); fill: #fff; }
@media (max-width: 960px) { .specs-grid { grid-template-columns: 1fr; } .specs-drawing { position: static; } }

.siblings { padding-block: clamp(56px, 7vw, 96px); }
.siblings .h3 { margin-bottom: 24px; }
.sib-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sib-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: var(--panel); transition: border-color .15s ease; }
.sib-list a:hover { border-color: var(--blue); }
.sib-list span { font-family: var(--f-head); font-weight: 500; }
.sib-list small { grid-column: 1; color: var(--grey); font-size: 0.9rem; }
.sib-list .ico { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--blue); }

/* ---------- work detail ---------- */
.gallery-sec { padding-bottom: 72px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery li:first-child { grid-column: 1 / -1; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--panel); }
.gallery li:first-child img { aspect-ratio: 16 / 8; }
.gallery.g1 li:first-child img { aspect-ratio: auto; max-height: 80vh; object-fit: contain; }
.gallery.g2 { grid-template-columns: 1fr 1fr; }
.gallery.g2 li:first-child { grid-column: auto; }
.gallery.g2 li:first-child img { aspect-ratio: 4 / 3; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: var(--space-6); }
.pager a { display: grid; gap: 2px; padding-top: 24px; border-top: 1px solid var(--line-2); text-decoration: none; }
.pager a[rel="next"] { text-align: right; }
.pager span { font-size: 0.88rem; color: var(--grey); }
.pager strong { font-family: var(--f-head); font-weight: 600; font-size: 1.2rem; }
.pager a:hover strong { color: var(--blue); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.95); place-items: center; padding: 56px 16px 16px; border: 0; width: 100%; height: 100%; max-width: none; max-height: none; }
.lightbox[open] { display: grid; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 80px); object-fit: contain; border-radius: 8px; }
.lightbox button { position: absolute; top: 8px; right: 8px; width: 48px; height: 48px; border: 0; background: none; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.lightbox::backdrop { background: rgba(0,0,0,.95); }

/* ---------- quote page (Forge "upload your design") ---------- */
.page-light main { background-color: var(--paper); color: var(--ink); background-image: radial-gradient(var(--dots) 1px, transparent 1.3px); background-size: 22px 22px; }
.page-light .site-header { background: #fff; border-bottom-color: var(--paper-line); color: var(--ink); }
.page-light .brand, .page-light .nav-list a { color: var(--ink); }
.page-light .nav-list a:hover { color: var(--blue-btn); }
.page-light .lang a[aria-current] { color: var(--ink); }
.page-light .lang-soon { color: #9aa2ab; }
.page-light .site-header .btn-white { background: var(--blue-btn); color: #fff; }
@media (max-width: 960px) {
  .page-light .site-nav { background: #fff; border-bottom-color: var(--paper-line); }
  .page-light .nav-list a { color: var(--ink); border-bottom-color: var(--paper-line); }
}
.page-light main :focus-visible { outline-color: var(--blue-btn); }
.quote-hero { padding-block: clamp(48px, 7vw, 104px) 48px; text-align: center; }
.quote-hero-inner { display: flex; flex-direction: column; align-items: center; }
.quote-hero .h1 { max-width: 15ch; font-size: clamp(2.5rem, 6vw, 5.25rem); }
.quote-hero .lead { color: var(--ink-2); }
.page-light .crumbs a, .page-light .crumbs ol { color: var(--ink-2); }
.page-light .crumbs a:hover { color: var(--ink); }
.quote { padding-bottom: var(--space-6); }
.quote-form { max-width: 960px; margin-inline: auto; display: grid; gap: 20px; }
.drop {
  position: relative; text-align: center; padding: clamp(32px, 5vw, 56px) 24px; border-radius: 22px;
  border: 1.5px dashed #aeb7c2; background: rgba(255,255,255,0.85);
  display: flex; flex-direction: column; align-items: center; gap: 10px; transition: border-color .15s ease, background-color .15s ease;
}
.drop.is-over { border-color: var(--blue-btn); background: rgba(3,117,255,0.06); }
.drop-title { font-family: var(--f-head); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; }
.drop-or { color: var(--ink-2); font-size: 0.95rem; }
.drop .hint { margin-top: 6px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:has(.file-input:focus-visible) .btn-upload { outline: 2px solid var(--blue-btn); outline-offset: 3px; }
.drop-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.drop-list li { font-size: 0.88rem; padding: 4px 12px; border-radius: 999px; background: #eef1f4; color: var(--ink); }
.form-card { background: #fff; border: 1px solid var(--paper-line); border-radius: 22px; padding: clamp(20px, 4vw, 40px); display: grid; gap: 22px; box-shadow: 0 24px 60px -40px rgba(13,16,20,0.35); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 500; }
.opt, .hint { color: var(--ink-2); font-weight: 400; font-size: 0.88rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid #b5bdc7; border-radius: var(--r-btn); background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--blue-btn); outline-offset: 0; border-color: var(--blue-btn); }
.field [aria-invalid="true"] { border-color: #c4271b; }
.err { color: #b3261e; font-size: 0.88rem; }
.err:empty { display: none; }
.form-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--paper-line); }
.check { display: grid; gap: 4px; font-size: 0.9rem; color: var(--ink-2); }
.check li { position: relative; padding-left: 24px; }
.check li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 11px; height: 6px; border-left: 2px solid var(--blue-btn); border-bottom: 2px solid var(--blue-btn); transform: rotate(-45deg); }
.form-status { font-weight: 500; color: var(--blue-btn); }
.form-status:empty { display: none; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

/* ---------- contact ---------- */
.contact { padding-bottom: 72px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.spec-contact td { color: #fff; font-size: 1.1rem; }
.spec-contact td a:hover { color: var(--blue); }
.team { padding-bottom: var(--space-6); }
.team .h2 { margin-bottom: 40px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.person { display: grid; gap: 10px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA (AXDRIVE blurred photo) ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(96px, 13vw, 200px); text-align: center; }
.cta-bg { position: absolute; inset: -40px; z-index: -1; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(0.42) saturate(0.6); transform: scale(1.08); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, #000 0%, transparent 30%, transparent 70%, #000 100%); }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-title { font-size: clamp(2.75rem, 7vw, 6rem); max-width: 14ch; }
.cta-inner p { color: #c3c9d1; margin-top: 22px; max-width: 56ch; }

/* ---------- footer (AXDRIVE wordmark) ---------- */
.site-footer { background: var(--panel); color: var(--grey); padding-top: 72px; font-size: 0.95rem; overflow: hidden; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand { display: block; }
.footer-name { font-family: var(--f-head); font-weight: 600; color: #fff; font-size: 1.1rem; }
.footer-mail { color: var(--blue); text-decoration: none; font-weight: 500; }
.footer-mail:hover { text-decoration: underline; }
.footer-h { font-size: 0.85rem; color: var(--blue); font-weight: 500; margin-bottom: 14px; letter-spacing: 0; }
.site-footer li { padding: 4px 0; }
.site-footer ul a { text-decoration: none; color: #d4d9df; }
.site-footer ul a:hover { color: #fff; }
.footer-mark { height: clamp(56px, 10.5vw, 150px); overflow: hidden; padding-inline: var(--gutter); max-width: var(--max); margin-inline: auto; opacity: 0.09; color: #fff; }
.footer-mark .logo { width: 100%; height: auto; }
.footer-mark .logo .b { fill: #fff; }
.footer-base { border-top: 1px solid var(--line); padding-block: 22px; font-size: 0.82rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- example images (replaced by Auve photos before launch) ---------- */
.pic { display: block; position: relative; height: 100%; }
.demo-tag {
  position: absolute; top: 10px; left: 10px; z-index: 3; pointer-events: auto;
  font: 500 0.72rem/1 var(--f-body); color: #fff; padding: 5px 9px; border-radius: 999px;
  background: rgba(0,0,0,0.62); border: 1px solid rgba(255,255,255,0.28); backdrop-filter: blur(6px);
}
.hero-photo .demo-tag { top: 30%; left: auto; right: clamp(16px, 3vw, 40px); }

/* ---------- internal shot list page ---------- */
.shots { padding-bottom: var(--space-6); }
.shot-list { display: grid; gap: 12px; }
.shot { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-img); background: var(--panel); }
.shot img, .shot .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.shot-n { font-family: var(--f-head); font-weight: 500; color: #fff; }
.shot-need { color: #c3c9d1; margin-top: 6px; }
.shot-status { margin-top: 10px; font-size: 0.85rem; color: var(--blue); }
.shot.is-done .shot-status { color: #5fd38d; }
@media (max-width: 640px) { .shot { grid-template-columns: 1fr; } }

/* ---------- home capability rows: service, machine, what it can do ---------- */
.svc-list .svc-cap {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: start;
  padding: 14px 0; font-weight: 400;
}
.svc-cap-name { grid-column: 1; font-family: var(--f-head); font-weight: 500; font-size: 1.02rem; }
.svc-cap-machine { grid-column: 1; font-size: 0.85rem; color: var(--blue-btn); font-weight: 500; }
.svc-cap-spec { grid-column: 1; font-size: 0.9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; line-height: 1.45; }
.svc-cap .ico { grid-column: 2; grid-row: 1; margin-top: 3px; }
.svc-cap:hover .svc-cap-name { color: var(--blue-btn); }
.services:not(.services-page) .svc-img img { aspect-ratio: 16 / 9; }
.services:not(.services-page) .svc-summary { min-height: 0; }

/* quote form: spam trap and send states */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status.is-error { color: #b3261e; }
.quote-form [type=submit][disabled] { opacity: 0.7; cursor: progress; }

/* ---------- location + Google Maps (above footer) ---------- */
.location { padding-block: clamp(72px, 9vw, 128px); border-top: 1px solid var(--line); background: var(--black); }
.location-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.location-address { font-style: normal; font-family: var(--f-head); font-weight: 500; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; margin-top: 28px; color: #fff; }
.location-note { color: var(--grey); margin-top: 14px; max-width: 44ch; }
.location-map { position: relative; border-radius: var(--r-img); overflow: hidden; border: 1px solid var(--line); background: var(--panel); aspect-ratio: 16 / 10; }
.location-map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  /* dark map to match the site; hovering shows the original colours */
  filter: grayscale(1) invert(0.92) contrast(0.88) brightness(0.95);
  transition: filter .3s ease;
}
.location-map:hover iframe, .location-map:focus-within iframe { filter: none; }
@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; }
  .location-map { aspect-ratio: 4 / 3.4; }
}

/* footer: services under the company name, contact details in the right column */
.footer-col-end { grid-column: 3; }
@media (max-width: 760px) { .footer-col-end { grid-column: 1 / -1; } }

/* partner row: title above, logos spread across the full width */
.partners-inner { flex-direction: column; align-items: stretch; gap: 28px; }
.partner-list { justify-content: space-between; gap: 28px 32px; }
@media (max-width: 760px) { .partner-list { justify-content: flex-start; gap: 24px 32px; } }
