@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Palette */
  --blue-dust: #93aebf;
  --prussian: #1c2f4d;
  --pistachio: #f2ceae;
  --matte-red: #d48d91;
  --bean: #400d01;

  --paper: #fbf1e7;            /* light tint of Pistachio Shell */
  --paper-2: var(--pistachio);
  --ink: var(--prussian);
  --muted: color-mix(in srgb, var(--prussian) 68%, var(--paper));
  --accent: var(--matte-red);
  --line: rgba(28, 47, 77, 0.18);
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --space: clamp(4rem, 10vw, 9rem);
}

*, *::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: 300 clamp(1rem, 0.95rem + 0.2vw, 1.125rem)/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; overflow: hidden; background: var(--paper-2); }
a { color: inherit; text-decoration: none; }
h1, h2, blockquote { font-family: var(--serif); font-weight: 300; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.75rem, 1.5rem + 5vw, 6.5rem); line-height: 1; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); line-height: 1.1; }
p { margin: 0 0 1.25em; }

.eyebrow {
  font: 400 0.75rem/1 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 3vw, 3rem); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.25rem var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(0.75rem);
  border-bottom: 1px solid var(--line);
}
/* Logo — recoloured via mask, any uploaded logo works */
.logo { position: relative; display: inline-block; line-height: 0; }
.logo img { width: 100%; height: auto; opacity: 0; }
.logo-fill { position: absolute; inset: 0; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.brand { display: flex; margin-right: auto; color: var(--prussian); }
.brand .logo { width: clamp(8rem, 14vw, 11rem); }
.nav { display: flex; gap: clamp(1rem, 2.5vw, 2.5rem); }
.nav a, .lang { font-size: 0.8125rem; letter-spacing: 0.08em; position: relative; padding: 0.25rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.lang { border: 1px solid var(--line); border-radius: 2rem; padding: 0.35rem 0.8rem; transition: background .3s; }
.lang:hover { background: var(--ink); color: var(--paper); }

/* Home — full-screen hero */
.page-home .site-header { position: absolute; left: 0; right: 0; background: transparent; backdrop-filter: none; border-bottom-color: rgba(251, 241, 231, 0.25); color: var(--paper); }
.page-home .lang { border-color: rgba(251, 241, 231, 0.5); }
.page-home .lang:hover { background: var(--paper); color: var(--prussian); }
.page-home .brand { color: var(--paper); }
.hero { position: relative; height: 100vh; height: 100svh; min-height: 34rem; display: grid; place-items: center; overflow: hidden; color: var(--paper); text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(28, 47, 77, 0.3); }
.hero-content { padding: 6rem var(--gutter) 4rem; width: 100%; animation: rise 1.4s cubic-bezier(.2,.7,.2,1) both; }
.hero-logo { margin: 0; color: var(--paper); }
.hero-logo .logo { width: min(80vw, 60rem); }
.hero-sub { margin: clamp(0.75rem, 1.5vw, 1.25rem) 0 0; font: italic 300 clamp(1.15rem, 0.9rem + 1vw, 1.75rem)/1.3 var(--serif); color: var(--paper); text-shadow: 0 0.05rem 1rem rgba(28, 47, 77, 0.35); }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); font-size: 1.25rem; color: var(--paper); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 0.4rem); } }

.intro { padding: var(--space) var(--gutter); }
.intro .lead { grid-column: 1 / span 6; font: 300 clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem)/1.3 var(--serif); }
.intro .prose { grid-column: 8 / span 5; padding-top: 0.5rem; }

.triptych { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(0.75rem, 2vw, 1.5rem); padding: 0 var(--gutter); align-items: end; }
.triptych figure { aspect-ratio: 4 / 5; }
.triptych figure:nth-child(2) { aspect-ratio: 4 / 5.6; }

.ways { margin-top: var(--space); padding: clamp(3rem, 7vw, 6rem) var(--gutter); text-align: center; background: var(--blue-dust); }
.ways p { max-width: 44rem; margin: 0 auto; font: italic 400 clamp(1.35rem, 1rem + 1vw, 1.9rem)/1.45 var(--serif); color: var(--prussian); }

.signature { padding: var(--space) var(--gutter); text-align: center; }
.page-home .signature { background: var(--pistachio); }
.signature blockquote { color: var(--prussian); }
.signature blockquote { max-width: 56rem; margin: 0 auto 2.5rem; font-size: clamp(2rem, 1.2rem + 3vw, 4rem); line-height: 1.12; font-style: italic; }
.page-about .signature { background: var(--blue-dust); }
.page-about .signature blockquote { color: var(--prussian); }
.page-about .signature blockquote { margin-bottom: 0; font-size: clamp(1.75rem, 1.1rem + 2.4vw, 3.25rem); }
.link-arrow { font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 0.3rem; }
.link-arrow span { display: inline-block; transition: transform .3s; }
.link-arrow:hover span { transform: translateX(0.35rem); }

/* About */
.about { padding: clamp(3rem, 8vw, 7rem) var(--gutter) var(--space); align-items: start; }
.portrait { grid-column: 1 / span 5; aspect-ratio: 4 / 5; position: sticky; top: 7rem; }
.about > div { grid-column: 7 / span 6; }
.about h1 { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.about .prose p:first-child::first-letter { font: 400 4.2em/0.8 var(--serif); float: left; margin: 0.08em 0.1em 0 0; color: var(--accent); }

/* Experiences */
.page-head { padding: clamp(3rem, 8vw, 7rem) var(--gutter) clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); margin: 0 var(--gutter); padding-inline: 0; }
.subtitle { font: italic 300 clamp(1.25rem, 1rem + 0.9vw, 1.75rem)/1.4 var(--serif); color: var(--muted); margin-top: 1.5rem; }
.exp-list { padding: 0 var(--gutter) var(--space); }
.exp { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 3vw, 3rem); align-items: center; padding: clamp(3rem, 7vw, 6rem) 0; border-bottom: 1px solid var(--line); }
.exp figure { grid-column: 1 / span 5; aspect-ratio: 4 / 5; }
.exp-text { grid-column: 7 / span 5; }
.exp:nth-child(even) figure { grid-column: 8 / span 5; grid-row: 1; }
.exp:nth-child(even) .exp-text { grid-column: 2 / span 5; grid-row: 1; }
.numeral { display: block; font: italic 400 1.5rem/1 var(--serif); color: var(--matte-red); margin-bottom: 1.25rem; }
.exp h2 { margin-bottom: 1.5rem; }

/* Footer */
.site-footer { background: var(--prussian); color: var(--paper); padding: var(--space) var(--gutter) 2.5rem; text-align: center; }
.site-footer .eyebrow { color: var(--blue-dust); }
.footer-title { color: var(--pistachio); }
.footer-title { font-size: clamp(2rem, 1.2rem + 3vw, 4rem); font-style: italic; max-width: 52rem; margin: 0 auto 3rem; line-height: 1.1; }
.button { display: inline-block; border: 1px solid rgba(242, 206, 174, 0.55); border-radius: 3rem; padding: 1rem 2.25rem; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; transition: background .3s, color .3s; }
.button:hover { background: var(--matte-red); border-color: var(--matte-red); color: var(--prussian); }
.footer-links { list-style: none; padding: 0; margin: 4rem 0 3rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem 2.5rem; font-size: 0.9375rem; }
.footer-links a:hover { color: var(--matte-red); }
.fineprint { font-size: 0.75rem; color: var(--blue-dust); margin: 0; letter-spacing: 0.06em; }

@keyframes rise { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }

/* Mobile */
@media (max-width: 52rem) {
  .site-header { flex-wrap: wrap; gap: 0.75rem 1rem; }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 0.5rem; }
  .nav a, .lang { font-size: 0.75rem; letter-spacing: 0.04em; }
  .intro .lead, .intro .prose, .portrait, .about > div { grid-column: 1 / -1; }
  .intro .lead { margin-bottom: 2rem; }
  .triptych { grid-template-columns: 1fr 1fr; }
  .triptych figure:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .triptych figure:nth-child(2) { aspect-ratio: 4 / 5; }
  .portrait { position: static; margin-bottom: 3rem; }
  .exp figure, .exp-text, .exp:nth-child(even) figure, .exp:nth-child(even) .exp-text { grid-column: 1 / -1; grid-row: auto; }
  .exp figure { margin-bottom: 2rem; aspect-ratio: 4 / 3; }
  .page-home .lang { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.numeral { display: none; }

@media (min-width: 52rem) {
  .triptych { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .triptych figure, .triptych figure:nth-child(2) { aspect-ratio: 4 / 5; }
}

/* Nav — solid Prussian bar on every page */
.site-header, .page-home .site-header { position: sticky; top: 0; left: auto; right: auto; background: var(--prussian); backdrop-filter: none; border-bottom: 0; color: var(--paper); }
.site-header .brand { color: var(--paper); }
.nav a { color: var(--paper); }
.lang, .page-home .lang { display: inline-flex; align-items: center; justify-content: center; line-height: 1; color: var(--paper); border-color: rgba(251, 241, 231, 0.5); padding: 0.45rem 0.8rem; }
.lang:hover, .page-home .lang:hover { background: var(--paper); color: var(--prussian); }
.hero { height: calc(100svh - 4.4rem); }
@media (max-width: 52rem) {
  .site-header { align-items: center; }
  .site-header .brand { align-self: center; }
  .hero { height: calc(100svh - 6.8rem); }
}

.hero-sub span { display: inline-block; white-space: nowrap; }

/* Homepage hero */
.hero::before { background: rgba(0, 0, 0, 0.65); }
.hero-logo, .hero-sub { color: #fbf1e7; }

/* Homepage nav wordmark — size limits */
.page-home .brand .logo { width: auto; }
.page-home .brand .logo img { width: auto; height: auto; max-height: 3rem; }

/* Logo: original colors */
.logo img { opacity: 1; }
.logo-fill { display: none; }

/* Logo: size limits */
.hero-logo .logo, .brand .logo { width: auto; }
.hero-logo .logo img { width: auto; height: auto; max-width: min(80vw, 60rem); max-height: 16rem; }
.brand .logo img { width: auto; height: auto; max-width: 11rem; max-height: 4rem; }

/* Tagline: back to its own size (not logo width) */
.hero-sub span { font-size: 3rem !important; white-space: normal; }

/* Nav wordmark — same size on every page */
.brand .logo { width: auto; }
.brand .logo img { width: auto; height: auto; max-width: 11rem; max-height: 2.5rem; }
