/* Ardila Marine AB — the website's one stylesheet.
   The family look of marineflowstudio.com, on purpose: the drawing sheet's paper, a technical
   type, the program's colours (the navy ink, the blue of a selected pipe, the magenta square of
   the title block) and a footer that is a title block. Light only, by choice. Less is more. */

/* ---------- Fonts ----------
   Served from this site, never from Google: the privacy notice names everyone who sees a
   visitor's address, and Google is not among them. The Latin files of Google Fonts (SIL Open
   Font License 1.1, see fonts/README.txt), one per weight the pages use. */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/barlow-400.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/barlow-500.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-700.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-600.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-700.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-500.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-mono-600.woff2) format('woff2'); }

:root {
  --ink: #1A2332;
  --ink-2: #33404F;
  --muted: #56657A;
  --line: #C9D2DD;
  --paper: #EEF1F5;
  --white: #FFFFFF;
  --blue: #2D6BE0;
  --blue-dark: #2457BD;
  --blue-text: #2259C4;
  --magenta: #C026D3;
  --node: #3FBE86;
  --night: #0F1722;
  --night-2: #121A24;
  --night-line: #26364F;
  --night-text: #E8EDF4;
  --night-muted: #B9C2CF;
  --night-faint: #8A94A6;
  --warn: #925600;
  --warn-bg: #FCF0DA;

  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: Barlow, 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --space: clamp(56px, 7vw, 104px);
  --ring: var(--white);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--blue-text); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.04; text-wrap: balance; }
p { margin: 0; }
b, strong { font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 30; padding: 10px 14px; background: var(--white); color: var(--ink); font-weight: 600; }
.skip:focus { left: 12px; }
.section { padding-block: var(--space); }
.paper { background: var(--paper); }
.rule-b { border-bottom: 1px solid var(--line); }
.rule-t { border-top: 1px solid var(--line); }
.stack { display: grid; gap: 18px; align-content: start; }
.stack-l { display: grid; gap: clamp(32px, 4vw, 56px); }
.stack-l > .wrap, .stack-l > .wrap-wide { width: 100%; }

/* ---------- Type ---------- */
.eyebrow { font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-text); }
.title-xl, .title-l, .title-band, .title-m, .title-s { font-family: var(--display); font-weight: 700; text-wrap: balance; }
.title-xl { font-size: clamp(44px, 5.3vw, 76px); line-height: 0.94; letter-spacing: -0.01em; }
.title-l { font-size: clamp(40px, 5.2vw, 72px); line-height: 0.98; }
.title-band { font-size: clamp(36px, 4.2vw, 60px); line-height: 1.02; }
.title-m { font-size: clamp(30px, 3vw, 40px); }
.title-s { font-size: 28px; line-height: 1.08; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; }
.fine { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.fine a { color: inherit; }
.small { font-size: 15.5px; color: var(--muted); }
.link { display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 44px; font-weight: 600; }
.link svg { width: 14px; height: 14px; flex: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 6px; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn svg { width: 14px; height: 14px; flex: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-secondary:hover { background: rgba(26, 35, 50, 0.06); }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px var(--night-faint); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header: the name and one button; the page's own index is its menu ---------- */
.site-header { position: relative; z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); }
.header-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 22px; min-height: 72px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand-name { font-size: 13px; font-weight: 700; letter-spacing: 0.09em; white-space: nowrap; }
.brand-square { width: 7px; height: 7px; flex: none; background: var(--magenta); }
@media (max-width: 379px) {
  .brand-name, .brand-square { display: none; }
}

/* ---------- Footer: a title block ---------- */
.site-footer { background: var(--white); border-top: 2px solid var(--ink); }
.footer-inner { display: grid; gap: 20px; padding-block: 28px 32px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 26px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { text-decoration: underline; }
.footer-nav .strong { color: var(--blue-text); font-weight: 700; }
.titleblock { display: flex; flex-wrap: wrap; margin: 0; background: var(--white); border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.titleblock > div { flex: 1 1 170px; display: grid; gap: 2px; align-content: start; min-width: 0; padding: 8px 12px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.titleblock > .wide { flex: 2 1 240px; }
.titleblock > .narrow { flex: 1 1 110px; }
.titleblock dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted); }
.titleblock dd { margin: 0; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.legal-line { font-size: 13.5px; color: var(--muted); }

/* ---------- Home: the opening ---------- */
/* Short, so the film below it is the first thing a visitor sees. */
.hero { display: flex; flex-wrap: wrap; align-items: end; gap: 22px clamp(32px, 5vw, 80px); padding-block: clamp(32px, 4vw, 56px) clamp(20px, 2vw, 28px); }
.hero-head { flex: 1.4 1 520px; min-width: 0; display: grid; gap: 16px; }
.hero-side { flex: 1 1 320px; min-width: 0; max-width: 460px; display: grid; gap: 18px; }

/* The opening's film: MV FULMAR turning, then its bunker stations drawn (site.js plays it
   while it is on screen). On the paper it is framed in ink, like a sheet on the table. */
.hero-media { padding-bottom: clamp(24px, 3vw, 36px); }
.hero-media .player { border-color: var(--ink); box-shadow: 0 24px 48px -30px rgba(26, 35, 50, 0.6); }
.hero-media figcaption { color: var(--muted); }

/* The four services, as the cells of a title block: the page's menu. */
.index-wrap { padding-bottom: clamp(40px, 6vw, 80px); }
.index { display: flex; flex-wrap: wrap; background: var(--white); border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.index a { flex: 1 1 230px; min-width: 0; min-height: 44px; display: grid; gap: 4px; align-content: start; padding: 12px 16px 14px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; }
.index a:hover { background: var(--paper); }
.index-no { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; color: var(--muted); }
.index-what { font-size: 16.5px; font-weight: 600; line-height: 1.35; }

.compare-media figcaption { max-width: 90ch; font-size: 14.5px; color: var(--muted); }

/* ---------- A section's head: its title on one side, its words on the other ---------- */
.head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px clamp(32px, 5vw, 80px); }
.head-title { flex: 1 1 400px; min-width: 0; display: grid; gap: 12px; }
.head-text { flex: 1.2 1 380px; min-width: 0; max-width: 58ch; font-size: 18px; color: var(--ink-2); }
.head-text.stack { gap: 20px; }

/* ---------- 01: the three phases, cells of a title block ---------- */
.phases { display: flex; flex-wrap: wrap; border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.phase { flex: 1 1 300px; min-width: 0; display: grid; gap: 14px; align-content: start; padding: 20px 22px 24px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.phase > p:not(.phase-no) { font-size: 16.5px; color: var(--ink-2); }
.phase-no { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.squares { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.squares li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.squares li::before { content: ""; width: 7px; height: 7px; flex: none; margin-top: 9px; background: var(--ink); }
.systems { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px clamp(32px, 5vw, 72px); }
.systems h3 { flex: 1 1 260px; min-width: 0; }
.chips { flex: 2 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 12px; background: var(--paper); border: 1px solid var(--line); font-size: 15.5px; font-weight: 500; line-height: 1.3; }
.callout { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 18px 22px; background: var(--paper); border: 1px solid var(--line); }
.callout b { font-size: 18px; font-weight: 600; }
.callout span { flex: 1 1 280px; min-width: 0; font-size: 16.5px; color: var(--ink-2); }

/* ---------- 02: the dark band, the program at work ---------- */
.band-dark { --ring: var(--night); background: var(--night); color: var(--night-text); }
.band-dark .eyebrow { color: var(--night-faint); }
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark p { color: var(--night-muted); }
.stack-band { display: grid; gap: clamp(28px, 3.4vw, 44px); }
/* A .wrap with auto margins in a grid does not stretch: it takes its fit-content width. */
.stack-band > * { width: 100%; }
.clip-media { margin-block: 0; display: grid; gap: 12px; }
.clip-media figcaption { max-width: 90ch; font-size: 14.5px; color: var(--muted); }
.band-dark .clip-media figcaption { color: var(--night-faint); }
/* The clip is the program itself, framed like a window. It plays muted and in a loop while it
   is on screen (site.js); with reduced motion it waits for its own button. */
.player { position: relative; overflow: hidden; border: 1px solid var(--night-line); border-radius: 10px; background: var(--night-2); box-shadow: 0 32px 64px -40px rgba(0, 0, 0, 0.9); }
.player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--night-2); }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px 0 18px; border: 1.5px solid rgba(255, 255, 255, 0.6); border-radius: 999px; background: rgba(15, 23, 34, 0.84); color: var(--white); font: inherit; font-size: 16px; font-weight: 600; white-space: nowrap; cursor: pointer; box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.7); }
.play svg { width: 16px; height: 16px; flex: none; fill: currentColor; }
.play .play-time { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--night-muted); }
.play:hover { background: var(--blue); border-color: var(--blue); }
.play:hover .play-time { color: var(--white); }

/* ---------- 03: the scan and its redrawing, one over the other ---------- */
.compare-media { margin-block: 0; display: grid; gap: 10px; }
.compare { --split: 50%; position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--ink); box-shadow: 0 24px 48px -30px rgba(26, 35, 50, 0.6); }
.compare img { width: 100%; height: auto; }
.compare .compare-after { position: absolute; inset: 0; height: 100%; clip-path: inset(0 0 0 var(--split)); }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; background: var(--blue); }
.compare-label { position: absolute; top: 12px; left: 12px; padding: 4px 8px; background: var(--white); border: 1px solid var(--ink); font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; line-height: 1.3; }
.compare-label.right { left: auto; right: 12px; color: var(--blue-text); }
@media (max-width: 599px) {
  .compare-label { top: 6px; left: 6px; padding: 2px 5px; font-size: 9.5px; }
  .compare-label.right { left: auto; right: 6px; }
  /* On a phone the drawing is too small to carry them: the slider's own SCAN and REDRAWN say it. */
  .compare-media:has(.compare-control:not([hidden])) .compare-label { display: none; }
}
.compare-control { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; color: var(--muted); }
.compare-control input { flex: 1 1 auto; min-width: 0; min-height: 44px; margin: 0; accent-color: var(--blue); cursor: ew-resize; }
.two-lists { display: flex; flex-wrap: wrap; gap: 32px clamp(32px, 5vw, 72px); }
.two-lists > .stack { flex: 1 1 340px; min-width: 0; gap: 14px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; font-size: 16.5px; }
.checks li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 4px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%232D6BE0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.checks.ruled { gap: 0; border-top: 1.5px solid var(--ink); }
.checks.ruled li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); counter-reset: step; }
.steps li { display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; counter-increment: step; }
.steps li::before { content: counter(step); min-width: 1em; font-family: var(--mono); font-weight: 600; color: var(--blue-text); }

/* ---------- 04: tools for a design office ---------- */
.tools { display: flex; flex-wrap: wrap; gap: 20px; }
.tool { flex: 1 1 240px; min-width: 0; display: grid; gap: 10px; align-content: start; padding: 22px; border: 1.5px solid var(--ink); }
.tool h3 { font-family: var(--body); font-size: 20px; line-height: 1.25; }
.tool p:not(.tag) { font-size: 16px; color: var(--ink-2); }
.tag { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; }
.tag::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--node); box-shadow: 0 0 0 2px var(--ring), 0 0 0 3.5px var(--node); }
.how { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px clamp(32px, 5vw, 72px); }
.how > .stack { flex: 1 1 340px; min-width: 0; gap: 12px; }
.how > .stack p { font-size: 16.5px; color: var(--ink-2); }
.how > .steps { flex: 1.4 1 420px; min-width: 0; }

/* ---------- About ---------- */
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px clamp(32px, 5vw, 72px); }
.portrait { flex: 0 1 320px; min-width: 0; margin: 0; display: grid; gap: 10px; }
.portrait .photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--white); border: 1px solid var(--line); }
.portrait figcaption { font-size: 14.5px; color: var(--muted); }
.story { flex: 1 1 440px; min-width: 0; max-width: 640px; display: grid; gap: 18px; align-content: start; }
.story > p:not(.eyebrow):not(.lede) { color: var(--ink-2); }

/* ---------- Contact: the closing band ---------- */
.cta { display: grid; gap: 18px; justify-items: start; }
.cta h2 { max-width: 16ch; }
.cta-text { max-width: 54ch; font-size: 18px; color: var(--ink-2); }
.contact-mail { max-width: 100%; font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; text-underline-offset: 4px; }

/* ---------- Page heads ---------- */
.page-head { display: grid; gap: 14px; padding-block: clamp(48px, 6vw, 88px) clamp(40px, 5vw, 64px); }
.page-head .lede { max-width: 52ch; }
.page-head h1 { max-width: 18ch; }

/* ---------- Company and privacy ---------- */
.docs { display: grid; gap: 56px; padding-block: clamp(48px, 6vw, 88px); }
.doc { display: grid; gap: 16px; max-width: 860px; scroll-margin-top: 24px; }
.doc.wide { max-width: none; }
.doc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.doc-intro { max-width: 72ch; color: var(--ink-2); }
.draft-badge { padding: 3px 8px; border: 1px solid var(--warn); background: var(--warn-bg); color: var(--warn); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; }
.kv { margin: 0; border-top: 1.5px solid var(--ink); }
.kv > div { display: flex; flex-wrap: wrap; gap: 2px 24px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kv dt { flex: 0 0 220px; color: var(--muted); }
.kv dd { flex: 1 1 280px; min-width: 0; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.act { display: grid; gap: 8px; }
.act h3 { margin-top: 8px; font-family: var(--body); font-size: 20px; line-height: 1.25; }
.act dl { display: flex; flex-wrap: wrap; margin: 0; border-top: 1.5px solid var(--ink); }
.act dl > div { flex: 1 1 260px; min-width: 0; display: grid; gap: 4px; align-content: start; padding: 12px 20px 14px 0; border-bottom: 1px solid var(--line); }
.act dt { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.act dd { margin: 0; font-size: 16px; color: var(--ink-2); }
.act > p { max-width: 80ch; font-size: 16px; color: var(--ink-2); }
.plain { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: 16px; color: var(--ink-2); }
