@font-face {
  font-family: "Gulams";
  src: url("fonts/Gulams%20Condensed/GulamsCondensed-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Antique";
  src: url("fonts/Antique/Antique-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #DBDCE2;
  --ink: #171717;
  --blue: #1b39e2;
  --blue-dark: #12218d;
  --night: #171819;
  --line: rgba(23, 23, 23, .2);
  --max-width: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Antique", Georgia, serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.site-shell { width: min(100% - 2 * var(--gutter), var(--max-width)); margin: 0 auto; }
.eyebrow, .nav, .button, .back-link, .meta-label, .media-label, .media-note, .footer-link { font-family: "Gulams", Impact, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.eyebrow { margin: 0; font-size: .75rem; }

.site-header { padding: 1.75rem var(--gutter); }
.header-inner { width: min(100%, var(--max-width)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand-mark { width: 10.8rem; }
.nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.75rem); font-size: 1.1rem; letter-spacing: .06em; }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; right: 0; bottom: -.45rem; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--blue); }

.project-hero { padding: clamp(5rem, 12vw, 10rem) 0 clamp(4rem, 9vw, 8rem); }
.project-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(18rem, .85fr); gap: clamp(3rem, 8vw, 8rem); align-items: end; }
.project-title { margin: 1rem 0 0; font-family: "Gulams", Impact, sans-serif; font-size: clamp(4.3rem, 12vw, 10.5rem); line-height: 1.2; letter-spacing: .005em; text-transform: uppercase; }
.project-summary { max-width: 30rem; margin: 0 0 .7rem; font-size: clamp(1.25rem, 2.3vw, 1.7rem); line-height: 1.2; }
.project-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.meta-label { margin: 0 0 .5rem; font-size: 1.1rem; }
.meta-value { margin: 0; font-size: 1rem; line-height: 1.25; }
.back-link { display: inline-flex; margin-top: 2rem; font-size: .78rem; border-bottom: 1px solid currentColor; }
.back-link::before { content: "← "; font-family: Arial, sans-serif; }

.project-cover { aspect-ratio: 16 / 9; margin-top: clamp(3rem, 8vw, 7rem); overflow: hidden; border: clamp(.5rem, 1.2vw, 1rem) solid var(--blue); background: var(--blue); }
.project-cover > img { width: 100%; height: 100%; object-fit: cover; }

.numbers-section { padding: 0 0 clamp(6rem, 12vw, 10rem); }
.numbers-header { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.section-title { margin: .8rem 0 0; font-family: "Gulams", Impact, sans-serif; font-size: clamp(3rem, 7vw, 6.2rem); line-height: 1.2; letter-spacing: .005em; text-transform: uppercase; }
.numbers-note { max-width: 22rem; margin: 0; line-height: 1.4; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat { padding: 1.5rem 0 1.2rem; border-bottom: 1px solid var(--line); }
.stat-number { margin: 0; color: var(--blue); font-family: "Gulams", Impact, sans-serif; font-size: clamp(3.5rem, 8vw, 7rem); line-height: .8; letter-spacing: .01em; }
.stat-label { margin: 1.3rem 0 0; font-size: 1.1rem; }
.stat-detail { margin: .4rem 0 0; max-width: 18rem; color: rgba(23, 23, 23, .65); font-size: .9rem; line-height: 1.35; }

.media-section { padding: clamp(5rem, 12vw, 10rem) 0; }
.media-section.dark { color: var(--paper); background: var(--night); }
.media-header { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.dark .eyebrow { color: #9ba7ff; }
.media-intro { max-width: 25rem; margin: 0; line-height: 1.4; }
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; max-width: 500px; min-width: 200px; }
.media-card { position: relative; width: 100%; max-width: 100%; min-width: 0; min-height: 0; max-height: 100%; aspect-ratio: 1; overflow: hidden; display: flex; align-items: end; padding: 0; background: #bbb; }
.media-card:nth-child(n) { grid-column: auto; margin-top: 0; }
.media-card::before, .media-card::after { content: ""; position: absolute; }
.photo-one { background: linear-gradient(135deg, #e2b26e 0 47%, #1b39e2 47% 100%); }
.photo-one::before { width: 55%; aspect-ratio: 1; right: 10%; top: 15%; border: 1px solid var(--ink); border-radius: 50%; }
.photo-one::after { width: 22%; aspect-ratio: 1; left: 13%; bottom: 17%; background: var(--paper); border-radius: 50% 50% 0 50%; transform: rotate(45deg); }
.photo-two { background: linear-gradient(160deg, #1b39e2 0 42%, #171819 42% 100%); }
.photo-two::before { width: 74%; height: 45%; left: 13%; top: 27%; border: 1px solid rgba(219, 220, 226, .75); transform: rotate(-18deg); }
.photo-two::after { width: 23%; aspect-ratio: 1; right: 18%; bottom: 18%; border-radius: 50%; background: #e65a35; }
.photo-three { background: linear-gradient(35deg, #c8d3ca 0 50%, #d8b682 50% 100%); }
.photo-three::before { width: 45%; height: 70%; left: 27%; top: 15%; border: 1rem solid var(--ink); border-radius: 50%; }
.photo-three::after { width: 24%; aspect-ratio: 1; left: 39%; top: 38%; background: var(--blue); border-radius: 50%; mix-blend-mode: multiply; }
.photo-image { aspect-ratio: 1; min-height: 0; padding: 0; background: var(--ink); }
.media-card > img { display: block; max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; }
.photo-image img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.media-label { position: relative; z-index: 1; padding: .55rem .7rem; color: var(--paper); background: var(--ink); font-size: .67rem; }
.media-card > .media-label { position: absolute; left: 1.2rem; bottom: 1.2rem; max-width: calc(100% - 2.4rem); pointer-events: none; }
.media-label.light { color: var(--ink); background: var(--paper); }
.media-note { position: absolute; z-index: 1; right: 1.2rem; top: 1.2rem; font-size: .62rem; }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.video-card { position: relative; min-height: clamp(18rem, 36vw, 30rem); overflow: hidden; display: flex; align-items: end; padding: 1.2rem; color: var(--paper); background: #2938a9; transition: transform .2s ease; }
.video-card:hover, .video-card:focus-visible { transform: translateY(-2px); }
.video-card:nth-child(2) { background: #40362c; }
.video-card:nth-child(2)::before { width: 55%; left: 22%; border-radius: 0; transform: rotate(18deg); }
.video-card::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; left: 15%; top: 10%; border: 1px solid rgba(219, 220, 226, .75); border-radius: 50%; }
.play-button { position: absolute; top: 50%; left: 50%; z-index: 1; width: 4rem; height: 4rem; display: grid; place-items: center; border: 1px solid var(--paper); border-radius: 50%; color: var(--paper); font-size: 1.2rem; transform: translate(-50%, -50%); transition: color .2s ease, background .2s ease; }
.video-card:hover .play-button { color: var(--ink); background: var(--paper); }

.instagram-grid { align-items: start; }
.instagram-card { min-width: 0; display: flex; justify-content: center; align-items: start; }
.instagram-media { width: 100%; max-width: 540px; min-width: 0; margin: 0 auto !important; overflow: hidden; background: #fff; border: 0; border-radius: 3px; box-shadow: 0 1px 10px rgba(0, 0, 0, .12); }
.instagram-media > div { padding: 1rem; }
.instagram-fallback a { color: #385898; font-family: Arial, sans-serif; font-size: .95rem; }

.project-footer { padding: clamp(5rem, 12vw, 10rem) 0 1.5rem; }
.project-cta { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.project-cta h2 { max-width: 700px; margin: .8rem 0 0; font-family: "Gulams", Impact, sans-serif; font-size: clamp(3rem, 7vw, 6rem); line-height: .9; letter-spacing: .005em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; gap: .8rem; padding: .95rem 1.25rem; color: var(--paper); background: var(--blue); font-size: .9rem; letter-spacing: .08em; transition: background .2s ease, transform .2s ease; }
.button::after { content: "↗"; font-family: Arial, sans-serif; font-size: 1rem; }
.button:hover, .button:focus-visible { background: var(--blue-dark); transform: translateY(-2px); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; color: rgba(23, 23, 23, .62); font-size: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.3rem 2rem; }
.footer-link { color: var(--ink); font-size: .72rem; }
