/* Marta Miralpeix — site styles */

@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/marcellus-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/marcellus-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/montserrat-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/montserrat-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/montserrat-latin-wght-italic.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/montserrat-latin-ext-wght-italic.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --navy: #1f366b;          /* logo wordmark */
  --ink: #26324f;           /* body text */
  --muted: #5d6784;
  --silver: #b9bcc6;        /* logo gradient end */
  --sky-1: #f4f8fc;         /* photo sky, light → deep */
  --sky-2: #dfe8f4;
  --sky-3: #abc2e1;
  --rule: rgba(31, 54, 107, .18);
  --serif: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 400 17px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* ── Top bar ─────────────────────────────── */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  padding: 26px var(--gutter);
}
.langs { display: flex; gap: 4px; font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.langs a { text-decoration: none; color: var(--muted); padding: 8px 8px 6px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.langs a:first-child { padding-left: 0; }
.langs a:hover { color: var(--navy); }
.langs a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }

/* ── Hero ────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px var(--gutter) 110px;
}
.hero__photo, .hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__photo img { object-fit: cover; object-position: 100% 62%; }
.hero__inner {
  position: relative; z-index: 1;
  width: min(100%, 520px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  animation: rise 1.2s cubic-bezier(.2,.7,.2,1) both;
}
.hero__logo { margin: 0 0 clamp(36px, 6vh, 64px); width: min(100%, 400px); }
.hero__tagline {
  font: 400 clamp(26px, 2.6vw, 38px)/1.28 var(--serif);
  color: var(--navy); letter-spacing: .005em;
  text-wrap: balance;
}
.btn {
  margin-top: clamp(32px, 5vh, 48px);
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--navy); text-decoration: none;
  padding: 17px 26px 16px; border: 1px solid var(--navy);
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn span { font-size: 14px; letter-spacing: 0; }
.hero__caption {
  position: absolute; z-index: 1; bottom: 28px; left: var(--gutter);
  font: italic 300 13px/1.4 var(--sans); color: var(--muted); letter-spacing: .02em;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__inner { animation: none; } }

/* ── Story ───────────────────────────────── */
.story {
  max-width: 1180px; margin: 0 auto;
  padding: clamp(80px, 13vw, 170px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.story__years {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  font: 400 clamp(56px, 7vw, 104px)/.9 var(--serif);
  background: linear-gradient(160deg, var(--navy) 0%, #6a7399 55%, var(--silver) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: sticky; top: 60px;
}
.story__rule { width: 1px; height: clamp(60px, 9vw, 120px); background: var(--rule); margin-left: .35em; }
.story__text { max-width: 600px; display: grid; gap: 1.4em; }
.story__text p { font-weight: 350; }
.story__text .story__lead {
  font: 400 clamp(22px, 2.1vw, 28px)/1.5 var(--serif); color: var(--navy);
  margin-bottom: .3em;
}

/* ── Facts ───────────────────────────────── */
.facts { padding: 0 var(--gutter) clamp(80px, 11vw, 150px); }
.facts dl {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px);
}
.facts div { border-top: 1px solid var(--navy); padding-top: 22px; }
.facts dt { font: 400 clamp(22px, 2vw, 28px)/1.2 var(--serif); color: var(--navy); margin-bottom: 10px; }
.facts dd { margin: 0; font: 500 11.5px/1.7 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ── Contact ─────────────────────────────── */
.contact {
  background: linear-gradient(180deg, #fff 0%, var(--sky-1) 25%, var(--sky-2) 70%, #cfdcee 100%);
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.contact__mark { width: 64px; margin-bottom: 30px; }
.contact h2 { margin: 0 0 18px; font: 400 clamp(36px, 4.4vw, 60px)/1.1 var(--serif); color: var(--navy); }
.contact__lead { max-width: 30em; color: var(--ink); font-weight: 350; margin-bottom: clamp(40px, 6vw, 64px); text-wrap: balance; }
.contact__list { list-style: none; margin: 0; padding: 0; width: min(100%, 680px); }
.contact__list li {
  display: grid; grid-template-columns: 9em 1fr; align-items: baseline; gap: 16px;
  padding: 22px 0; border-top: 1px solid var(--rule); text-align: left;
}
.contact__list li:last-child { border-bottom: 1px solid var(--rule); }
.contact__list span { font: 500 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact__list a {
  font: 400 clamp(19px, 2vw, 25px)/1.3 var(--serif); color: var(--navy); text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--navy), var(--navy)) 0 100% / 0 1px no-repeat;
  transition: background-size .35s ease;
}
.contact__list a:hover { background-size: 100% 1px; }

/* ── Footer ──────────────────────────────── */
.footer {
  background: var(--navy); color: rgba(255,255,255,.78);
  padding: 30px var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font: 400 12px/1.6 var(--sans); letter-spacing: .06em;
}

/* ── Tablet ──────────────────────────────── */
@media (max-width: 1100px) and (min-width: 761px) {
  .hero__photo img { object-position: 78% 62%; }
  .hero__inner { width: min(100%, 420px); }
}

/* ── Mobile ──────────────────────────────── */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar { position: static; padding: 18px var(--gutter) 0; }
  .langs { justify-content: center; }
  .langs a:first-child { padding-left: 8px; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding: 28px 0 0; }
  .hero__inner { order: 1; width: auto; padding: 0 var(--gutter); }
  .hero__photo { order: 2; }
  .hero__caption { order: 3; }
  .hero__logo { width: min(78%, 320px); margin-bottom: 32px; }
  .hero__tagline { font-size: clamp(24px, 6.6vw, 30px); }
  .hero__photo { position: relative; display: block; margin-top: 44px; aspect-ratio: 4 / 5; }
  .hero__photo::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 22%; z-index: 1;
    background: linear-gradient(#fff, rgba(255,255,255,0));
  }
  .hero__photo img { object-position: 40% 58%; }
  .hero__caption { position: static; padding: 12px var(--gutter) 0; text-align: right; }
  .story { grid-template-columns: 1fr; padding-top: 72px; padding-bottom: 72px; gap: 36px; }
  .story__years { position: static; flex-direction: row; align-items: center; font-size: 52px; }
  .story__rule { width: 48px; height: 1px; margin: 0; }
  .facts dl { grid-template-columns: 1fr; gap: 28px; }
  .contact__list li { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
}

/* ── Legal page ──────────────────────────── */
.footer a { color: #fff; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.topbar--static { position: static; }
.legal { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 90px) var(--gutter) clamp(80px, 10vw, 130px); }
.legal__logo img { width: 48px; margin-bottom: 28px; }
.legal h1 { margin: 0 0 clamp(36px, 5vw, 56px); font: 400 clamp(34px, 4vw, 52px)/1.1 var(--serif); color: var(--navy); }
.legal h2 { margin: 48px 0 14px; padding-top: 18px; border-top: 1px solid var(--navy);
  font: 500 11.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.legal p { font-weight: 350; margin-bottom: 1em; }
.legal__card { margin: 0; display: grid; gap: 10px; }
.legal__card div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; }
.legal__card div:first-child dt { font: 400 24px/1.3 var(--serif); color: var(--navy); grid-column: 1 / -1; margin-bottom: 4px; }
.legal__card dt { font-weight: 500; color: var(--navy); }
.legal__card dd { margin: 0; font-weight: 350; overflow-wrap: anywhere; }
.legal__card a { color: var(--navy); }
.legal__back { margin-top: 56px; }
@media (max-width: 760px) {
  .topbar--static { padding-top: 18px; }
  .legal__card div { grid-template-columns: 1fr; gap: 0; }
}
