/* Danubius Shipping. Design direction: Danubius Open Water.
   Ocean ink and cool paper carry the page, coral is reserved for actions.
   Flat surfaces, hairline separation, 4px corners, no shadows, no gradients. */

@font-face {
	font-family: "Manrope";
	src: url("../fonts/manrope-variable.woff2") format("woff2-variations"), url("../fonts/manrope-variable.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--paper: #F4F7F8;
	--surface: #FFFFFF;
	--ink: #0B2027;
	--ink-2: #112D37;
	--coral: #FF724B;
	--coral-hover: #F5602F;
	--slate: #536870;
	--slate-on-ink: #B8C9CE;
	--line: #D8E2E5;
	--line-ink: #32464E;
	--font: "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
	--radius: 4px;
	--container: 1280px;
	--gutter: 40px;
	--section: 104px;
	--fs-display: clamp(2.5rem, 4.6vw, 4.25rem);
	--fs-h1: clamp(2.5rem, 4.6vw, 3.75rem);
	--fs-h2: clamp(2rem, 3.4vw, 3rem);
	--fs-h3: clamp(1.375rem, 2vw, 1.625rem);
	--fs-lead: clamp(1.125rem, 1.5vw, 1.375rem);
	--fs-body: 1.125rem;
	--fs-small: 0.9375rem;
	--fs-utility: 0.875rem;
}

@media (max-width: 767px) {
	:root {
		--gutter: 24px;
		--section: 72px;
		--fs-body: 1.0625rem;
	}
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: var(--fs-body);
	line-height: 1.6;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.menu-open { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
	margin: 0;
	font-weight: 600;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

h1 { font-size: var(--fs-h1); line-height: 1.05; }
h2 { font-size: var(--fs-h2); line-height: 1.12; }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h4 { font-size: 1.125rem; line-height: 1.35; }

p { margin: 0; }
p + p { margin-top: 1em; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--coral); }

ul, ol { margin: 0; padding: 0; }

.skip-link {
	position: absolute;
	left: -999px;
	top: 8px;
	z-index: 1000;
	background: var(--ink);
	color: var(--paper);
	padding: 8px 14px;
	border-radius: var(--radius);
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.is-ink :focus-visible { outline-color: var(--paper); }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.is-ink { background: var(--ink); color: var(--paper); }
.is-ink a:hover { text-decoration-color: var(--coral); }
.is-surface { background: var(--surface); }

.muted { color: var(--slate); }
.is-ink .muted { color: var(--slate-on-ink); }

.eyebrow {
	display: block;
	font-size: var(--fs-utility);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--slate);
	margin-bottom: 20px;
}
.is-ink .eyebrow { color: var(--slate-on-ink); }

.lead { font-size: var(--fs-lead); line-height: 1.5; }

.measure { max-width: 62ch; }

/* ---------- buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	border-radius: var(--radius);
	border: 1.5px solid transparent;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s cubic-bezier(.2,.6,.2,1); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--coral); color: var(--ink); border-color: var(--coral); }
.btn-primary:hover { background: var(--coral-hover); border-color: var(--coral-hover); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.is-ink .btn-outline { color: var(--paper); border-color: var(--paper); }
.is-ink .btn-outline:hover { background: var(--paper); color: var(--ink); }

.btn-small { min-height: 42px; padding: 0 18px; font-size: var(--fs-small); }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid var(--line);
	padding-bottom: 2px;
}
.link-arrow:hover { border-color: var(--coral); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }
.is-ink .link-arrow { border-color: var(--line-ink); }

/* ---------- header ---------- */

.site-header {
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header .container {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: 88px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img, .brand svg { height: 44px; width: auto; }

.nav-primary { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-primary ul { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-primary li a {
	position: relative;
	text-decoration: none;
	font-size: var(--fs-small);
	font-weight: 500;
	padding: 8px 0;
	color: var(--ink);
	white-space: nowrap;
}
.nav-primary li a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	background: var(--coral);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s cubic-bezier(.2,.6,.2,1);
}
.nav-primary li a:hover::after, .nav-primary li.is-current a::after { transform: scaleX(1); }
.nav-primary .btn { white-space: nowrap; }
.lang-ru .nav-primary, .lang-uk .nav-primary, .lang-ru .nav-primary ul, .lang-uk .nav-primary ul { gap: 20px; }
.lang-ru .nav-primary li a, .lang-uk .nav-primary li a { font-size: var(--fs-utility); }

.lang-switch { display: flex; align-items: center; gap: 2px; list-style: none; }
.lang-switch a, .lang-switch span {
	font-size: var(--fs-utility);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 6px 7px;
	border-radius: var(--radius);
	color: var(--slate);
}
.lang-switch a, .lang-switch span { transition: color .15s ease, background-color .15s ease; }
.lang-switch a:hover { color: var(--ink); background: var(--surface); }
.lang-switch .is-current { color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.is-ink .lang-switch a { color: var(--slate-on-ink); }
.is-ink .lang-switch a:hover { color: var(--ink); background: var(--paper); }
.is-ink .lang-switch .is-current { background: var(--paper); border-color: var(--paper); }

.menu-toggle {
	display: none;
	margin-left: auto;
	width: 48px; height: 48px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--ink);
	cursor: pointer;
	align-items: center;
	justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }

@media (max-width: 1099px) {
	.site-header .container { min-height: 76px; gap: 16px; }
	.brand img, .brand svg { height: 38px; }
	.menu-toggle { display: inline-flex; }
	.nav-primary {
		position: absolute;
		left: 0; right: 0; top: 100%;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		padding: 16px var(--gutter) 28px;
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		margin: 0;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-10px);
		transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
	}
	.menu-open .nav-primary { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
	.nav-primary ul:not(.lang-switch) { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-primary ul:not(.lang-switch) li a { display: block; padding: 14px 0; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
	.nav-primary ul:not(.lang-switch) li a::after { height: 2px; bottom: -1px; }
	.nav-primary .lang-switch { gap: 8px; }
	.nav-primary .lang-switch a, .nav-primary .lang-switch span { padding: 10px 14px; font-size: 1rem; border: 1px solid var(--line); }
	.menu-open .nav-primary li { animation: rise .4s cubic-bezier(.2,.6,.2,1) both; animation-delay: calc(var(--i, 0) * 40ms); }
	.nav-primary .btn { justify-content: center; }
	.lang-switch { justify-content: flex-start; }
}

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; }

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
	gap: 48px;
	align-items: stretch;
}

.hero-copy {
	padding: 88px 0 80px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hero-copy h1 { font-size: var(--fs-display); line-height: 1.04; letter-spacing: -0.02em; margin-bottom: 26px; }
.lang-ru .hero-copy h1, .lang-uk .hero-copy h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
.hero-copy .lead { max-width: 30em; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* the photo panel runs to the viewport edge: the box itself grows past the container, the image just fills it */
.hero-media { position: relative; min-height: 560px; overflow: hidden; margin-right: calc(-1 * max(var(--gutter), (100vw - var(--container)) / 2 + var(--gutter))); }
.hero-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-media::after {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 6px;
	background: var(--coral);
	transform-origin: top;
	animation: grow-y .9s .15s cubic-bezier(.2,.6,.2,1) both;
}

.hero.no-media .hero-grid { grid-template-columns: 1fr; }
.hero.no-media .hero-copy { max-width: 46rem; padding: 72px 0 64px; }

.hero.is-compact .hero-copy { padding: 72px 0 64px; }
.hero.is-compact .hero-copy h1 { font-size: var(--fs-h1); }
.lang-ru .hero.is-compact .hero-copy h1, .lang-uk .hero.is-compact .hero-copy h1 { font-size: clamp(2rem, 3.4vw, 3rem); }
.hero.is-compact .hero-media { min-height: 460px; }

@media (max-width: 1023px) {
	.hero-grid { grid-template-columns: 1fr; gap: 0; }
	.hero-copy { padding: 56px 0 44px; }
	.hero-media { min-height: 0; aspect-ratio: 16 / 10; margin-inline: calc(var(--gutter) * -1); }
	.hero.is-compact .hero-copy { padding: 48px 0 40px; }
	.hero.is-compact .hero-media { min-height: 0; aspect-ratio: 16 / 9; }
}

/* ---------- sections ---------- */

.section { padding-block: var(--section); }
.section + .section.is-flush { padding-top: 0; }
.section-head { max-width: 46rem; margin-bottom: 56px; }
.section-head p { margin-top: 18px; color: var(--slate); font-size: var(--fs-lead); }
.is-ink .section-head p { color: var(--slate-on-ink); }

.hairline { border: 0; border-top: 1px solid var(--line); margin: 0; }
.is-ink .hairline { border-color: var(--line-ink); }

/* two pillars: wide surface split by a hairline */
.pillars {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.pillar { padding: 56px 48px; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar h3 { margin-bottom: 16px; }
.pillar p { color: var(--slate); }
.pillar .link-arrow { margin-top: 26px; }
@media (max-width: 767px) {
	.pillars { grid-template-columns: 1fr; }
	.pillar { padding: 36px 24px; }
	.pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
}

/* service rows: the hairlines stay on the list items; the link is the hover plate and bleeds 24px past the text on both sides */
.service-list { list-style: none; border-top: 1px solid var(--line); }
.service-list > li { border-bottom: 1px solid var(--line); }
.service-row {
	display: grid;
	grid-template-columns: 72px minmax(0, 5fr) minmax(0, 6fr) auto;
	gap: 32px;
	align-items: start;
	margin: 0 -24px;
	padding: 36px 24px;
	border-radius: var(--radius);
	text-decoration: none;
	transition: background-color .2s ease;
}
.service-row .num { font-size: var(--fs-utility); font-weight: 600; letter-spacing: 0.08em; color: var(--slate); padding-top: 6px; transition: color .2s ease; }
.service-row h3 { font-size: var(--fs-h3); }
.service-row p { color: var(--slate); }
.service-row .link-arrow { padding-top: 6px; white-space: nowrap; }
.service-row .link-arrow svg { transition: transform .25s cubic-bezier(.2,.6,.2,1); }
.service-row:hover { background: var(--surface); }
.service-row:hover .num { color: var(--coral); }
.service-row:hover .link-arrow { border-color: var(--coral); }
.service-row:hover .link-arrow svg { transform: translateX(4px); }
@media (max-width: 1023px) {
	.service-row { grid-template-columns: 48px 1fr; gap: 12px 20px; margin: 0 -16px; padding: 28px 16px; }
	.service-row p { grid-column: 2; }
	.service-row .link-arrow { grid-column: 2; }
}

/* image panel: the signature wide asymmetrical panel */
.panel {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	align-items: stretch;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--surface);
}
.panel.is-reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.panel.is-reverse .panel-media { order: 2; }
.panel-media { position: relative; min-height: 420px; overflow: hidden; }
.panel-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2,.6,.2,1); }
.panel:hover .panel-media img { transform: scale(1.035); }
.panel-copy { padding: 56px 56px; display: flex; flex-direction: column; justify-content: center; }
.panel-copy h2 { font-size: var(--fs-h3); margin-bottom: 18px; }
.panel-copy h2.is-large { font-size: var(--fs-h2); }
.panel-copy p { color: var(--slate); }
.panel-copy .link-arrow, .panel-copy .btn { margin-top: 28px; align-self: flex-start; }
.is-ink .panel { background: var(--ink-2); border-color: var(--line-ink); }
.is-ink .panel-copy p { color: var(--slate-on-ink); }
@media (max-width: 1023px) {
	.panel, .panel.is-reverse { grid-template-columns: 1fr; }
	.panel.is-reverse .panel-media { order: 0; }
	.panel-media { min-height: 0; aspect-ratio: 16 / 10; }
	.panel-copy { padding: 36px 24px; }
}

/* editorial reading: text left, aside right */
.editorial {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: 80px;
	align-items: start;
}
.editorial .prose { max-width: 62ch; }
.editorial aside { border-left: 1px solid var(--line); padding-left: 32px; position: sticky; top: 32px; }
.is-ink .editorial aside { border-color: var(--line-ink); }
@media (max-width: 1023px) {
	.editorial { grid-template-columns: 1fr; gap: 40px; }
	.editorial aside { position: static; border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; }
}

.prose h2 { font-size: var(--fs-h3); margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 32px 0 12px; }
.prose p { color: var(--ink); }
.prose p + p { margin-top: 1.1em; }
.prose ul { list-style: none; margin: 18px 0; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 2px; background: var(--coral); }
.prose ol { list-style: none; counter-reset: item; margin: 18px 0; }
.prose ol li { position: relative; padding-left: 40px; margin-bottom: 12px; counter-increment: item; }
.prose ol li::before { content: counter(item, decimal-leading-zero); position: absolute; left: 0; top: 0.35em; font-size: var(--fs-utility); font-weight: 600; letter-spacing: 0.06em; color: var(--slate); }
.prose strong { font-weight: 600; }
.prose a { text-decoration-color: var(--line); }
.prose a:hover { text-decoration-color: var(--coral); }
.is-ink .prose p, .is-ink .prose li { color: var(--paper); }

/* definition list: facts */
.facts { list-style: none; }
.facts li { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.facts li:first-child { border-top: 1px solid var(--line); }
.facts dt, .facts .k { color: var(--slate); font-weight: 500; }
.facts .v { font-weight: 500; }
.is-ink .facts li { border-color: var(--line-ink); }
.is-ink .facts .k { color: var(--slate-on-ink); }
@media (max-width: 480px) { .facts li { grid-template-columns: 1fr; gap: 4px; } }

/* process: compact numbered list in two columns */
.process { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; border-top: 1px solid var(--line); }
.process li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.process .num { font-size: var(--fs-utility); font-weight: 600; letter-spacing: 0.08em; color: var(--slate); padding-top: 5px; transition: color .2s ease; }
.process li:hover .num { color: var(--coral); }
.process h3 { font-size: 1.25rem; margin-bottom: 8px; }
.process p { color: var(--slate); font-size: var(--fs-small); }
.is-ink .process, .is-ink .process li { border-color: var(--line-ink); }
.is-ink .process .num, .is-ink .process p { color: var(--slate-on-ink); }
@media (max-width: 767px) { .process { grid-template-columns: 1fr; } }

/* corridor: geography as a three-part hairline strip, not cards */
.corridor { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.corridor > div { padding: 32px 32px 32px 0; }
.corridor > div + div { border-left: 1px solid var(--line); padding-left: 32px; }
.corridor h3 { font-size: 1.25rem; margin-bottom: 8px; }
.corridor p { color: var(--slate); font-size: var(--fs-small); }
.is-ink .corridor, .is-ink .corridor > div + div { border-color: var(--line-ink); }
.is-ink .corridor p { color: var(--slate-on-ink); }
@media (max-width: 767px) {
	.corridor { grid-template-columns: 1fr; }
	.corridor > div { padding: 24px 0; }
	.corridor > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
	.is-ink .corridor > div + div { border-color: var(--line-ink); }
}

/* statement: one big line of copy */
.statement { font-size: var(--fs-h2); line-height: 1.15; font-weight: 600; letter-spacing: -0.015em; max-width: 24em; text-wrap: balance; }

/* CTA band */
.band .container { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.band h2 { font-size: var(--fs-h2); }
.band p { margin-top: 16px; color: var(--slate-on-ink); max-width: 36em; }
.band .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
@media (max-width: 1023px) {
	.band .container { grid-template-columns: 1fr; gap: 28px; }
	.band .actions { justify-content: flex-start; }
}

/* ---------- enquiry form ---------- */

.enquiry { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 80px; align-items: start; }
.enquiry aside { border-left: 1px solid var(--line); padding-left: 32px; }
.enquiry aside h3 { font-size: 1.25rem; margin-bottom: 12px; }
.enquiry aside p { color: var(--slate); font-size: var(--fs-small); }
.enquiry aside p + h3 { margin-top: 28px; }
@media (max-width: 1023px) {
	.enquiry { grid-template-columns: 1fr; gap: 40px; }
	.enquiry aside { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0 0; }
}

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.form .field { display: flex; flex-direction: column; gap: 8px; }
.form .field.is-wide { grid-column: 1 / -1; }
.form label { font-size: var(--fs-small); font-weight: 600; }
.form label .opt { font-weight: 400; color: var(--slate); }
.form input, .form select, .form textarea {
	width: 100%;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	background: var(--surface);
	border: 1px solid #A9BAC2;
	border-radius: var(--radius);
	padding: 13px 14px;
	min-height: 50px;
	outline: none;
	transition: border-color .15s ease;
}
.form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%230B2027' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--slate); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.form .is-invalid input, .form .is-invalid select, .form .is-invalid textarea { border-color: #B3261E; }
.form .error { font-size: var(--fs-utility); color: #B3261E; display: none; }
.form .is-invalid .error { display: block; }
.form .consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-small); color: var(--slate); }
.form .consent input { width: 20px; height: 20px; min-height: 0; padding: 0; margin-top: 2px; flex: none; accent-color: var(--ink); }
.form .consent a { color: var(--ink); }
.form .submit { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form .note { font-size: var(--fs-utility); color: var(--slate); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-small); display: none; }
.form-status.is-ok, .form-status.is-error { animation: rise .45s cubic-bezier(.2,.6,.2,1) both; }
.form-status.is-ok { display: block; border-color: var(--ink); border-left: 4px solid var(--coral); }
.form-status.is-error { display: block; border-color: #B3261E; color: #B3261E; }
.form.is-sent .field, .form.is-sent .consent, .form.is-sent .submit { display: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: var(--paper); }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding: 72px 0 56px; border-bottom: 1px solid var(--line-ink); }
.footer-top .brand img { height: 48px; }
.footer-top .tagline { margin-top: 22px; color: var(--slate-on-ink); max-width: 30em; font-size: var(--fs-small); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols h4 { font-size: var(--fs-utility); letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-on-ink); margin-bottom: 18px; font-weight: 600; }
.footer-cols ul { list-style: none; }
.footer-cols li { margin-bottom: 2px; font-size: var(--fs-small); }
.footer-cols a { text-decoration: none; display: inline-block; padding: 6px 0; }
.footer-cols a.link-arrow { display: inline-flex; padding: 6px 0 2px; }
.footer-cols a:hover { text-decoration: underline; text-decoration-color: var(--coral); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; padding: 26px 0 34px; font-size: var(--fs-utility); color: var(--slate-on-ink); }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; text-decoration-color: var(--coral); }
@media (max-width: 1023px) {
	.footer-top { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 40px; }
	.footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .footer-cols { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.error-page { padding: 120px 0 140px; }
.error-page .code { font-size: var(--fs-utility); letter-spacing: 0.1em; color: var(--slate-on-ink); font-weight: 600; margin-bottom: 18px; }
.error-page h1 { font-size: var(--fs-display); margin-bottom: 20px; }
.error-page p { color: var(--slate-on-ink); max-width: 36em; margin-bottom: 32px; }

/* ---------- utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.gap-top { margin-top: 64px; }
@media (max-width: 767px) { .gap-top { margin-top: 40px; } }

/* ---------- motion ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes hero-zoom { from { transform: scale(1.16); } to { transform: scale(1.08); } }
@keyframes wave-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes wave-drift-back { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* hero: copy rises in sequence, photo settles from a slow zoom, then drifts with the scroll */
.hero-copy > * { animation: rise .7s cubic-bezier(.2,.6,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-media img { transform: scale(1.08); animation: hero-zoom 12s cubic-bezier(.2,.6,.2,1) both; translate: 0 var(--parallax, 0px); will-change: transform; }

/* waves: the mark's waterline, drifting along the seams between ink and paper */
.wave {
	position: absolute;
	left: 0; right: 0;
	height: 22px;
	overflow: hidden;
	pointer-events: none;
	z-index: 2;
}
.wave svg { position: absolute; left: 0; top: 0; width: 200%; max-width: none; height: 100%; display: block; }
.wave-bottom { bottom: -1px; }
.wave-bottom svg { animation: wave-drift 26s linear infinite; }
.wave-top { top: -1px; transform: scaleY(-1); }
.wave-top svg { animation: wave-drift-back 32s linear infinite; }
/* no seam wave when the page already ends on an ink band */
main:has(> .is-ink:last-child) + .site-footer .wave-top { display: none; }
.hero { position: relative; }
.site-footer { position: relative; }

/* reveal on scroll (classes are added by site.js only, so nothing is hidden without it) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* photos fade in once loaded (JS adds is-loaded; without JS the html.js hook never appears) */
html.js .panel-media img { opacity: 0; transition: opacity .9s ease, transform 1.4s cubic-bezier(.2,.6,.2,1); }
html.js .hero-media img { opacity: 0; transition: opacity .9s ease; }
html.js img.is-loaded { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
	.hero-media img { transform: none; translate: none; }
	.wave svg { animation: none; }
}
