:root {
  --ink: #102d40;
  --paper: #f8fafc;
  --aqua: #63a8a4;
  --mist: #dce8ec;
  --muted: #425f6e;
  --line: #b7cbd1;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { display: block; max-width: 100%; object-fit: cover; }
figure, dl, dd { margin: 0; }
p { line-height: 1.65; margin: 0 0 1rem; }
h1, h2, h3 { margin: 0 0 .7em; line-height: 1.08; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; }
h1 { font-size: clamp(3rem, 4.35vw, 4.25rem); margin-bottom: .29em; }
h1 span, h1 em { display: block; }
h1 em { color: #327773; font-weight: 400; }
h2 { font-size: clamp(2.2rem, 4.3vw, 4.25rem); }
h3 { font-size: 1.15rem; }
a { color: inherit; text-underline-offset: .25em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #26736f; outline-offset: 4px; }
.wrap { width: min(100% - 3rem, 1250px); margin-inline: auto; }
.section { padding-block: clamp(3.75rem, 7.4vw, 7rem); }
.label { font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 1rem; }
.caption { font-size: .875rem; color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.45vw, 1.22rem); color: var(--muted); max-width: 36ch; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; top: 1rem; left: 1rem; z-index: 5; background: white; padding: .65rem; }

.top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding-block: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand img { flex: none; }
.brand strong { display: block; font: 1.55rem/.95 var(--serif); letter-spacing: -.035em; }
.brand small { display: block; margin-top: .32rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .93rem; text-decoration: none; }
nav a:hover, #factory:hover { text-decoration: underline; }
.menu { display: none !important; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 46px;
  padding: .65rem 1.16rem;
  border: 1px solid transparent;
  border-radius: 99px;
  background: transparent;
  color: inherit;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s, color .18s, border-color .18s;
}
.primary { background: var(--ink); color: var(--paper); }
.primary:hover { background: #21495c; }
.outline { border-color: var(--line); }
.outline:hover, .filters [aria-pressed="true"] { background: var(--mist); border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.65rem; }

.hero { display: grid; grid-template-columns: .95fr 1.1fr; padding-block: .8rem 3.5rem; min-height: min(640px, 56vw); }
.hero-copy { align-content: center; padding: clamp(2rem, 5vw, 5.8rem) clamp(1.4rem, 4vw, 5rem); background: #edf4f3; border-radius: 1.15rem 0 0 1.15rem; }
.hero-media { position: relative; min-width: 0; isolation: isolate; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0 1.15rem 1.15rem 0; }
.hero-media figcaption { position: absolute; right: .85rem; bottom: .85rem; color: var(--ink); background: var(--paper); padding: .25rem .6rem; border-radius: 30px; font-size: .75rem; }
.intro { background: var(--mist); }
.intro-inner, .two-col { display: grid; grid-template-columns: 1fr .78fr; gap: clamp(1.5rem, 7vw, 8rem); align-items: start; }
.intro-inner { padding-block: clamp(3rem, 6vw, 5.8rem); align-items: end; }
.intro-inner h2 { max-width: 19ch; margin-bottom: 0; }
.intro-inner > p { max-width: 44ch; margin-bottom: .25rem; font-size: 1.13rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 1.3rem; }
.catalog { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(1rem, 4vw, 4rem); }
.procedure { display: grid; grid-template-columns: 110px 1fr; gap: .15rem 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.procedure img { grid-row: span 2; width: 100%; height: 100%; min-height: 110px; max-height: 170px; border-radius: .55rem; }
.procedure h3 { margin-bottom: .35rem; }
.procedure p { margin-bottom: .35rem; }
.procedure .caption { font-size: .75rem; }
.procedure .button { justify-self: start; align-self: end; padding: .5rem .7rem; }
.experience { background: var(--ink); color: var(--paper); }
.experience .label { color: #9fd0cc; }
.experience-grid, .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.65rem; }
.experience-grid > div { border-top: 1px solid #6c9098; padding-top: 1.25rem; }
.experience-grid p { color: var(--mist); }
.gallery { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: .8rem; margin-bottom: .65rem; }
.gallery button { padding: 0; border: 0; background: none; color: inherit; text-align: left; min-width: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 2.65; height: auto; border-radius: .65rem; transition: filter .2s; }
.gallery button:hover img { filter: brightness(.86); }
.gallery span { display: block; padding: .55rem 0; font-weight: 650; }
.team { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: #edf4f3; border-radius: 1rem; }
.team img { width: 100%; height: 100%; max-height: 450px; border-radius: 1rem 0 0 1rem; }
.team > div { padding: clamp(1.4rem, 5vw, 4.25rem); align-self: center; }
.steps { margin: 1.8rem 0 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li { border-top: 1px solid var(--line); padding-top: .85rem; counter-increment: steps; }
.steps li::before { content: counter(steps); display: grid; place-items: center; background: var(--mist); width: 2.35rem; aspect-ratio: 1; border-radius: 50%; margin-bottom: .8rem; font-weight: 700; }
.faq-band { background: #edf4f3; }
details { border-bottom: 1px solid var(--line); }
summary { font-weight: 700; cursor: pointer; padding: 1.05rem 0; }
details p { padding-right: .5rem; }
#hours div { display: flex; justify-content: space-between; gap: .8rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
dt { font-weight: 650; }
.closing { background: var(--ink); color: var(--paper); }
.closing-inner { padding-block: clamp(2.75rem, 6vw, 5rem); display: flex; gap: 1.4rem; align-items: center; justify-content: space-between; }
.closing h2 { max-width: 19ch; }
.closing p { margin: 0; color: var(--mist); }
.closing .button, .floating { background: var(--aqua); color: var(--ink); flex-shrink: 0; }
.closing .button:hover, .floating:hover { background: #b3ddd9; }
.footer { padding-block: 1.4rem 5.2rem; display: flex; flex-wrap: wrap; gap: .8rem 1.8rem; align-items: center; justify-content: space-between; }
.footer p { margin: 0; font-size: .875rem; color: var(--muted); }
#factory { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.floating { position: fixed; z-index: 3; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); box-shadow: 0 4px 14px #102d4030; border: 1px solid #598f8a; }

dialog { color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; width: min(100% - 1.5rem, 570px); max-height: 90dvh; padding: clamp(1rem, 4vw, 1.75rem); overflow-y: auto; }
dialog::backdrop { background: #102d40bb; }
dialog h2 { padding-right: 3rem; font-size: clamp(2rem, 5vw, 2.75rem); }
.close { position: absolute; top: .6rem; right: .6rem; width: 46px; padding: 0; font-size: 1.55rem; }
.close:hover { background: var(--mist); }
form, label { display: grid; gap: .55rem; }
form { gap: 1rem; }
form .button { justify-self: start; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
label { font-weight: 650; }
input, select, textarea { width: 100%; min-width: 0; min-height: 46px; padding: .6rem; background: white; color: inherit; border: 1px solid #77919d; border-radius: .35rem; }
textarea { resize: vertical; }
#errors { color: #8a2935; margin: 0; }
[aria-invalid="true"] { border-color: #8a2935; }
#copy-status { margin-top: .6rem; }
#lightbox { width: min(100% - 1.5rem, 880px); }
#light-image { width: 100%; max-height: 58dvh; object-fit: contain; background: var(--mist); border-radius: .4rem; }
.light-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .8rem; }
.light-controls p { margin: 0; text-align: center; font-size: .875rem; }

@media (max-width: 850px) {
  .menu { display: inline-flex !important; }
  .top-cta { display: none; }
  nav { display: none; position: absolute; inset: 100% 0 auto; z-index: 4; padding: .45rem .9rem; background: var(--paper); border: 1px solid var(--line); border-radius: .55rem; box-shadow: 0 7px 24px #102d4020; }
  nav.open { display: grid; gap: 0; }
  .procedure { grid-template-columns: 88px 1fr; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 2rem); }
  .hero, .intro-inner, .catalog, .team, .experience-grid, .steps, .two-col { grid-template-columns: 1fr; }
  .hero { padding: .3rem 0 2.1rem; }
  .hero-copy { border-radius: .85rem .85rem 0 0; padding: 1.8rem 1.12rem 1.6rem; }
  h1 { font-size: clamp(2.55rem, 9.5vw, 3.8rem); }
  .hero-media { aspect-ratio: 4 / 2.65; }
  .hero-media img { border-radius: 0 0 .85rem .85rem; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .team img { border-radius: 1rem 1rem 0 0; aspect-ratio: 4 / 2.55; height: auto; }
  .closing-inner { display: block; }
  .closing .button { margin-top: 1.2rem; }
  .fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
