:root {
  --pacific: #0d4f66;
  --pacific-dark: #073544;
  --forest: #1e5a45;
  --forest-dark: #12382c;
  --maple: #d11f2f;
  --maple-dark: #9e1824;
  --warm-white: #f8f4ed;
  --paper: #fffaf2;
  --charcoal: #1d2426;
  --muted: #667273;
  --copper: #b86f3f;
  --copper-light: #e7aa78;
  --line: rgba(29, 36, 38, 0.14);
  --shadow: 0 24px 80px rgba(10, 28, 34, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--charcoal);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--paper);
  border-bottom: 1px solid rgba(255, 250, 242, 0.12);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(248, 244, 237, 0.94);
  color: var(--charcoal);
  border-bottom-color: rgba(209, 31, 47, 0.18);
  box-shadow: 0 12px 36px rgba(12, 38, 45, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 250, 242, 0.34), 0 10px 26px rgba(5, 22, 27, 0.2);
  overflow: hidden;
}

.site-header.is-scrolled .brand-mark,
.site-header.is-open .brand-mark {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(209, 31, 47, 0.18), 0 10px 24px rgba(12, 38, 45, 0.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.brand-name {
  padding-top: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-nav a {
  opacity: 0.86;
}

.site-nav a:hover {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 148px clamp(20px, 6vw, 84px) 72px;
  color: var(--paper);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--pacific-dark);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 22, 27, 0.86) 0%, rgba(5, 22, 27, 0.42) 46%, rgba(5, 22, 27, 0.12) 100%),
    linear-gradient(0deg, rgba(5, 22, 27, 0.8) 0%, rgba(5, 22, 27, 0) 44%);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(20px, 6vw, 84px);
  width: 3px;
  height: min(38vh, 360px);
  background: var(--maple);
  z-index: -1;
  opacity: 0.86;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(0.88) contrast(1.04);
}

.film-strip {
  position: absolute;
  right: clamp(18px, 3vw, 48px);
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  gap: 8px;
  width: min(520px, calc(100% - 36px));
}

.film-strip span {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 250, 242, 0.28);
  background: rgba(255, 250, 242, 0.08);
  color: rgba(255, 250, 242, 0.84);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.hero-content {
  width: min(780px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--copper-light);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
}

h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
}

h1 {
  max-width: 760px;
  font-size: 9.6rem;
}

h2 {
  font-size: 5.8rem;
}

h3 {
  font-size: 1.1rem;
}

.hero-copy {
  width: min(600px, 100%);
  margin: 24px 0 0;
  color: rgba(255, 250, 242, 0.86);
  font-size: 1.28rem;
}

.canada-signature {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 250, 242, 0.24);
  padding-top: 16px;
  color: rgba(255, 250, 242, 0.86);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.canada-signature span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.16);
  box-shadow: 0 0 0 1px rgba(255, 250, 242, 0.24);
  overflow: hidden;
}

.canada-signature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 18px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.button.primary {
  background: var(--maple);
  color: var(--paper);
}

.button.primary:hover {
  background: var(--maple-dark);
}

.button.secondary {
  border-color: rgba(255, 250, 242, 0.44);
  color: var(--paper);
}

.intro-band,
.section,
.image-story,
.media-band,
.contact-section,
.site-footer {
  padding: clamp(64px, 9vw, 128px) clamp(20px, 6vw, 84px);
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1fr);
  gap: clamp(32px, 6vw, 96px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.intro-statement {
  display: grid;
  gap: 18px;
}

.intro-statement span {
  color: var(--maple);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro-statement strong {
  max-width: 560px;
  font-family: "Cormorant Garamond", serif;
  font-size: 3.8rem;
  line-height: 1;
}

.intro-band p,
.rich-copy p,
.section-heading p,
.image-story p,
.contact-section p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(280px, 1fr);
  gap: clamp(32px, 7vw, 112px);
  background: var(--warm-white);
}

.rich-copy {
  display: grid;
  align-content: start;
  gap: 22px;
  padding-top: 16px;
}

.image-story {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: var(--pacific-dark);
  color: var(--paper);
}

.image-story img {
  width: 100%;
  height: min(64vw, 620px);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.image-story p {
  color: rgba(255, 250, 242, 0.76);
  margin-top: 24px;
}

.section-heading {
  width: min(920px, 100%);
  margin-bottom: clamp(32px, 6vw, 72px);
}

.section-heading h2 {
  margin-bottom: 24px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principles article {
  min-height: 280px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principles span,
.media-grid span {
  color: var(--maple);
  font-size: 0.75rem;
  font-weight: 800;
}

.principles h3,
.project-card h3,
.media-grid h3,
.timeline h3 {
  margin-top: 20px;
  font-size: 1.24rem;
}

.principles p,
.project-card p,
.timeline p {
  margin: 14px 0 0;
  color: var(--muted);
}

.timeline-section {
  background: var(--paper);
}

.timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.timeline article {
  display: grid;
  grid-template-columns: 180px minmax(220px, 320px) minmax(280px, 1fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--forest);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.timeline h3,
.timeline p {
  margin-top: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  min-height: 260px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.project-card.featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 0.9fr);
  gap: 34px;
  align-items: end;
  padding: 0;
  overflow: hidden;
}

.project-card.featured img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.project-card.featured div {
  padding: 34px;
}

.masterclasses {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1.2fr);
  gap: clamp(32px, 6vw, 88px);
  background: var(--forest-dark);
  color: var(--paper);
}

.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.topic-cloud span {
  border: 1px solid rgba(255, 250, 242, 0.22);
  padding: 11px 14px;
  color: rgba(255, 250, 242, 0.84);
  font-size: 0.84rem;
  font-weight: 700;
}

.media-band {
  background: var(--paper);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.media-grid article {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: var(--pacific);
  color: var(--paper);
}

.media-grid article:nth-child(2) {
  background: var(--forest);
}

.media-grid article:nth-child(3) {
  background: var(--charcoal);
}

.media-grid h3 {
  color: var(--paper);
  font-size: 1.82rem;
  line-height: 1.08;
}

.gallery-strip {
  display: grid;
  grid-template-columns: 0.8fr 1.25fr 1fr;
  gap: 0;
}

.gallery-strip img {
  width: 100%;
  height: clamp(320px, 46vw, 620px);
  object-fit: cover;
}

.gallery-strip img:first-child {
  object-position: center 18%;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 0.75fr);
  gap: clamp(32px, 7vw, 96px);
  background: var(--warm-white);
}

.contact-section h2 {
  margin-bottom: 24px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--forest-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(29, 36, 38, 0.2);
  background: #fff;
  color: var(--charcoal);
  padding: 13px 14px;
  outline-color: var(--maple);
}

.contact-form .button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  background: var(--charcoal);
  color: rgba(255, 250, 242, 0.74);
  padding-top: 32px;
  padding-bottom: 32px;
}

.site-footer p {
  margin: 0;
}

.ai-share-widget {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 30;
  display: grid;
  justify-items: end;
  gap: 10px;
  pointer-events: none;
}

.ai-panel {
  width: min(360px, calc(100vw - 32px));
  padding: 18px;
  background: rgba(255, 250, 242, 0.97);
  border: 1px solid rgba(209, 31, 47, 0.18);
  box-shadow: 0 22px 70px rgba(8, 28, 34, 0.22);
  color: var(--charcoal);
  pointer-events: auto;
  backdrop-filter: blur(18px);
}

.ai-panel[hidden] {
  display: none;
}

.ai-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ai-panel-header .eyebrow {
  margin-bottom: 6px;
  color: var(--maple);
}

.ai-panel-header h2 {
  font-size: 2rem;
}

.icon-button,
.share-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(29, 36, 38, 0.18);
  border-radius: 50%;
  background: #fff;
  color: var(--charcoal);
  cursor: pointer;
}

.icon-button svg,
.share-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ai-answer {
  min-height: 86px;
  margin: 18px 0;
  border-left: 3px solid var(--maple);
  padding: 4px 0 4px 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.ai-answer a {
  color: var(--maple);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ai-chat-form {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.ai-chat-form label {
  color: var(--forest-dark);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ai-input-row {
  display: grid;
  grid-template-columns: 1fr 42px auto;
  gap: 8px;
}

.ai-input-row input {
  min-width: 0;
  border: 1px solid rgba(29, 36, 38, 0.18);
  background: #fff;
  color: var(--charcoal);
  padding: 11px 12px;
  outline-color: var(--maple);
}

.ai-input-row button {
  border: 0;
  background: var(--maple);
  color: #fff;
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.ai-input-row .ai-voice-button {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid rgba(29, 36, 38, 0.16);
  background: #fff;
  color: var(--charcoal);
  padding: 0;
}

.ai-voice-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.ai-voice-button.is-listening {
  background: var(--maple);
  color: #fff;
}

.ai-prompts {
  display: grid;
  gap: 8px;
}

.ai-prompts button {
  width: 100%;
  border: 1px solid rgba(29, 36, 38, 0.14);
  background: #fff;
  color: var(--charcoal);
  padding: 11px 12px;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.floating-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.ask-ai-button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--maple);
  color: #fff;
  padding: 0 18px;
  box-shadow: 0 16px 40px rgba(8, 28, 34, 0.24);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.share-button {
  border-color: rgba(255, 250, 242, 0.48);
  background: var(--charcoal);
  color: var(--paper);
  box-shadow: 0 16px 40px rgba(8, 28, 34, 0.2);
}

.share-status {
  min-height: 18px;
  margin: 0;
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 800;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.38);
}

@media (max-width: 940px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px 20px 20px;
    background: rgba(248, 244, 237, 0.98);
    color: var(--charcoal);
    box-shadow: 0 18px 34px rgba(12, 38, 45, 0.12);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .film-strip,
  .principles,
  .media-grid,
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .intro-band,
  .split,
  .image-story,
  .masterclasses,
  .contact-section,
  .project-card.featured {
    grid-template-columns: 1fr;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  h1 {
    font-size: 7.2rem;
  }

  h2 {
    font-size: 4.5rem;
  }

  .intro-statement strong {
    font-size: 3.1rem;
  }

  .project-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    font-size: 0.76rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 100vh;
    padding: 116px 18px 36px;
  }

  h1 {
    font-size: 4.6rem;
  }

  h2 {
    font-size: 3.1rem;
  }

  .hero-copy,
  .intro-band p,
  .rich-copy p,
  .section-heading p,
  .image-story p,
  .contact-section p {
    font-size: 1rem;
  }

  .intro-statement strong {
    font-size: 2.55rem;
  }

  .media-grid h3 {
    font-size: 1.45rem;
  }

  .button {
    width: 100%;
  }

  .film-strip {
    position: static;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-top: 34px;
  }

  .hero {
    align-items: end;
  }

  .intro-band,
  .section,
  .image-story,
  .media-band,
  .contact-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .principles,
  .media-grid,
  .project-grid,
  .gallery-strip {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: auto;
  }

  .principles article,
  .project-card,
  .media-grid article {
    min-height: auto;
  }

  .image-story img,
  .project-card.featured img,
  .gallery-strip img {
    height: 340px;
  }

  .site-footer {
    display: grid;
  }

  .ai-share-widget {
    right: 14px;
    bottom: 14px;
  }

  .ai-panel {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 112px);
    overflow-y: auto;
  }

  .ask-ai-button {
    min-height: 46px;
  }

  .ai-input-row {
    grid-template-columns: 1fr 42px;
  }

  .ai-input-row button[type="submit"] {
    grid-column: 1 / -1;
    min-height: 42px;
  }
}
