@font-face {
  font-family: Inter;
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("fonts/BarlowSemiCondensed-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #f9f8f4;
  --ink: #172e2c;
  --body: #394a46;
  --green: #1c3734;
  --amber: #ffcb58;
  --line: #cbd1c7;
  --frame: clamp(1.25rem, 5vw, 5.75rem);
  --display: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #007872; outline-offset: 4px; }
.hero :focus-visible, .handling :focus-visible, .footer :focus-visible { outline-color: var(--amber); }
.wrap { width: min(100% - var(--frame) * 2, 84rem); margin-inline: auto; }
.section-space { padding-block: clamp(4.5rem, 7vw, 7rem); }
.skip { position: absolute; top: .75rem; left: 1rem; z-index: 20; padding: .8rem 1rem; background: white; color: var(--ink); transform: translateY(-160%); }
.skip:focus { transform: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; }
h2 { font-size: clamp(2.7rem, 4.65vw, 4.8rem); line-height: .99; letter-spacing: -.032em; }
p { line-height: 1.65; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.95rem; padding: .75rem 1.35rem;
  border: 1px solid transparent; border-radius: 2px;
  font-size: .9375rem; font-weight: 650; line-height: 1.25; text-decoration: none; text-align: center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #31534c; }
.button-yellow { background: var(--amber); color: #152a24; }
.button-yellow:hover { background: #ffda84; }
.eyebrow {
  display: flex; align-items: center; gap: .75rem;
  font-size: .82rem; font-weight: 670; line-height: 1.3;
  letter-spacing: .12em; text-transform: uppercase;
}
.rule { display: block; width: 1.8rem; height: 3px; flex: 0 0 auto; background: var(--amber); }
.masthead { background: var(--paper); position: relative; z-index: 5; }
.masthead-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: block; width: 11.5rem; max-width: 100%; min-width: 0; }
.brand img { width: 100%; height: auto; }
.main-nav, .masthead-actions, .languages { display: flex; align-items: center; }
.main-nav { gap: clamp(1.4rem, 2.6vw, 2.9rem); }
.main-nav a, .languages a { text-decoration: none; }
.main-nav a { font-size: .9625rem; font-weight: 560; padding-block: .65rem; }
.main-nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .26em; }
.masthead-actions { gap: clamp(1rem, 2.2vw, 2.3rem); }
.languages { gap: .1rem; }
.languages a { position: relative; display: inline-grid; place-items: center; min-width: 2.2rem; min-height: 2.55rem; color: #50605c; font-size: .875rem; font-weight: 560; }
.languages a[aria-current] { color: var(--ink); font-weight: 750; }
.languages a[aria-current]::after, .languages a:hover::after { content: ""; height: 2px; position: absolute; bottom: .35rem; left: .55rem; right: .55rem; background: var(--ink); }
.menu-toggle { display: none; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #162e2c; color: #fff; }
.hero-photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 53%; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, rgba(10,30,29,.97) 0%, rgba(12,30,29,.93) 22%, rgba(12,31,30,.78) 41%, rgba(13,28,26,.36) 60%, rgba(10,23,19,.05) 80%);
}
.hero-inner {
  min-height: clamp(35rem, 44vw, 45rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding-block: clamp(3.75rem, 6vw, 6.75rem);
}
.hero-label { color: #fff6d8; margin-bottom: clamp(1.3rem, 2vw, 2.2rem); }
.hero h1 { font-size: clamp(4.25rem, 7.15vw, 7.15rem); line-height: .97; letter-spacing: -.043em; max-width: 100%; }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--amber); }
:lang(lv) > body .hero h1 { font-size: clamp(3.9rem, 6.3vw, 6.35rem); }
.hero-intro { max-width: min(34rem, 48%); margin-top: 1.45rem; color: #f2f4ee; font-size: clamp(1.03rem, 1.27vw, 1.2rem); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.65rem; margin-top: 2rem; }
.hero-actions .button { min-height: 3.2rem; padding-inline: 1.5rem; }
.hero-secondary { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .945rem; font-weight: 630; color: white; text-underline-offset: .33rem; text-decoration-color: #b7c8bd; text-decoration-thickness: 1px; }
.hero-secondary:hover { text-decoration-color: var(--amber); }

.section-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: end; margin-bottom: clamp(2rem, 3.3vw, 3.4rem); }
.section-intro p { max-width: 33rem; justify-self: end; font-size: 1.04rem; color: var(--body); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.5vw, 2.7rem); align-items: start; }
.service-card > img { width: 100%; height: auto; aspect-ratio: 1.64; object-fit: cover; background: #c9c4b8; }
.card-copy { padding-top: 1.2rem; }
.card-copy h3 { font-size: clamp(1.6rem, 2.1vw, 2.25rem); letter-spacing: -.027em; line-height: 1.05; }
.card-copy > p { font-size: 1rem; line-height: 1.57; margin-block: .8rem 1rem; color: var(--body); }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.card-details { border-top: 1px solid var(--line); }
.card-details summary, .option summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-details summary { padding-block: .8rem; min-height: 2.8rem; font-size: .9rem; font-weight: 650; }
.plus { position: relative; display: block; width: 1rem; height: 1rem; flex: 0 0 auto; }
.plus::before, .plus::after { content: ""; position: absolute; inset: calc(50% - 1px) 0 auto; height: 2px; background: currentColor; }
.plus::after { transform: rotate(90deg); }
details[open] > summary .plus::after { display: none; }
.card-details summary:hover span:first-child { text-decoration: underline; text-underline-offset: .22em; }
.card-details ul { padding: .1rem .25rem .4rem 1.15rem; color: var(--body); font-size: .97rem; line-height: 1.55; }
.card-details li + li { margin-top: .45rem; }
.card-details li::marker { color: #866015; }

.handling { color: #fafaf4; background: var(--green); }
.handling-layout { display: grid; }
.handling-layout.enhanced { grid-template-columns: minmax(0, .88fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 6.8vw, 7.5rem); align-items: center; }
.handling .eyebrow { color: #ffdd87; margin-bottom: 1.2rem; }
.section-lead { max-width: 30rem; font-size: 1.02rem; color: #d7e0d8; margin-top: 1.15rem; }
.option-list { margin-top: 1.75rem; }
.option { border-top: 1px solid #5b7068; }
.option:last-child { border-bottom: 1px solid #5b7068; }
.option summary { min-height: 3.4rem; padding-block: .65rem; font-size: clamp(1.05rem, 1.4vw, 1.35rem); font-weight: 580; letter-spacing: -.025em; }
.option[open] summary, .option summary:hover { color: #ffda82; }
.option-body p { padding-bottom: 1rem; font-size: 1rem; line-height: 1.55; color: #e0e6df; }
.option-body img { width: 100%; height: auto; max-width: 42rem; margin: .25rem 0 1.2rem; }
.option-stage { display: none; }
@media (min-width: 901px) {
  .enhanced .option-stage { position: relative; display: block; align-self: stretch; min-height: 26rem; background: #263d36; }
  .option-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .enhanced .option-body img { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
}

.process-layout { display: grid; grid-template-columns: 1.05fr .92fr; gap: clamp(2.75rem, 7vw, 7.5rem); align-items: center; }
.dock-image { position: relative; min-height: 30rem; align-self: stretch; background: #d1d1c8; }
.dock-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.process-copy .eyebrow { margin-bottom: 1.15rem; color: #42584b; }
.process-copy .rule { background: #ad7413; }
.stage-list { padding: 0; list-style: none; counter-reset: stage; margin-top: 2rem; }
.stage-list li { position: relative; border-top: 1px solid var(--line); padding: 1rem 0 .95rem 2.8rem; counter-increment: stage; }
.stage-list li::before { content: counter(stage, decimal-leading-zero); position: absolute; left: 0; top: 1.13rem; color: #667467; font-size: .92rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stage-list h3 { font-size: 1.55rem; letter-spacing: -.018em; line-height: 1.13; }
.stage-list p { margin-top: .38rem; font-size: 1rem; line-height: 1.55; color: var(--body); }
.contact { background: #ffce63; color: var(--ink); padding-block: clamp(3.8rem, 6.5vw, 6.6rem); }
.contact-layout { display: grid; grid-template-columns: 1fr .87fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.contact .eyebrow { margin-bottom: 1rem; }
.contact .rule { background: var(--ink); }
.contact h2 { max-width: 9.5em; }
.contact-text { max-width: 35rem; margin-top: 1.2rem; color: #344135; font-size: 1.02rem; }
.contact-actions { position: relative; }
.email { display: inline-block; font-family: var(--display); font-size: clamp(2.9rem, 5.1vw, 5rem); line-height: 1; font-weight: 600; letter-spacing: -.035em; text-decoration: none; }
.email:hover, .copy-email:hover { text-decoration: underline; text-underline-offset: .12em; }
.contact-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.25rem; margin-top: 1.3rem; }
.copy-email { min-height: 2.8rem; padding: .5rem 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: .94rem; font-weight: 600; }
.copy-status { display: block; margin-top: .5rem; font-size: .9rem; }
.copy-status:empty { margin: 0; }
.footer { padding: 3.7rem 0 1.4rem; background: #142a29; color: #f5f6ef; }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem 5rem; }
.footer .brand { width: 12.5rem; }
.footer-id { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.company-name { font-size: 1rem; color: #d3ddd4; }
.company-info { flex: 0 1 36rem; }
.company-info h2 { font: 635 1.05rem/1.35 Inter, Arial, sans-serif; letter-spacing: 0; }
.company-info dl { display: grid; grid-template-columns: .8fr 1.35fr; gap: 1.5rem; margin: 1rem 0; font-size: .96rem; line-height: 1.6; }
.company-info dt { color: #c0cdc4; font-size: .875rem; }
.company-info dd { margin-top: .18rem; }
.registry-link, .footer-bottom a { text-underline-offset: .22em; text-decoration-color: #a4b9ad; }
.registry-link { font-size: .9rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 2.7rem; border-top: 1px solid #465d55; padding-top: 1.3rem; color: #cad5cb; font-size: .85rem; line-height: 1.5; }
.footer-bottom a { white-space: nowrap; padding-block: .35rem; }

@media (max-width: 1000px) {
  :root { --frame: clamp(1.25rem, 4vw, 3.5rem); }
  .masthead-inner { gap: 1.1rem; min-height: 4.5rem; }
  .main-nav { gap: 1.4rem; }
  .hero-inner { min-height: 34rem; }
  .hero-intro { max-width: min(33rem, 61%); }
  .service-grid { gap: 1.25rem; }
  .process-layout { gap: 2.8rem; }
}
@media (max-width: 900px) {
  .handling-layout.enhanced { grid-template-columns: 1fr; gap: 0; }
  .handling-copy { max-width: 100%; }
  .option-body { max-width: 47rem; }
  .option-body img { aspect-ratio: 2.25; object-fit: cover; max-width: 100%; }
  .process-layout { grid-template-columns: .8fr 1fr; gap: 2rem; }
  .contact-layout { grid-template-columns: 1.05fr .85fr; gap: 2rem; }
}
@media (max-width: 760px) {
  .masthead-inner { display: grid; grid-template: minmax(4.25rem, auto) / minmax(0, 1fr) auto; min-height: 0; gap: 0 1rem; }
  .masthead .brand { width: 10.25rem; }
  .masthead-actions { grid-column: 2; grid-row: 1; gap: .8rem; }
  .header-quote { display: none; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; border-top: 1px solid var(--line); min-height: 3rem; }
  .masthead.has-menu .main-nav { display: none; }
  .masthead.has-menu.is-open .main-nav { display: flex; padding-block: .5rem; }
  .masthead.has-menu .menu-toggle { position: relative; display: block; height: 2.7rem; width: 2.7rem; border: 1px solid #afb9af; border-radius: 2px; background: none; color: var(--ink); cursor: pointer; }
  .menu-toggle span { display: block; position: absolute; left: 25%; width: 50%; height: 2px; background: currentColor; transition: transform .18s ease; }
  .menu-toggle span:first-child { top: calc(50% - 4px); }
  .menu-toggle span:last-child { top: calc(50% + 3px); }
  .is-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .is-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { display: flex; flex-direction: column; }
  .hero::before { display: none; }
  .hero-inner { order: 0; min-height: auto; padding-block: clamp(2.6rem, 7vw, 4.2rem); }
  .hero-photo { order: 1; position: static; z-index: auto; height: clamp(11.5rem, 47vw, 18.5rem); object-position: 77% 48%; }
  .hero h1, :lang(lv) > body .hero h1 { font-size: clamp(3.4rem, 9.8vw, 5.25rem); }
  .hero-intro { max-width: 34rem; margin-top: 1.2rem; }
  .hero-actions { margin-top: 1.4rem; gap: .5rem 1.25rem; }
  .hero-actions .button { min-height: 2.95rem; }
  .section-intro { grid-template-columns: 1fr; gap: 1.1rem; margin-bottom: 1.75rem; }
  .section-intro p { justify-self: start; }
  .service-grid { grid-template-columns: 1fr; gap: 2rem; }
  .service-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: start; gap: 1.2rem; }
  .service-card > img { aspect-ratio: 1.2; }
  .card-copy { padding-top: 0; }
  .process-layout, .contact-layout { grid-template-columns: 1fr; }
  .dock-image { order: 1; min-height: 0; aspect-ratio: 1.85; }
  .stage-list { margin-top: 1.35rem; }
  .contact-layout { gap: 2rem; }
  .footer-main { gap: 2.3rem; }
  .company-info { flex-basis: 100%; }
  .footer-id { flex-direction: row; align-items: center; gap: 1.1rem; }
}
@media (max-width: 540px) {
  .section-space { padding-block: 3.7rem; }
  .hero-label, .eyebrow { font-size: .78rem; }
  .hero h1, :lang(lv) > body .hero h1 { font-size: clamp(2.95rem, 10.7vw, 3.8rem); }
  .hero-intro { font-size: 1rem; }
  .service-card { display: block; }
  .service-card > img { aspect-ratio: 1.66; }
  .card-copy { padding-top: 1rem; }
  .card-copy h3 { font-size: 1.95rem; }
  .card-copy > p { margin: .55rem 0 .75rem; }
  .service-grid { gap: 2.3rem; }
  .option-body img { aspect-ratio: 1.65; }
  .footer { padding-top: 2.7rem; }
  .company-info dl { grid-template-columns: 1fr; gap: .8rem; }
  .footer-bottom { align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
