/*
 * Values below are measured from the Canva design (1366px-wide page).
 * Canva fonts Cy Grotesk V3 Key, Gotham and Now are commercial; they are used when
 * installed locally (or add licensed WOFF2 files via @font-face url()). Until then the
 * closest free fonts are used: Archivo Expanded, Montserrat Light and Poppins.
 * Montserrat and Sorts Mill Goudy are the exact design fonts.
 */
@font-face { font-family: "OS Cy Grotesk"; font-weight: 400; src: local("Cy Grotesk V3 Key"), local("CyGroteskKey-Regular"), local("Cy Grotesk Key"); }
@font-face { font-family: "OS Cy Grotesk"; font-weight: 700; src: local("Cy Grotesk V3 Key Bold"), local("CyGroteskKey-Bold"), local("Cy Grotesk Key Bold"); }
@font-face { font-family: "OS Gotham"; font-weight: 300; src: local("Gotham Light"), local("Gotham-Light"); }
@font-face { font-family: "OS Now"; font-weight: 400; src: local("Now Regular"), local("Now-Regular"); }
@font-face { font-family: "OS Now"; font-weight: 700; src: local("Now Bold"), local("Now-Bold"); }

:root {
  /* Canva palette */
  --cream: #F8F5F0;
  --navy: #2A394C;
  --navy-grad: #0F2D64;
  --label: #F9FFD7;
  --copper: #BE7B36;
  --white: #FFFFFF;
  --focus: #F2B544;

  --f-cy: "OS Cy Grotesk", "Archivo", system-ui, sans-serif;
  --f-gotham: "OS Gotham", "Montserrat", system-ui, sans-serif;
  --f-now: "OS Now", "Poppins", system-ui, sans-serif;
  --f-mont: "Montserrat", system-ui, sans-serif;
  --f-goudy: "Sorts Mill Goudy", Georgia, serif;

  /* 1 design px; scales with viewport, capped so large screens don't balloon */
  --u: min(calc(100vw / 1366), 1.25px);
  --header-h: calc(132 * var(--u));
  --radius: calc(40 * var(--u));

  /* Canva "Echo" text effect (black, direction -52, offset 13) */
  --echo: calc(1.5 * var(--u)) calc(2 * var(--u)) 0 rgba(0, 0, 0, .28), calc(3 * var(--u)) calc(4 * var(--u)) 0 rgba(0, 0, 0, .12);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font: 300 1rem/1.4 var(--f-gotham);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2 { margin: 0; font-family: var(--f-cy); font-stretch: 112.5%; font-weight: 700; line-height: 1.18; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* Logo */
.logo { --logo-fg: #000; --logo-bg: var(--cream); height: auto; overflow: visible; }
.logo--mono { --logo-fg: var(--white); --logo-bg: #161F2C; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 calc(44 * var(--u)) 0 calc(50 * var(--u));
  background: var(--cream);
}
.brand { display: block; width: calc(178 * var(--u)); min-width: 110px; }
.site-nav ul { display: flex; gap: calc(62 * var(--u)); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font: 400 max(15px, calc(23 * var(--u)))/1.17 var(--f-cy); font-stretch: 112.5%;
  color: var(--navy); text-decoration: none; padding: 6px 0; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.nav-toggle { display: none; }
.site-nav { margin-left: auto; }

/* Language switcher (EN · FR · IT) */
.lang-switch {
  display: flex; align-items: center; gap: 2px;
  margin-left: calc(44 * var(--u)); padding-left: calc(22 * var(--u));
  border-left: 1px solid rgba(42, 57, 76, .25);
}
.lang-switch a {
  display: grid; place-items: center; min-width: 32px; min-height: 32px; padding: 0 4px;
  font: 400 max(12px, calc(14 * var(--u)))/1 var(--f-cy); font-stretch: 112.5%; letter-spacing: .06em;
  color: #5B6573; text-decoration: none; border-radius: 6px;
}
.lang-switch a:hover { color: var(--navy); background: rgba(42, 57, 76, .07); }
.lang-switch a[aria-current="page"] { color: var(--navy); font-weight: 700; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: calc(178 * var(--u)); height: max(32px, calc(32 * var(--u))); padding: 0 1.2em;
  border: 2px solid currentColor; border-radius: 999px;
  background: transparent; color: var(--white);
  font: 700 max(12px, calc(14.5 * var(--u)))/1 var(--f-cy); font-stretch: 112.5%; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .25s, color .25s;
}
.button:hover { background: var(--white); color: var(--navy); }
.button--serif {
  height: max(34px, calc(34 * var(--u)));
  color: var(--cream);
  font: 400 max(17px, calc(21 * var(--u)))/1 var(--f-goudy); letter-spacing: -.04em; text-transform: none;
}
.button--serif:hover { background: var(--cream); color: var(--navy); }

/* Section frames and cards */
.frame { padding: calc(19 * var(--u)) calc(18 * var(--u)); }
.frame--navy { background: var(--navy); }
.frame--cream { background: var(--cream); }
.card { position: relative; border-radius: var(--radius); overflow: hidden; isolation: isolate; }
.card > * { position: relative; z-index: 3; }

/* Hero: video at 53% over cream, Canva adjust T+14 B+20 C+16 */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 0 calc(19 * var(--u)) calc(18 * var(--u));
  min-height: calc(745 * var(--u));
  display: flex; align-items: flex-start;
  background: var(--cream);
  color: var(--white);
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1;
  opacity: .53;
  /* Canva: Temperature +14, Brightness +20, Contrast +16 (clip is low-saturation) */
  filter: url(#temp-warm) brightness(1.2) contrast(1.16) saturate(.72);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--grain); opacity: .16; mix-blend-mode: overlay;
}
.hero__content { position: relative; z-index: 2; padding: calc(287 * var(--u)) 0 calc(60 * var(--u)) calc(67 * var(--u)); }
.hero h1 { font-size: max(30px, calc(50 * var(--u))); text-shadow: var(--echo); }
.hero__tagline {
  font: 300 max(17px, calc(27 * var(--u)))/1.25 var(--f-gotham);
  max-width: calc(660 * var(--u)); min-width: 0;
  margin: calc(20 * var(--u)) 0 0 calc(4 * var(--u));
  text-shadow: 0 0 6px rgba(255, 255, 255, .55);
}
.hero .button { margin: calc(160 * var(--u)) 0 0 calc(4 * var(--u)); }
.hero__toggle {
  position: absolute; z-index: 3; right: calc(28 * var(--u)); bottom: calc(28 * var(--u));
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.8); background: rgba(42, 57, 76, .25); color: var(--white);
  display: grid; place-items: center; cursor: pointer;
}
.hero__toggle svg { width: 18px; fill: currentColor; }
.hero__toggle .i-play { display: none; }
.hero__toggle[aria-pressed="true"] .i-play { display: inline; }
.hero__toggle[aria-pressed="true"] .i-pause { display: none; }

/* About: navy bg, photo 53% with Temperature -17, #0F2D64 gradient from the left */
.about { min-height: calc(730 * var(--u)); background: var(--navy); color: var(--cream); }
.about__photo {
  position: absolute !important; inset: 0; z-index: 0 !important;
  background: url("../assets/img/about-crew.jpg") 62% center / cover;
  /* Canva: transparency 53, Temperature -17 */
  opacity: .53; filter: url(#temp-cool);
}
.about::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #071221 0%, #071221 14%, rgba(7, 18, 33, .72) 34%, rgba(7, 18, 33, 0) 62%);
}
.about::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--grain); opacity: .12; mix-blend-mode: overlay;
}
.about__text { padding: calc(79 * var(--u)) 0 calc(60 * var(--u)) calc(83 * var(--u)); max-width: calc(330 * var(--u)); min-width: 260px; }
.about h2 { font-size: max(30px, calc(46 * var(--u))); text-shadow: var(--echo); }
.about__rule { display: block; width: calc(180 * var(--u)); height: 3px; margin: calc(18 * var(--u)) 0 calc(36 * var(--u)); background: #5B6675; }
.about p { font: 700 max(15px, calc(19 * var(--u)))/1.19 var(--f-now); }
.about p + p { margin-top: 1.2em; }

/* Portfolio: animated pastel holo + warm glow + #0F2D64 gradient at 63% */
.portfolio {
  min-height: calc(730 * var(--u));
  padding: calc(82 * var(--u)) calc(28 * var(--u)) calc(70 * var(--u));
  color: var(--cream);
  background: var(--cream);
}
.portfolio__holo {
  position: absolute !important; inset: -20%; z-index: 0 !important;
  background:
    radial-gradient(26% 30% at 86% 22%, #CDB6DE 0%, transparent 70%),
    radial-gradient(22% 26% at 12% 85%, #C9E0E4 0%, transparent 70%),
    radial-gradient(18% 16% at 60% 98%, #F0B48C 0%, transparent 70%),
    linear-gradient(170deg, #E6E0DA 0%, #DCD3D6 40%, #CFC7D6 100%);
  animation: holo 20s ease-in-out infinite alternate;
}
@keyframes holo {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-4%, 3%) rotate(4deg); }
  100% { transform: translate(3%, -2%) rotate(-3deg); }
}
.portfolio::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(25, 26, 40, 0) 8%, rgba(25, 26, 40, .45) 38%, rgba(25, 26, 40, .7) 70%, rgba(25, 26, 40, .72) 100%);
}
.portfolio::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: var(--grain); opacity: .18; mix-blend-mode: overlay;
}
.eyebrow {
  display: flex; align-items: center; gap: calc(30 * var(--u));
  color: var(--navy); font: 400 max(26px, calc(49 * var(--u)))/1 var(--f-mont);
  letter-spacing: .16em; text-transform: uppercase;
  padding-left: calc(72 * var(--u)); margin-bottom: calc(110 * var(--u));
  text-shadow: 0 1px 2px rgba(42, 57, 76, .25);
}
.eyebrow::after { content: ""; width: calc(115 * var(--u)); height: max(2px, calc(4 * var(--u))); background: var(--cream); }
.works {
  /* Design shows one row of three cards; extra scenes scroll horizontally */
  list-style: none; margin: 0 0 calc(76 * var(--u)); padding: 0 0 calc(14 * var(--u));
  display: grid; gap: calc(19 * var(--u));
  grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 19 * var(--u)) / 3);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: rgba(248, 245, 240, .6) transparent;
}
.works > li { scroll-snap-align: start; }
.work {
  display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit;
  text-align: left; cursor: pointer; font: inherit;
}
.work img {
  width: 100%; height: auto; aspect-ratio: 412 / 285; object-fit: cover;
  border-radius: calc(16 * var(--u)); border: max(4px, calc(6 * var(--u))) solid var(--white);
  box-shadow: 0 calc(10 * var(--u)) calc(14 * var(--u)) rgba(30, 30, 40, .28);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s;
}
.work:hover img, .work:focus-visible img { transform: translateY(-4px); box-shadow: 0 18px 30px rgba(15, 22, 40, .35); }
.work { position: relative; }
.work__meta {
  position: absolute; left: max(4px, calc(6 * var(--u))); right: max(4px, calc(6 * var(--u))); bottom: max(4px, calc(6 * var(--u)));
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 2.2em .9em .8em; border-radius: 0 0 calc(10 * var(--u)) calc(10 * var(--u));
  background: linear-gradient(0deg, rgba(7, 18, 33, .8), transparent);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.work:hover .work__meta, .work:focus-visible .work__meta { opacity: 1; transform: translateY(-4px); }
@media (hover: none) { .work__meta { opacity: 1; transform: none; } }
.work__title { font: 700 max(14px, calc(17 * var(--u)))/1.2 var(--f-now); }
.work__time { font: 400 max(12px, calc(14 * var(--u)))/1 var(--f-now); opacity: .8; font-variant-numeric: tabular-nums; }
.portfolio > .button { margin-left: calc(7 * var(--u)); }

/* Contact: navy + #0F2D64 gradient + grainy overlay tinted #BE7B36 at 27% */
.contact {
  display: grid; grid-template-columns: calc(430 * var(--u)) 3px 1fr; align-items: center;
  column-gap: calc(70 * var(--u));
  min-height: calc(747 * var(--u));
  padding: calc(80 * var(--u)) calc(110 * var(--u)) calc(80 * var(--u)) calc(90 * var(--u));
  color: var(--white);
  background: linear-gradient(180deg, #111821 0%, #1A222E 45%, #343A44 100%);
}
.contact::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--grain), radial-gradient(70% 80% at 85% 100%, var(--copper), transparent 75%), linear-gradient(180deg, transparent, var(--copper));
  opacity: .27; mix-blend-mode: overlay;
}
.contact::before {
  content: ""; grid-column: 2; grid-row: 1; width: 3px; height: calc(192 * var(--u)); min-height: 120px;
  background: var(--white); position: relative; z-index: 3;
}
.contact__logo { grid-column: 1; grid-row: 1; width: calc(390 * var(--u)); justify-self: center; }
.contact__body { grid-column: 3; grid-row: 1; max-width: calc(560 * var(--u)); min-width: 0; }
.contact h2 { font-size: max(28px, calc(46 * var(--u))); margin-bottom: calc(26 * var(--u)); text-shadow: var(--echo); }
.contact p {
  font: 300 max(16px, calc(28 * var(--u)))/1.25 var(--f-gotham);
  text-align: justify; letter-spacing: .01em;
}
.contact strong { font: 700 1em/1 var(--f-now); letter-spacing: 0; }
.contact__list { margin: calc(46 * var(--u)) 0 0; display: grid; gap: calc(8 * var(--u)); }
.contact__list div { display: flex; gap: .35em; flex-wrap: wrap; align-items: baseline; }
.contact__list dt { font: 700 max(14px, calc(18.5 * var(--u)))/1.18 var(--f-now); color: var(--label); }
.contact__list dd { margin: 0; font: 400 max(14px, calc(18.5 * var(--u)))/1.18 var(--f-now); color: var(--label); }
.contact__list a { text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }


/* Player dialog */
.player {
  width: min(1100px, 94vw); padding: 0; border: 0; border-radius: 16px; overflow: visible;
  background: #000;
}
.player::backdrop { background: rgba(10, 18, 30, .85); backdrop-filter: blur(4px); }
.player__video { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; }
.player__close {
  position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--white); cursor: pointer; display: grid; place-items: center;
}
.player__close svg { width: 20px; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; }

/* Responsive (the Canva design is desktop-only; these keep the same look on small screens) */
@media (min-width: 861px) {
  .about h2, .contact h2 { white-space: nowrap; }
}
@media (max-width: 1000px) {
  .works { grid-auto-columns: calc((100% - 19 * var(--u)) / 2); }
  .contact { grid-template-columns: 1fr 3px 1.4fr; }
  .contact__logo { width: 100%; }
}
@media (max-width: 860px) {
  :root { --header-h: 76px; --radius: 22px; }
  .site-header { padding: 0 8px 0 16px; gap: 8px; }
  .lang-switch { order: 2; margin-left: auto; padding-left: 0; border-left: 0; }
  .nav-toggle { order: 3; }
  .nav-toggle {
    display: grid; place-items: center; width: 48px; height: 48px;
    border: 0; background: transparent; cursor: pointer; color: var(--navy);
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 26px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .3s, opacity .3s; content: "";
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before { position: absolute; top: -8px; }
  .nav-toggle__bars::after { position: absolute; top: 8px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid #E6E0D6; display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 16px 20px; }
  .site-nav a { display: block; padding: 14px 0; font-size: 1.15rem; }

  .frame { padding: 12px; }
  .hero { margin: 0 12px 12px; min-height: 560px; align-items: flex-end; }
  .hero__content { padding: 32px 20px 96px; }
  .hero__tagline { max-width: 24em; }
  .hero .button { margin-top: 32px; }
  .about { min-height: 520px; display: flex; align-items: flex-end; }
  .about::before { background: linear-gradient(0deg, var(--navy-grad) 0%, rgba(15, 45, 100, .7) 50%, rgba(15, 45, 100, 0) 100%); }
  .about__text { padding: 36px 24px; max-width: 34rem; }
  .portfolio { padding: 40px 16px; }
  .eyebrow { padding-left: 8px; margin-bottom: 32px; }
  .works { margin-bottom: 32px; }
  .contact { grid-template-columns: 1fr; row-gap: 32px; padding: 56px 24px; }
  .contact::before { display: none; }
  .contact__logo, .contact__body { grid-column: 1; grid-row: auto; }
  .contact__logo { width: min(70%, 280px); justify-self: start; }
  .contact__body { max-width: none; }
  .contact p { text-align: left; }
}
@media (max-width: 600px) {
  .works { grid-auto-columns: 86%; gap: 12px; }
}

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