@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
}

:root {
  --ink: #111820;
  --ink-2: #18232d;
  --paper: #f3f5f4;
  --white: #ffffff;
  --steel: #8c979f;
  --line: #ccd2d4;
  --signal: #dfe924;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", Arial, sans-serif; font-size: 16px; line-height: 1.6; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--signal); padding: .75rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }

.site-header { height: 88px; background: rgba(243,245,244,.97); border-bottom: 1px solid rgba(17,24,32,.13); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); }
.header-inner { width: min(calc(100% - 48px), var(--max)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; height: 58px; width: 176px; align-items: center; }
.brand img { width: 176px; height: auto; }
.nav-main { display: flex; align-items: center; gap: 2rem; }
.nav-main a { text-decoration: none; font-size: .9rem; font-weight: 600; }
.nav-main a:not(.nav-cta):hover { opacity: .55; }
.nav-main a[aria-current="page"]:not(.nav-cta) { border-bottom: 2px solid var(--signal); }
.nav-cta { background: var(--ink); color: white; padding: .7rem 1.05rem; }
.menu-button { display: none; background: none; border: 0; padding: 10px; }
.menu-button > span:not(.sr-only) { display: block; width: 26px; height: 2px; margin: 5px 0; background: var(--ink); }

.hero { min-height: calc(100svh - 88px); position: relative; display: flex; align-items: flex-end; overflow: hidden; color: white; background: var(--ink); }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,15,20,.94) 0%, rgba(9,15,20,.72) 45%, rgba(9,15,20,.18) 100%), url("officina-hero.webp") center/cover no-repeat; transform: scale(1.02); }
.hero-grid { position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.34) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.34) 1px, transparent 1px); background-size: 82px 82px; mask-image: linear-gradient(90deg, #000 0%, transparent 78%); }
.hero-content { position: relative; z-index: 2; width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 9rem 0 7rem; }
.eyebrow { margin: 0 0 1.2rem; text-transform: uppercase; letter-spacing: .13em; font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.8); }
.eyebrow::before { content: ""; width: 38px; height: 2px; background: var(--signal); display: inline-block; vertical-align: middle; margin-right: .8rem; }
h1, h2, h3 { font-family: "Manrope", Arial, sans-serif; letter-spacing: -.045em; line-height: 1.04; }
h1 { max-width: 850px; font-size: clamp(3.4rem, 7.5vw, 7.2rem); margin: 0 0 1.8rem; font-weight: 700; }
h1 span { color: var(--signal); }
.hero-copy { max-width: 635px; font-size: clamp(1.08rem, 1.7vw, 1.35rem); color: rgba(255,255,255,.82); margin: 0 0 2.25rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 1rem; padding: .85rem 1.25rem; text-decoration: none; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--signal); color: var(--ink); }
.button-ghost { border: 1px solid rgba(255,255,255,.45); color: white; }
.hero-index { position: absolute; z-index: 2; right: max(24px, calc((100% - var(--max))/2)); bottom: 4rem; font: 700 clamp(4rem, 10vw, 9rem)/1 "Manrope"; color: rgba(255,255,255,.12); }
.hero-index span { color: var(--signal); }

.proof { background: var(--white); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); padding-inline: max(24px, calc((100% - var(--max))/2)); }
.proof-item { padding: 2rem 2.2rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.proof-item:first-child { border-left: 1px solid var(--line); }
.proof-item strong { font: 700 1.3rem/1.2 "Manrope"; }
.proof-item span { color: #65717a; font-size: .92rem; margin-top: .3rem; }

.section { padding: 8rem max(24px, calc((100% - var(--max))/2)); }
.section-kicker { display: flex; align-items: center; gap: 1rem; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; margin-bottom: 3.5rem; }
.section-kicker span { display: inline-grid; place-items: center; width: 35px; height: 35px; border: 1px solid currentColor; border-radius: 50%; font-size: .7rem; }
.section-kicker.light { color: rgba(255,255,255,.75); }
.company > .section-kicker { margin-bottom: 2rem; }
.company-layout { display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.company-copy h2, .section-heading h2, .contact h2 { font-size: clamp(2.5rem, 5vw, 4.7rem); margin: 0 0 2rem; }
.company-copy h2 { font-size: clamp(2.5rem, 4.2vw, 4.25rem); }
.title-line { white-space: nowrap; }
.company-copy p, .section-heading p, .contact p { color: #59666f; max-width: 625px; font-size: 1.08rem; }
.text-link { display: inline-flex; gap: .7rem; align-items: center; margin-top: 1rem; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--signal); }
.section-link-light, .section-link-dark { display: inline-flex; align-items: center; gap: .8rem; margin-top: 2rem; font-weight: 700; text-decoration: none; }
.section-link-light { color: white; border-bottom: 2px solid var(--signal); }
.section-link-dark { color: var(--ink); border-bottom: 2px solid var(--signal); }
.company-image { margin: 0; position: relative; }
.company-image::before { content: ""; position: absolute; left: -18px; top: 20px; width: 7px; height: 38%; background: var(--signal); z-index: 2; }
.company-image img { aspect-ratio: 4/3; object-fit: cover; filter: saturate(.72) contrast(1.07); }
.company-image figcaption { display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; padding-top: .8rem; }
.company-image figcaption span { color: #7d8991; }

.work { background: var(--ink); color: white; }
.light-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 4rem; align-items: end; }
.light-heading p { color: rgba(255,255,255,.65); margin-bottom: 2.2rem; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255,255,255,.17); border-left: 1px solid rgba(255,255,255,.17); }
.work-card { min-height: 365px; padding: 2.4rem; border-right: 1px solid rgba(255,255,255,.17); border-bottom: 1px solid rgba(255,255,255,.17); display: flex; flex-direction: column; position: relative; transition: background .25s ease; }
.work-card:hover { background: var(--ink-2); }
.work-card.featured { background: var(--signal); color: var(--ink); }
.work-number { color: #849099; font-size: .8rem; font-weight: 700; }
.featured .work-number { color: rgba(17,24,32,.5); }
.work-card h3 { font-size: clamp(1.8rem, 3vw, 2.7rem); margin: 4rem 0 1rem; }
.work-card p { color: rgba(255,255,255,.63); max-width: 480px; margin: 0; }
.featured p { color: rgba(17,24,32,.72); }
.work-spec { margin-top: auto; padding-top: 2rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem; border-top: 1px solid rgba(255,255,255,.16); }
.featured .work-spec { border-top-color: rgba(17,24,32,.22); }
.work-spec span { color: #8f9ba3; font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; }
.featured .work-spec span { color: rgba(17,24,32,.55); }
.work-spec strong { font-size: 1.05rem; text-align: right; }

.machines { padding-bottom: 5rem; }
.machines-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 8vw, 8rem); }
.machine-list { border-top: 1px solid var(--line); }
.machine-list article { display: grid; grid-template-columns: 72px 1fr; gap: 1rem; padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.machine-count { font: 700 1.45rem "Manrope"; color: #8b959d; }
.machine-list h3 { margin: 0 0 .35rem; font-size: 1.35rem; }
.machine-list p { margin: 0; color: #66727b; }
.wide-image { margin-top: 6rem; height: min(46vw, 520px); position: relative; overflow: hidden; }
.wide-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.08); }
.wide-image span { position: absolute; left: 1.5rem; bottom: 1.5rem; color: white; background: rgba(17,24,32,.9); padding: .55rem .75rem; text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; }

.quality { background: #24303a; color: white; position: relative; overflow: hidden; }
.quality::after { content: "P"; position: absolute; right: -2rem; bottom: -8rem; font: 800 30rem/1 "Manrope"; color: rgba(255,255,255,.025); }
.quality-inner { position: relative; z-index: 2; }
.quality-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(4rem, 10vw, 10rem); }
.quality h2 { font-size: clamp(2.8rem, 5vw, 5rem); margin: 0 0 2rem; }
.quality p { color: rgba(255,255,255,.64); font-size: 1.08rem; max-width: 560px; }
.instrument-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(255,255,255,.18); }
.instrument-list li { padding: 1.2rem 0; border-bottom: 1px solid rgba(255,255,255,.18); font: 600 1.05rem "Manrope"; }
.instrument-list span { display: inline-block; width: 3.5rem; color: var(--signal); font-size: .74rem; }

.contact { background: var(--signal); }
.contact-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(4rem, 10vw, 10rem); }
.contact p { color: rgba(17,24,32,.7); margin-bottom: 2rem; }
.button-dark { background: var(--ink); color: white; }
.contact-details { border-top: 1px solid rgba(17,24,32,.3); }
.contact-details > div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(17,24,32,.3); }
.contact-details span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: rgba(17,24,32,.55); }
.contact-details a, .contact-details p { font: 600 1.05rem/1.45 "Manrope"; text-decoration: none; margin: 0; color: var(--ink); }
.contact-details a:hover { text-decoration: underline; }

.site-footer { background: #0b1117; color: white; padding: 3rem max(24px, calc((100% - var(--max))/2)); display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 2rem; }
.footer-brand { font: 800 1.7rem "Manrope"; letter-spacing: -.04em; }
.footer-brand span { color: var(--signal); }
.footer-copy { color: rgba(255,255,255,.5); font-size: .85rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .82rem; color: rgba(255,255,255,.65); text-decoration: none; }

.page-hero { min-height: 62vh; background: var(--ink); color: white; position: relative; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 82px 82px; }
.page-hero-content { position: relative; z-index: 2; width: min(calc(100% - 48px), var(--max)); margin: 0 auto; padding: 7rem 0 5rem; }
.page-hero .breadcrumb { color: rgba(255,255,255,.55); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.5rem; }
.page-hero .breadcrumb a { text-decoration: none; }
.page-hero h1 { font-size: clamp(3.4rem, 7vw, 6.5rem); margin-bottom: 1.5rem; }
.page-hero p { max-width: 670px; color: rgba(255,255,255,.68); font-size: 1.15rem; }
.page-hero-accent { position: absolute; right: max(24px, calc((100% - var(--max))/2)); bottom: 4rem; width: 120px; height: 10px; background: var(--signal); }
.detail-section { padding: 5.5rem max(24px, calc((100% - var(--max))/2)); }
.detail-section.white { background: white; }
.detail-section.dark { background: var(--ink); color: white; }
.detail-heading { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 7rem); margin-bottom: .8rem; align-items: start; }
.detail-heading > .section-kicker { margin: .45rem 0 0; align-self: start; }
.detail-heading h2 { font-size: clamp(2.4rem, 4vw, 4rem); margin: 0; }
.detail-heading p { color: #64717a; margin: .4rem 0 0; font-size: 1.08rem; max-width: 650px; }
.dark .detail-heading p { color: rgba(255,255,255,.62); }
.split-copy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.split-copy p { font-size: 1.08rem; color: #5e6b74; }
.split-copy > div > p:first-child { margin-top: 0; }
.statement { max-width: 550px; margin: 0; color: var(--ink) !important; font-family: "Manrope", Arial, sans-serif; font-size: clamp(1.65rem, 2.35vw, 2.55rem) !important; font-weight: 700; line-height: 1.16; letter-spacing: -.045em; transform: translateY(-2.4rem); }
.editorial-columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.editorial-left .section-kicker { margin: .45rem 0 0; }
.editorial-left .statement { margin-top: clamp(4.5rem, 7vw, 7rem); transform: none; }
.editorial-right h2 { margin: 0; font-size: clamp(2.4rem, 4vw, 4rem); }
.editorial-lead, .editorial-body p { color: #64717a; font-size: 1.08rem; }
.editorial-lead { margin: .7rem 0 0; }
.editorial-body { margin-top: 2.2rem; }
.editorial-body p:first-child { margin-top: 0; }
.editorial-cycle .editorial-left .statement { margin-top: clamp(3.5rem, 5.5vw, 5.5rem); }
.quality-intro { max-width: 760px; margin-bottom: 3rem; }
.quality-intro .section-kicker { margin-bottom: 2.2rem; }
.quality-copy h2 { margin: 0; font-size: clamp(2.7rem, 4.6vw, 4.6rem); }
.quality-copy p { max-width: 700px; margin: 1rem 0 0; color: rgba(255,255,255,.64); font-size: 1.08rem; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.timeline article { min-height: 220px; padding: 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.timeline strong { display: block; font: 700 2rem "Manrope"; margin-bottom: 2rem; }
.timeline p { color: #64717a; margin: 0; }
.service-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(255,255,255,.18); border-left: 1px solid rgba(255,255,255,.18); }
.service-detail { padding: 2.5rem; min-height: 350px; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); display: flex; flex-direction: column; }
.service-detail h2 { font-size: clamp(2rem, 3vw, 3rem); margin: 2rem 0 1rem; }
.service-detail p { color: rgba(255,255,255,.62); }
.service-detail .specs { margin-top: auto; padding-top: 2rem; display: grid; gap: .65rem; }
.spec-row { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.13); padding-top: .7rem; }
.spec-row span { color: rgba(255,255,255,.48); }
.machine-category { margin-bottom: 5rem; }
.machine-category h2 { font-size: clamp(2.4rem, 4vw, 4rem); margin: 0 0 2rem; }
.machine-table { width: 100%; border-collapse: collapse; }
.machine-table th, .machine-table td { padding: 1rem .75rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.machine-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #75818a; }
.machine-table td:first-child { width: 90px; color: #7b878f; font-weight: 700; }
.quality-panel { background: var(--signal); padding: clamp(2rem, 5vw, 5rem); display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.quality-panel h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin: 0; }
.quality-panel ul { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2.5rem; }
.quality-panel li { margin-bottom: .75rem; break-inside: avoid; }
.quote-checklist { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 3rem; }
.quote-checklist div { padding: 1.8rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote-checklist span { display: block; color: #87929a; font-size: .75rem; margin-bottom: 2.5rem; }
.quote-checklist strong { font: 700 1.1rem "Manrope"; }
.map-link { display: block; min-height: 360px; background: #d9dddc; position: relative; text-decoration: none; overflow: hidden; }
.map-link::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(25deg, transparent 47%, rgba(17,24,32,.13) 48%, rgba(17,24,32,.13) 51%, transparent 52%), linear-gradient(-35deg, transparent 46%, rgba(17,24,32,.1) 47%, rgba(17,24,32,.1) 50%, transparent 51%); background-size: 160px 120px, 210px 160px; }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: var(--ink); color: white; padding: 1.1rem 1.3rem; box-shadow: 0 12px 30px rgba(17,24,32,.25); }
.map-pin strong, .map-pin span { display: block; }
.map-pin span { color: rgba(255,255,255,.62); font-size: .82rem; margin-top: .2rem; }
.privacy-content { max-width: 860px; }
.privacy-intro { margin: 0 0 3.5rem; color: #59666f; font-size: 1.12rem; }
.privacy-block { padding: 2rem 0; border-top: 1px solid var(--line); }
.privacy-block h2 { margin: 0 0 1rem; font-size: clamp(1.55rem, 2.8vw, 2.25rem); }
.privacy-block p, .privacy-block li { color: #59666f; }
.privacy-block ul { margin: .75rem 0 0; padding-left: 1.25rem; }
.privacy-block a { text-underline-offset: .2em; }
.privacy-updated { margin-top: 2rem; color: #75818a; font-size: .9rem; }

@media (max-width: 900px) {
  .site-header { height: 76px; }
  .header-inner { width: min(calc(100% - 32px), var(--max)); }
  .brand { width: 150px; }
  .brand img { width: 150px; }
  .menu-button { display: block; z-index: 2; }
  .nav-main { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--paper); padding: 1rem 24px 1.5rem; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; }
  .nav-main.open { display: flex; }
  .nav-main a { padding: .8rem 0; }
  .nav-cta { margin-top: .5rem; padding-inline: 1rem !important; }
  .hero { min-height: calc(100svh - 76px); }
  .hero-content { padding: 7rem 0 4.5rem; }
  .hero-index { display: none; }
  .proof { grid-template-columns: 1fr; }
  .proof-item, .proof-item:first-child { border-left: 1px solid var(--line); }
  .section { padding-block: 5.5rem; }
  .company-layout, .light-heading, .machines-layout, .quality-layout, .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .detail-heading, .split-copy, .quality-panel { grid-template-columns: 1fr; gap: 1.6rem; }
  .editorial-columns { grid-template-columns: 1fr; gap: 2rem; }
  .editorial-left .statement, .editorial-cycle .editorial-left .statement { margin-top: 2.5rem; }
  .detail-heading > .section-kicker { margin-top: 0; }
  .statement { transform: none; }
  .timeline { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .quote-checklist { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 330px; }
  .wide-image { margin-top: 4rem; height: 55vw; min-height: 280px; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 520px) {
  .hero-content { width: calc(100% - 32px); }
  h1 { font-size: clamp(3rem, 15vw, 4.2rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .section-kicker { margin-bottom: 2.5rem; }
  .company-copy h2, .section-heading h2, .contact h2 { font-size: 2.6rem; }
  .proof-item { padding-inline: 1.3rem; }
  .work-card { padding: 1.5rem; }
  .work-card h3 { margin-top: 3rem; }
  .work-spec { align-items: start; flex-direction: column; }
  .work-spec strong { text-align: left; }
  .contact-details > div { grid-template-columns: 85px 1fr; }
  .page-hero-content { width: calc(100% - 32px); padding-block: 5rem 3.5rem; }
  .page-hero-accent { bottom: 2rem; width: 70px; }
  .detail-section { padding-block: 4.25rem; }
  .machine-table thead { display: none; }
  .machine-table, .machine-table tbody, .machine-table tr, .machine-table td { display: block; width: 100%; }
  .machine-table tr { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .machine-table td { border: 0; padding: .2rem 0; }
  .machine-table td:first-child { width: 100%; }
  .quote-checklist { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
