/* Marco Saitta — executive landing page
   Warm paper, charcoal ink, serif display. Quiet, not theatrical. */

:root {
  --paper: #F4F0E8;
  --paper-deep: #EBE4D6;
  --cream: #FCFAF6;
  --ink: #1B1916;
  --ink-soft: #3E3A35;
  --muted: #6F6A63;
  --line: #D6CFC2;
  --bronze: #8A6A45;
  --navy: #1B2A4A;
  --navy-deep: #121C33;
  --accent: #E07A2F;
  --max: 68rem;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, "Palatino Linotype", "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: transparent;
  transition: color 0.2s ease, text-decoration-color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

a:hover { text-decoration-color: currentColor; }

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: #E4D5BC;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 0.85rem;
  z-index: 100;
}

.skip:focus { top: 0.5rem; }

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Header
   -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-right: auto;
}

.brand:hover { text-decoration: none; }

.brand-mark {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.125rem;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.3em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.45rem;
  border: 1px solid var(--ink);
  line-height: 1;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

.btn-small { padding: 0.62rem 0.95rem; font-size: 0.6875rem; }

.btn-solid {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.btn-solid:hover { background: #2c2924; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover { background: var(--cream); }

/* Hero
   -------------------------------------------------- */
.hero {
  padding: clamp(3.5rem, 10vh, 7.5rem) 0 clamp(4rem, 9vh, 7rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(12rem, 22rem);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.eyebrow,
.section-kicker,
.story-meta,
.story-index,
.timeline time,
.colophon,
.langs .section-kicker {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.15rem, 9.2vw, 6.75rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0.85rem 0 0;
  text-wrap: balance;
}

.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  font-weight: 400;
  color: var(--ink-soft);
  margin: 1.1rem 0 0;
  max-width: 18ch;
  line-height: 1.2;
}
.lede em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.banner-sub {
  margin: 0.85rem 0 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.contact-row li:not(:last-child)::after {
  content: "·";
  margin: 0 0.7rem;
  color: var(--line);
  speak: never;
}

.contact-row a { text-decoration-color: var(--line); }
.contact-row a:hover { color: var(--ink); text-decoration-color: var(--ink); }

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.25rem;
}

.portrait {
  margin: 0;
  width: 100%;
  max-width: 22rem;
  justify-self: end;
}
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 2px;
  box-shadow: 0 18px 40px rgba(27, 25, 22, 0.12);
}

.banner-band {
  background: var(--navy-deep);
  color: #F4F0E8;
  padding: 1.15rem 0;
}
.banner-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.9rem 2rem;
  align-items: center;
}
.banner-kicker {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #F4F0E8;
}
.banner-marks {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C9B8A0;
}

.brand-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.brand-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.85rem;
  padding: 0.28rem 0.7rem;
  overflow: hidden;
  border-radius: 2px;
}

.brand-plate img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-plate-dark { background: #0B0B0B; }
.brand-plate-linde { background: #003087; }
.brand-plate-light {
  background: var(--paper);
  border: 1px solid var(--line);
}

.brand-strip .brand-plate { min-width: 5.4rem; }
.brand-strip .brand-plate img { max-height: 2.3rem; }


.li-banner {
  margin: 0;
  background: #0b1c3a;
  line-height: 0;
}
.li-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Proof
   -------------------------------------------------- */
.proof {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
  padding: clamp(3.25rem, 7vh, 5.25rem) 0;
}

.proof .section-kicker { margin-bottom: 2.25rem; }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.75rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.figure {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
}

.caption {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 28ch;
}

/* Work
   -------------------------------------------------- */
.work { padding: clamp(4.5rem, 10vh, 7.5rem) 0 2rem; }

.section-head { max-width: 28rem; margin-bottom: 1.5rem; }

.section-head h2,
.path-intro h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0.65rem 0 0;
  text-wrap: balance;
}

.story {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding: 2.75rem 0;
  border-top: 1px solid var(--line);
}

.story-index {
  padding-top: 0.45rem;
  color: var(--bronze);
}

.story-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding-top: 0.15rem;
}

.story-logo {
  width: 100%;
  height: 3.2rem;
  padding: 0.35rem 0.5rem;
}

.story-logo img {
  max-width: 100%;
  height: auto;
  max-height: 3.2rem;
}

.story-aside .story-index {
  padding-top: 0;
}

.story h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0.35rem 0 0.4rem;
}

.story-role {

  color: var(--muted);
  margin: 0 0 0.85rem;
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.0625rem;
}

.story-body p:last-child {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-soft);
}

/* Path
   -------------------------------------------------- */
.path {
  padding: clamp(4rem, 9vh, 6.5rem) 0 clamp(5rem, 10vh, 7.5rem);
}

.path-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
  gap: 2.5rem 4.5rem;
  align-items: start;
}

.path-intro { grid-column: 1 / -1; max-width: 34rem; margin-bottom: 0.5rem; }

.path-lead {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  max-width: 42ch;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  padding-top: 0.35rem;
}

.timeline h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0 0 0.15rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
}

.path-logo {
  height: 1.7rem;
  padding: 0.12rem 0.38rem;
  flex-shrink: 0;
}

.path-logo img {
  max-height: 1.46rem;
  width: auto;
}

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

.langs {
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 1.75rem 1.75rem 1.5rem;
}

.langs ul {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}

.langs li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

.langs li:last-child { border-bottom: 0; }

.langs li span {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
}

/* Footer
   -------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 8vh, 5.5rem) 0 2.25rem;
}

.footer-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.2vw, 2.85rem);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0.85rem 0 1.35rem;
}

.footer-email:hover { color: var(--bronze); text-decoration: underline; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
}

.colophon {
  margin: 3rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* Reveal — one quiet entrance, hero only
   -------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .portrait {
    animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.2s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.28s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.36s; }
  .portrait { animation-delay: 0.22s; }
}

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

/* Tablet
   -------------------------------------------------- */
@media (max-width: 900px) {
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .brand-name { display: none; }
}

/* iPhone / small
   -------------------------------------------------- */
@media (max-width: 720px) {
  body { font-size: 1.02rem; }

  .nav { display: none; }

  .hero {
    padding: 2.75rem 0 3.25rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .portrait {
    order: -1;
    max-width: 14rem;
    width: 100%;
    height: auto;
  }

  .lede { max-width: none; }

  .cta { width: 100%; }
  .cta .btn { flex: 1 1 10rem; }

  .proof-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.15rem;
  }

  .figure { font-size: 1.45rem; }

  .story {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 2.1rem 0;
  }

  .story-logo {
    width: 7rem;
    height: 2.85rem;
  }

  .brand-strip {
    justify-content: flex-start;
  }

  .banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .header-inner { min-height: 3.6rem; }

  .site-footer { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
}


/* Print
   -------------------------------------------------- */
@media print {
  .site-header, .cta, .skip { display: none; }
  body { background: #fff; font-size: 11pt; }
  a { text-decoration: underline; }
  .hero, .work, .path, .proof, .site-footer { padding: 1.25rem 0; break-inside: avoid; }
}

@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .portrait {
    order: -1;
    max-width: 16rem;
    justify-self: start;
  }
}
