:root {
  --salt-white: #f7f5f1;
  --salt-soft: #efebe3;
  --atlantic: #0b3a5b;
  --atlantic-deep: #072a42;
  --sea-glass: #5a9e9a;
  --sea-glass-soft: #a8d4d0;
  --coral: #d47a6a;
  --coral-hover: #c46656;
  --brass: #c4a46a;
  --brass-soft: #e0cda0;
  --ink: #1a2430;
  --muted: #5c6b78;
  --paper: #fffcf7;
  --shadow: 0 12px 40px rgba(11, 58, 91, 0.08);
  --shadow-lift: 0 18px 48px rgba(11, 58, 91, 0.14);
  --radius: 18px;
  --font-display: "Fraunces", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --header-h: 4.5rem;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(90, 158, 154, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 5%, rgba(212, 122, 106, 0.12), transparent 50%),
    linear-gradient(180deg, var(--salt-white) 0%, var(--salt-soft) 48%, #e8f0ef 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--atlantic);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--coral);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--atlantic-deep);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }

.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.l-wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.l-wrap--narrow {
  width: min(100% - 2.5rem, 720px);
}

.l-section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.l-section--tight {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(247, 245, 241, 0.72);
  border-bottom: 1px solid rgba(196, 164, 106, 0.35);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  gap: 1rem;
}

.header__toggle {
  justify-self: start;
  display: none;
  background: transparent;
  border: 1px solid var(--brass);
  color: var(--atlantic);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
}

.header__brand {
  justify-self: center;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: var(--atlantic-deep);
  text-decoration: none;
  letter-spacing: -0.03em;
  text-align: center;
  line-height: 1.2;
}

.header__brand:hover {
  color: var(--coral);
}

.header__cta {
  justify-self: end;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-self: start;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--sea-glass);
}

.nav--mobile {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--primary {
  background: var(--atlantic);
  color: var(--salt-white);
}

.btn--primary:hover {
  background: var(--coral-hover);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--atlantic);
  border: 1px solid var(--brass);
}

.btn--ghost:hover {
  background: rgba(196, 164, 106, 0.15);
  color: var(--atlantic-deep);
  transform: translateY(-2px);
}

.btn--coral {
  background: var(--coral);
  color: #fff;
}

.btn--coral:hover {
  background: var(--atlantic);
}

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--brass-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.card__media {
  margin: -1.75rem -1.75rem 1.25rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sea-glass);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.card__link {
  text-decoration: none;
  color: inherit;
}

.card__link h3 {
  color: var(--atlantic-deep);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

/* Hero variants */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 9vw, 6.5rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  will-change: transform;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(247, 245, 241, 0.94) 0%, rgba(247, 245, 241, 0.78) 42%, rgba(11, 58, 91, 0.35) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.hero__label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--coral);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.hero__lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 32rem;
}

.hero--split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.hero--split .hero__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--brass-soft);
}

.hero--split .hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.hero--split .hero__layer {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 2.5rem;
  background: rgba(255, 252, 247, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--brass);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
  color: var(--atlantic-deep);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Magazine sections */
.section-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--brass);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.prose {
  max-width: 65ch;
}

.prose h2, .prose h3 {
  margin-top: 2rem;
}

.asymmetric {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.asymmetric--flip {
  grid-template-columns: 1.1fr 0.9fr;
}

.asymmetric__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--brass-soft);
  box-shadow: var(--shadow);
}

.asymmetric__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.35;
  color: var(--atlantic);
  border-left: 3px solid var(--coral);
  padding-left: 1.25rem;
  margin: 2rem 0;
}

.rule {
  border: none;
  border-top: 1px solid rgba(196, 164, 106, 0.45);
  margin: 2rem 0;
}

/* Pricing */
.rate-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(196, 164, 106, 0.35);
  align-items: baseline;
}

.rate-row:first-of-type {
  border-top: 1px solid rgba(196, 164, 106, 0.35);
}

.rate-row__price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--atlantic);
  font-weight: 600;
}

.rate-note {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Reviews */
.review {
  padding: 1.5rem;
}

.review__quote {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.review__author {
  font-weight: 700;
  color: var(--atlantic-deep);
}

.review__meta {
  font-size: 0.875rem;
  color: var(--muted);
}

.story {
  background: var(--paper);
  border: 1px solid var(--brass-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}

/* Forms */
.form {
  display: grid;
  gap: 1.15rem;
}

.form__row {
  display: grid;
  gap: 0.4rem;
}

.form__row--2 {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--atlantic-deep);
}

input,
select,
textarea {
  font: inherit;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(11, 58, 91, 0.22);
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--sea-glass);
  outline-offset: 1px;
  border-color: var(--sea-glass);
}

.form__error {
  color: #a33a2c;
  font-size: 0.85rem;
  display: none;
}

.form__error.is-visible {
  display: block;
}

.form__status {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  display: none;
  font-weight: 600;
}

.form__status.is-success {
  display: block;
  background: rgba(90, 158, 154, 0.18);
  color: var(--atlantic-deep);
  border: 1px solid var(--sea-glass);
}

.form__status.is-error {
  display: block;
  background: rgba(212, 122, 106, 0.15);
  color: #8a3428;
  border: 1px solid var(--coral);
}

.is-invalid {
  border-color: #a33a2c !important;
}

/* Footer */
.footer {
  background: var(--atlantic-deep);
  color: rgba(247, 245, 241, 0.88);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  margin-top: 3rem;
}

.footer a {
  color: var(--sea-glass-soft);
  text-decoration: none;
}

.footer a:hover {
  color: var(--brass-soft);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

.footer__label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.85rem;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--salt-white);
  margin-bottom: 0.75rem;
}

.footer__divider {
  border: none;
  border-top: 1px solid rgba(196, 164, 106, 0.3);
  margin: 2.5rem 0 1.5rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(247, 245, 241, 0.65);
}

.newsletter {
  display: grid;
  gap: 0.65rem;
}

.newsletter p {
  font-size: 0.9rem;
  color: rgba(247, 245, 241, 0.75);
  margin: 0;
}

.newsletter__row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.newsletter input {
  flex: 1;
  min-width: 160px;
}

/* Cookie banner */
.cookie {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  max-width: 520px;
  background: rgba(255, 252, 247, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--brass);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 1.25rem 1.4rem;
  display: none;
}

.cookie.is-visible {
  display: block;
  animation: fadeUp 0.5s var(--ease);
}

.cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.cookie p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.cookie a {
  font-weight: 600;
}

/* Page chrome */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
}

.page-hero h1 {
  margin: 0.35rem 0 0.75rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--sea-glass);
  text-decoration: none;
}

/* Legal */
.legal h2 {
  margin-top: 2.25rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}

.legal th,
.legal td {
  border: 1px solid rgba(196, 164, 106, 0.4);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: rgba(90, 158, 154, 0.12);
  font-family: var(--font-display);
}

/* Team */
.team-card__photo {
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--brass-soft);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__role {
  color: var(--sea-glass);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.35s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.parallax-slow {
  will-change: transform;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 6rem 0;
}

.error-page h1 {
  font-size: clamp(3rem, 8vw, 5rem);
}

/* Contact block */
.contact-aside {
  background: var(--paper);
  border: 1px solid var(--brass-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.contact-aside dt {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 1rem;
}

.contact-aside dt:first-child {
  margin-top: 0;
}

.contact-aside dd {
  margin: 0.25rem 0 0;
}

/* Process steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}

.step {
  position: relative;
  padding-left: 3.5rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--coral);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 960px) {
  .header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav--desktop {
    display: none;
  }

  .header__toggle {
    display: inline-flex;
  }

  .header__brand {
    justify-self: center;
  }

  .nav--mobile {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 1.25rem;
    gap: 0.75rem;
  }

  .nav--mobile.is-open {
    display: flex;
  }

  .grid-3,
  .grid-2,
  .hero--split,
  .asymmetric,
  .asymmetric--flip,
  .footer__grid,
  .form__row--2,
  .rate-row {
    grid-template-columns: 1fr;
  }

  .hero--split .hero__media {
    min-height: 280px;
  }

  .hero--split .hero__media img {
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
