:root {
  --cream: #F7F3EC;
  --navy: #1B2B44;
  --terracotta: #C1502E;
  --taupe: #A69C8D;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--cream);
  color: var(--navy);
  /* Sofia Pro Bold/Regular go here once licensed — falls back to a clean system sans until then */
  font-family: "Sofia Pro", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  border-bottom: 1px solid rgba(27,43,68,0.1);
}

.wordmark {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--navy);
  text-decoration: none;
}

nav.site-nav {
  display: flex;
  gap: 28px;
}

nav.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.75;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

nav.site-nav a:hover,
nav.site-nav a.active {
  opacity: 1;
  border-bottom-color: var(--terracotta);
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.hero-portrait {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin: 0 auto 26px;
  box-shadow: 0 8px 22px rgba(27, 43, 68, 0.14);
  background: var(--cream);
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 700;
  margin: 0 0 18px;
}

.hero-headline {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 20px;
  max-width: 16ch;
}

/* Used on interior pages (About, etc.) where the headline is a fuller sentence
   rather than a short tagline */
.hero-headline.headline-wide {
  font-size: clamp(26px, 4vw, 40px);
  max-width: 34ch;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  opacity: 0.8;
  max-width: 46ch;
  margin: 0 auto 8px;
}

.contact-email {
  display: inline-block;
  margin-top: 22px;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--cream);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.contact-email:hover {
  opacity: 0.9;
}

.coming-soon {
  display: inline-block;
  margin-top: 24px;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--taupe);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Work page — grid of project cards, replaces the centered single-hero layout */
main.work-main {
  display: block;
  align-items: initial;
  justify-content: initial;
  padding: 60px 40px 80px;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

.work-intro {
  text-align: center;
  margin: 0 auto 48px;
}

.work-intro .hero-headline {
  margin-left: auto;
  margin-right: auto;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  text-align: left;
}

.work-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(27, 43, 68, 0.08);
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Custom thumbnail facade — shows a still + our own play button, and only
   loads the real YouTube iframe once the visitor clicks. Removes YouTube's
   own branded overlay until playback actually starts. */
.video-facade {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

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

.video-facade .tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 43, 68, 0.08), rgba(27, 43, 68, 0.45));
}

.video-facade .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
}

.video-facade .play-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--cream);
}

.video-facade:hover .play-button {
  transform: translate(-50%, -50%) scale(1.08);
}

.work-card-body {
  padding: 20px 22px 24px;
}

.work-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--navy);
}

.work-credits {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--navy);
  opacity: 0.85;
}

.work-credits .credit-label {
  color: var(--terracotta);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  margin-right: 6px;
}

footer.site-footer {
  padding: 24px 40px;
  text-align: center;
  font-size: 12.5px;
  color: var(--navy);
  opacity: 0.55;
  border-top: 1px solid rgba(27,43,68,0.1);
}
