:root {
  --paper: #0061a8;
  --ink: #fff;
  --muted: rgba(255, 255, 255, 0.78);
  --rule: rgba(255, 255, 255, 0.22);
  --card: #fff;
  --card-ink: #111;
  --card-muted: #555;
  --card-rule: #e4e4e4;
  --accent: #fff;
  --accent-hover: #d6e8f5;
  --tile: #00487d;
  --tile-alt: #003d6b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

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

.site-header,
main,
footer {
  width: min(1040px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 0;
}

.mark {
  margin: 0;
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

nav .button {
  color: var(--ink);
}

nav .button:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 4rem 0 3.5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1.25rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.button:hover {
  background: var(--ink);
  color: var(--paper);
}

.button-solid,
.button-nav {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.92);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.button-solid:hover,
.button-nav:hover {
  background: #fff;
  color: var(--paper);
}

.button-solid {
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
}

.hero-media {
  justify-self: end;
  width: min(100%, 300px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #111;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.hero-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */

.work {
  padding: 0 0 3rem;
  border-top: 1px solid var(--rule);
}

.featured {
  margin-bottom: 3.5rem;
}

.featured .card {
  width: min(100%, 60%);
  margin-inline: auto;
}

.featured .card-media {
  aspect-ratio: 16 / 10;
  background: #0515f5;
}

.featured-story {
  max-width: none;
  padding: 1.5rem 0 0;
}

.featured-story h3 {
  margin: 0 0 0.85rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.featured-story p {
  margin: 0;
  color: var(--muted);
}

.contact {
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 1.75rem 0 1.5rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Work grid */

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

.card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--card);
  border-radius: 1rem;
  background: var(--card);
  color: var(--card-ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  color: var(--card-ink);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.card-media img,
.card-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jpm-photo {
  object-position: 58% 40%;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.5rem;
  background: var(--tile);
  color: var(--ink);
}

.tile-alt {
  background: var(--tile-alt);
}

.tile .big {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.tile .small {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

.card-text {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem 1.1rem;
}

.card-title {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.card-tag {
  margin: 0;
  flex-shrink: 0;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--card-rule);
  border-radius: 999px;
  color: var(--card-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Story overlay */

.story-dialog {
  width: min(800px, calc(100% - 2rem));
  max-height: min(88vh, 900px);
  padding: 1.5rem 1.5rem 1.75rem;
  overflow: auto;
  border: 1px solid #fff;
  border-radius: 1rem;
  background: #fff;
  color: var(--card-ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.story-dialog.video-only {
  width: min(1120px, calc(100% - 1.5rem));
  max-height: min(94vh, 920px);
  padding: 0.7rem 0.75rem 0.85rem;
}

.story-dialog.video-only .story-tag,
.story-dialog.video-only h3 {
  display: none;
}

.story-dialog.video-only .dialog-close {
  margin: 0 0 0.65rem auto;
}

.story-dialog.video-only video {
  width: 100%;
  max-height: calc(94vh - 3.25rem);
  margin: 0;
  object-fit: contain;
}

.dialog-close {
  display: block;
  margin: 0 0 1.25rem auto;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--card-ink);
  border-radius: 999px;
  background: transparent;
  color: var(--card-ink);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.dialog-close:hover {
  background: var(--card-ink);
  color: #fff;
}

.story-tag {
  margin: 0 0 0.35rem;
  color: var(--card-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dialog-body h3 {
  margin: 0 0 1rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.dialog-body p {
  margin: 0;
  color: var(--card-muted);
}

.dialog-body video {
  display: block;
  width: 100%;
  margin: 0 0 1.1rem;
  border-radius: 0.6rem;
  background: #000;
}

.dialog-body .story-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0 0 1.1rem;
  border-radius: 0.6rem;
  background: #111;
}

.dialog-body .story-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

.dialog-body .jpm-photo {
  object-position: 58% 40%;
}

/* Contact and footer */

.contact {
  padding: 4.5rem 0 3.5rem;
}

.get-in-touch {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding-bottom: 3.5rem;
}

.get-in-touch-copy {
  max-width: 40rem;
}

.get-in-touch h2,
.connect h2 {
  margin: 0 0 1rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  font-weight: 500;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: none;
}

.cal-mark {
  width: min(11.5rem, 32vw);
  height: auto;
  flex-shrink: 0;
}

.get-in-touch p {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.booking {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.connect h2 {
  margin-bottom: 1.5rem;
}

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

.connect-card {
  display: flex;
  flex-direction: column;
  min-height: 17rem;
  padding: 1.4rem 1.35rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.1rem;
  background: rgba(0, 40, 72, 0.28);
  color: var(--ink);
  text-decoration: none;
}

.connect-card:hover {
  background: rgba(0, 32, 60, 0.45);
  color: var(--ink);
}

.connect-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.connect-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  background: #fff;
  color: var(--paper);
}

.connect-label {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.connect-handle {
  margin: 0.85rem 0 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.connect-copy {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.connect-cta {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: #fff;
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 600;
}

footer {
  padding: 0 0 3rem;
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: min(1040px, calc(100% - 2rem));
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.5rem;
  }

  .hero-media {
    justify-self: start;
    width: min(100%, 240px);
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .featured {
    margin-bottom: 2.5rem;
  }

  .featured .card {
    width: 100%;
  }

  .card-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .connect-grid {
    grid-template-columns: 1fr;
  }

  .cal-mark {
    width: 5.5rem;
  }

  nav {
    align-items: center;
  }
}

.disclaimer {
  margin-top: 0.75rem;
  max-width: 44rem;
  font-size: 0.78rem;
  opacity: 0.7;
}
