@font-face {
  font-family: 'Sagittarius';
  src: url('Fonts/Sagittarius.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sentinel';
  src: url('Fonts/Sentinel-Light-Pro.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sentinel';
  src: url('Fonts/Sentinel-Book-Pro.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sentinel';
  src: url('Fonts/Sentinel-Medium-Pro.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: 'Sentinel';
  src: url('Fonts/Sentinel-Bold-Pro.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sentinel';
  src: url('Fonts/Sentinel-Black-Pro.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   ULTRA — Virtual Worlds & Immersive Experiences
   style.css
   ============================================================ */

/* === VARIABLES ============================================= */
:root {
  --black:   #06080f;
  --intro-bg: #fafafa;
  --intro-ink: #030303;
  --white:   #f0ede8;
  --dim:     rgba(240, 237, 232, 0.45);
  --dimmer:  rgba(240, 237, 232, 0.18);
  --panel-bg: #fafafa;

  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);

  --font-logo: 'Sagittarius', 'Helvetica Neue', Helvetica, sans-serif;
  --font-display: 'Sentinel', Georgia, serif;
  --font-body: 'Sentinel', Georgia, serif;

  --z-nav:    200;
  --z-panel:  500;
  --z-back:   600;
  --peek-height: clamp(72px, 10svh, 112px);

  /* Layout tokens — single source of truth */
  --gutter:      clamp(24px, 5vw, 64px);
  --content-max: 1280px;
  --panel-max:   1100px;

  /* === Type scale =============================================
     rem base: respects user browser font-size preferences.
     Sub-body sizes are fixed (px-equivalent floors).
     Display sizes are fluid via clamp() — no hard 769px snap.
     ========================================================= */

  --text-body:  1.125rem;  /* 18px @ browser default 16px   */
  --type-ratio: 1.25;

  /* Sub-body — fixed, not ratio-derived (avoid xs≈sm collapse) */
  --text-xs:  0.875rem;                                        /* 14px — label floor        */
  --text-sm:  max(1rem, calc(var(--text-body) / var(--type-ratio))); /* min 16px — nav / secondary */

  /* Body */
  --text-md: var(--text-body);

  /* Above body — ratio-derived */
  --text-lg:  calc(var(--text-md) * var(--type-ratio));        /* ~22px — subheading (available) */
  --text-xl:  calc(var(--text-lg) * var(--type-ratio));        /* ~28px */
  --text-2xl: calc(var(--text-xl) * var(--type-ratio));        /* ~35px */

  /* Display — fluid between mobile floor and desktop ceiling.
     Eliminates the hard jump at the 769px breakpoint.        */
  --text-3xl:        clamp(2.75rem,  4.4vw, 3.75rem);   /* 44 → 60px  tagline            */
  --text-4xl:        clamp(3.4375rem, 5.7vw, 4.875rem); /* 55 → 78px  panel/archive title */
  --text-5xl:        clamp(4.3125rem, 7.4vw, 6.3125rem);/* 69 → 101px work item title     */
  --text-display-ui: clamp(5.375rem,  9.7vw, 8.25rem);  /* 86 → 132px menu / footer CTA   */

  /* Leading */
  --leading-display:  0.8;
  --leading-headline: 0.86;
  --leading-tagline:  0.96;  /* hero tagline — looser than headline, tighter than body */
  --leading-label:    1.4;
  --leading-meta:     1.25;
  --leading-body:     1.68;

  --ink:           #0a0a0e;
  --ink-ghost:     rgba(10, 10, 14, 0.35);
  --ink-secondary: rgba(10, 10, 14, 0.55);
  --ink-body:      rgba(10, 10, 14, 0.80);

}

@media (min-width: 769px) {
  :root {
    --text-body:  1.3125rem; /* 21px @ browser default 16px */
    --type-ratio: 1.3;
    --leading-body: 1.54;
    /* display tokens are already fluid via clamp() — no override needed */
  }
}

/* === RESET ================================================= */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

/* === BASE ================================================== */
html {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  height: 100%;
  line-height: var(--leading-body);
  overscroll-behavior: none;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* === SKIP LINK ============================================= */
.skip-link {
  position: fixed; top: -100%; left: 24px; z-index: calc(var(--z-back) + 1);
  background: var(--white); color: var(--black);
  padding: 10px 18px;
  font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 24px; }


/* Shared "← Back" nav link used on archive, about, 404, and legal pages */
.archive-back-link {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-ghost);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s var(--ease-out);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (hover: hover) and (pointer: fine) {
  .archive-back-link:hover {
    color: var(--ink);
    transform: translateX(-3px);
  }
}
.archive-back-link:active { opacity: 0.6; }


/* === NAVIGATION ============================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px var(--gutter);
  mix-blend-mode: difference;
  opacity: 0;
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.55s var(--ease-expo),
    transform 0.65s var(--ease-expo),
    visibility 0s linear 0.65s;
}

.claim-ready nav,
.slides-ready nav {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.55s var(--ease-expo),
    transform 0.65s var(--ease-expo),
    visibility 0s linear 0s;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  min-width: 34vw;
}

.nav-group-right {
  justify-content: flex-end;
}

.nav-logo {
  display: none;
}

.nav-logo svg,
.panel-logo svg {
  height: 14px;
  width: auto;
  display: block;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.work-section {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease-out), visibility 0s linear 0.6s;
}

.slides-ready .work-section {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease-out), visibility 0s linear 0s;
}

.icon-link {
  display: inline-block;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background-color: var(--white);
  color: var(--black);
  cursor: pointer;
  text-decoration: none;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 32px 32px;
  mask-size: 32px 32px;
  transition: transform 90ms cubic-bezier(0.2, 0, 0.2, 1), opacity 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .icon-link:hover { transform: scale(1.1); }
}
.icon-link:active { transform: scale(0.88); }

.icon-link--open-menu {
  -webkit-mask-image: url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20d='M28.8008%209.06641V12.2664H3.20078V9.06641H28.8008Z'%3e%3c/path%3e%3cpath%20d='M28.8008%2019.7305V22.9305H3.20078V19.7305H28.8008Z'%3e%3c/path%3e%3c/svg%3e");
  mask-image: url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20d='M28.8008%209.06641V12.2664H3.20078V9.06641H28.8008Z'%3e%3c/path%3e%3cpath%20d='M28.8008%2019.7305V22.9305H3.20078V19.7305H28.8008Z'%3e%3c/path%3e%3c/svg%3e");
}

.icon-link--close-menu {
  -webkit-mask-image: url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20d='M23.918%205.81641L26.1807%208.07915L8.07878%2026.1811L5.81603%2023.9183L23.918%205.81641Z'%3e%3c/path%3e%3cpath%20d='M8.07812%205.81641L5.81538%208.07915L23.9173%2026.1811L26.1801%2023.9183L8.07812%205.81641Z'%3e%3c/path%3e%3c/svg%3e");
  mask-image: url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20d='M23.918%205.81641L26.1807%208.07915L8.07878%2026.1811L5.81603%2023.9183L23.918%205.81641Z'%3e%3c/path%3e%3cpath%20d='M8.07812%205.81641L5.81538%208.07915L23.9173%2026.1811L26.1801%2023.9183L8.07812%205.81641Z'%3e%3c/path%3e%3c/svg%3e");
}

.icon-link--instagram {
  -webkit-mask-image: url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20d='M16.0002%2011.8823C14.9079%2011.8823%2013.8604%2012.3162%2013.088%2013.0886C12.3157%2013.8609%2011.8818%2014.9084%2011.8818%2016.0007C11.8818%2017.093%2012.3157%2018.1405%2013.088%2018.9129C13.8604%2019.6852%2014.9079%2020.1191%2016.0002%2020.1191C17.0924%2020.1191%2018.14%2019.6852%2018.9123%2018.9129C19.6847%2018.1405%2020.1186%2017.093%2020.1186%2016.0007C20.1186%2014.9084%2019.6847%2013.8609%2018.9123%2013.0886C18.14%2012.3162%2017.0924%2011.8823%2016.0002%2011.8823Z'%3e%3c/path%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.37223%204.69983C13.7771%204.21187%2018.2223%204.21187%2022.6271%204.69983C25.0336%204.96848%2026.9736%206.86294%2027.2562%209.27823C27.7782%2013.7447%2027.7782%2018.2568%2027.2562%2022.7232C26.9736%2025.1385%2025.0336%2027.033%2022.6284%2027.3029C18.2232%2027.7909%2013.7775%2027.7909%209.37223%2027.3029C6.96581%2027.033%205.02573%2025.1385%204.74314%2022.7245C4.22104%2018.2576%204.22104%2013.7451%204.74314%209.27823C5.02573%206.86294%206.96581%204.96848%209.37223%204.69983ZM22.3357%208.39752C21.9996%208.39752%2021.6773%208.53103%2021.4396%208.76868C21.202%209.00632%2021.0685%209.32864%2021.0685%209.66472C21.0685%2010.0008%2021.202%2010.3231%2021.4396%2010.5608C21.6773%2010.7984%2021.9996%2010.9319%2022.3357%2010.9319C22.6718%2010.9319%2022.9941%2010.7984%2023.2317%2010.5608C23.4694%2010.3231%2023.6029%2010.0008%2023.6029%209.66472C23.6029%209.32864%2023.4694%209.00632%2023.2317%208.76868C22.9941%208.53103%2022.6718%208.39752%2022.3357%208.39752ZM9.98048%2016.0007C9.98048%2014.4043%2010.6146%2012.8733%2011.7435%2011.7445C12.8723%2010.6157%2014.4033%209.98152%2015.9997%209.98152C17.5961%209.98152%2019.1271%2010.6157%2020.2559%2011.7445C21.3847%2012.8733%2022.0189%2014.4043%2022.0189%2016.0007C22.0189%2017.5971%2021.3847%2019.1281%2020.2559%2020.2569C19.1271%2021.3858%2017.5961%2022.0199%2015.9997%2022.0199C14.4033%2022.0199%2012.8723%2021.3858%2011.7435%2020.2569C10.6146%2019.1281%209.98048%2017.5971%209.98048%2016.0007Z'%3e%3c/path%3e%3c/svg%3e");
  mask-image: url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20d='M16.0002%2011.8823C14.9079%2011.8823%2013.8604%2012.3162%2013.088%2013.0886C12.3157%2013.8609%2011.8818%2014.9084%2011.8818%2016.0007C11.8818%2017.093%2012.3157%2018.1405%2013.088%2018.9129C13.8604%2019.6852%2014.9079%2020.1191%2016.0002%2020.1191C17.0924%2020.1191%2018.14%2019.6852%2018.9123%2018.9129C19.6847%2018.1405%2020.1186%2017.093%2020.1186%2016.0007C20.1186%2014.9084%2019.6847%2013.8609%2018.9123%2013.0886C18.14%2012.3162%2017.0924%2011.8823%2016.0002%2011.8823Z'%3e%3c/path%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M9.37223%204.69983C13.7771%204.21187%2018.2223%204.21187%2022.6271%204.69983C25.0336%204.96848%2026.9736%206.86294%2027.2562%209.27823C27.7782%2013.7447%2027.7782%2018.2568%2027.2562%2022.7232C26.9736%2025.1385%2025.0336%2027.033%2022.6284%2027.3029C18.2232%2027.7909%2013.7775%2027.7909%209.37223%2027.3029C6.96581%2027.033%205.02573%2025.1385%204.74314%2022.7245C4.22104%2018.2576%204.22104%2013.7451%204.74314%209.27823C5.02573%206.86294%206.96581%204.96848%209.37223%204.69983ZM22.3357%208.39752C21.9996%208.39752%2021.6773%208.53103%2021.4396%208.76868C21.202%209.00632%2021.0685%209.32864%2021.0685%209.66472C21.0685%2010.0008%2021.202%2010.3231%2021.4396%2010.5608C21.6773%2010.7984%2021.9996%2010.9319%2022.3357%2010.9319C22.6718%2010.9319%2022.9941%2010.7984%2023.2317%2010.5608C23.4694%2010.3231%2023.6029%2010.0008%2023.6029%209.66472C23.6029%209.32864%2023.4694%209.00632%2023.2317%208.76868C22.9941%208.53103%2022.6718%208.39752%2022.3357%208.39752ZM9.98048%2016.0007C9.98048%2014.4043%2010.6146%2012.8733%2011.7435%2011.7445C12.8723%2010.6157%2014.4033%209.98152%2015.9997%209.98152C17.5961%209.98152%2019.1271%2010.6157%2020.2559%2011.7445C21.3847%2012.8733%2022.0189%2014.4043%2022.0189%2016.0007C22.0189%2017.5971%2021.3847%2019.1281%2020.2559%2020.2569C19.1271%2021.3858%2017.5961%2022.0199%2015.9997%2022.0199C14.4033%2022.0199%2012.8723%2021.3858%2011.7435%2020.2569C10.6146%2019.1281%209.98048%2017.5971%209.98048%2016.0007Z'%3e%3c/path%3e%3c/svg%3e");
}

.icon-link--linkedin {
  -webkit-mask-image: url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20d='M7.11855%203.00439C6.42821%203.00439%205.76615%203.27863%205.278%203.76677C4.78986%204.25492%204.51563%204.91698%204.51562%205.60732C4.51563%206.29766%204.78986%206.95972%205.278%207.44787C5.76615%207.93601%206.42821%208.21025%207.11855%208.21025C7.80889%208.21025%208.47095%207.93601%208.9591%207.44787C9.44724%206.95972%209.72148%206.29766%209.72148%205.60732C9.72148%204.91698%209.44724%204.25492%208.9591%203.76677C8.47095%203.27863%207.80889%203.00439%207.11855%203.00439ZM4.66874%2010.3538C4.62813%2010.3538%204.58919%2010.37%204.56047%2010.3987C4.53176%2010.4274%204.51562%2010.4663%204.51562%2010.5069V26.4307C4.51562%2026.5152%204.58422%2026.5838%204.66874%2026.5838H9.56836C9.60897%2026.5838%209.64792%2026.5677%209.67663%2026.539C9.70534%2026.5103%209.72148%2026.4713%209.72148%2026.4307V10.5069C9.72148%2010.4663%209.70534%2010.4274%209.67663%2010.3987C9.64792%2010.37%209.60897%2010.3538%209.56836%2010.3538H4.66874ZM12.6306%2010.3538C12.59%2010.3538%2012.5511%2010.37%2012.5224%2010.3987C12.4936%2010.4274%2012.4775%2010.4663%2012.4775%2010.5069V26.4307C12.4775%2026.5152%2012.5461%2026.5838%2012.6306%2026.5838H17.5303C17.5709%2026.5838%2017.6098%2026.5677%2017.6385%2026.539C17.6672%2026.5103%2017.6834%2026.4713%2017.6834%2026.4307V17.8564C17.6834%2017.2473%2017.9253%2016.6631%2018.3561%2016.2324C18.7868%2015.8017%2019.3709%2015.5597%2019.9801%2015.5597C20.5892%2015.5597%2021.1734%2015.8017%2021.6041%2016.2324C22.0348%2016.6631%2022.2768%2017.2473%2022.2768%2017.8564V26.4307C22.2768%2026.5152%2022.3454%2026.5838%2022.4299%2026.5838H27.3295C27.3701%2026.5838%2027.4091%2026.5677%2027.4378%2026.539C27.4665%2026.5103%2027.4826%2026.4713%2027.4826%2026.4307V15.872C27.4826%2012.8992%2024.8981%2010.5743%2021.9399%2010.8426C21.0247%2010.9265%2020.1283%2011.153%2019.2831%2011.5138L17.6834%2012.1998V10.5069C17.6834%2010.4663%2017.6672%2010.4274%2017.6385%2010.3987C17.6098%2010.37%2017.5709%2010.3538%2017.5303%2010.3538H12.6306Z'%3e%3c/path%3e%3c/svg%3e");
  mask-image: url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cpath%20d='M7.11855%203.00439C6.42821%203.00439%205.76615%203.27863%205.278%203.76677C4.78986%204.25492%204.51563%204.91698%204.51562%205.60732C4.51563%206.29766%204.78986%206.95972%205.278%207.44787C5.76615%207.93601%206.42821%208.21025%207.11855%208.21025C7.80889%208.21025%208.47095%207.93601%208.9591%207.44787C9.44724%206.95972%209.72148%206.29766%209.72148%205.60732C9.72148%204.91698%209.44724%204.25492%208.9591%203.76677C8.47095%203.27863%207.80889%203.00439%207.11855%203.00439ZM4.66874%2010.3538C4.62813%2010.3538%204.58919%2010.37%204.56047%2010.3987C4.53176%2010.4274%204.51562%2010.4663%204.51562%2010.5069V26.4307C4.51562%2026.5152%204.58422%2026.5838%204.66874%2026.5838H9.56836C9.60897%2026.5838%209.64792%2026.5677%209.67663%2026.539C9.70534%2026.5103%209.72148%2026.4713%209.72148%2026.4307V10.5069C9.72148%2010.4663%209.70534%2010.4274%209.67663%2010.3987C9.64792%2010.37%209.60897%2010.3538%209.56836%2010.3538H4.66874ZM12.6306%2010.3538C12.59%2010.3538%2012.5511%2010.37%2012.5224%2010.3987C12.4936%2010.4274%2012.4775%2010.4663%2012.4775%2010.5069V26.4307C12.4775%2026.5152%2012.5461%2026.5838%2012.6306%2026.5838H17.5303C17.5709%2026.5838%2017.6098%2026.5677%2017.6385%2026.539C17.6672%2026.5103%2017.6834%2026.4713%2017.6834%2026.4307V17.8564C17.6834%2017.2473%2017.9253%2016.6631%2018.3561%2016.2324C18.7868%2015.8017%2019.3709%2015.5597%2019.9801%2015.5597C20.5892%2015.5597%2021.1734%2015.8017%2021.6041%2016.2324C22.0348%2016.6631%2022.2768%2017.2473%2022.2768%2017.8564V26.4307C22.2768%2026.5152%2022.3454%2026.5838%2022.4299%2026.5838H27.3295C27.3701%2026.5838%2027.4091%2026.5677%2027.4378%2026.539C27.4665%2026.5103%2027.4826%2026.4713%2027.4826%2026.4307V15.872C27.4826%2012.8992%2024.8981%2010.5743%2021.9399%2010.8426C21.0247%2010.9265%2020.1283%2011.153%2019.2831%2011.5138L17.6834%2012.1998V10.5069C17.6834%2010.4663%2017.6672%2010.4274%2017.6385%2010.3987C17.6098%2010.37%2017.5709%2010.3538%2017.5303%2010.3538H12.6306Z'%3e%3c/path%3e%3c/svg%3e");
}

.menu-dialog {
  width: 100%;
  max-width: none;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  z-index: calc(var(--z-back) + 2);
}

.menu-dialog::backdrop {
  background: rgba(0, 0, 0, 0.24);
}

.menu-dialog[open] {
  /* Same 12-col / 16px-gap grid as every other page */
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto 1fr;   /* bar | remaining space */
  column-gap: 16px;
  padding-inline: var(--gutter);
  animation: menu-in 0.38s var(--ease-expo) forwards;
}

.menu-dialog[data-closing] {
  animation: menu-out 0.22s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

.menu-dialog-bar {
  grid-column: 1 / -1;            /* full 12 cols — × button at left gutter */
  display: flex;
  align-items: center;
  height: 96px;
  padding: 32px 0;                /* horizontal handled by parent grid */
}

.menu-dialog-inner {
  grid-column: 4 / 10;            /* centre 6 cols — matches archive & panel */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;      /* links sit at the bottom */
  padding: 48px 0;                /* horizontal handled by parent grid */
}

/* Column-span breakpoints — mirrors archive / panel */
@media (max-width: 1100px) {
  .menu-dialog-inner { grid-column: 3 / 11; } /* 8 cols */
}
@media (max-width: 768px) {
  .menu-dialog-inner { grid-column: 2 / 12; } /* 10 cols */
}
@media (max-width: 480px) {
  .menu-dialog-inner { grid-column: 1 / -1; } /* full */
}

.menu-dialog-link {
  color: var(--white);
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-display-ui);
  font-weight: 900;
  line-height: var(--leading-display);
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 80ms cubic-bezier(0.2, 0, 0.2, 1), opacity 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .menu-dialog-link:hover {
    color: var(--white);
    opacity: 0.82;
    transform: translateX(8px);
  }
}
.menu-dialog-link:active {
  opacity: 0.65;
  transform: translateX(4px) scale(0.98);
}

.home-scroll-shell {
  height: 100svh;
  overflow: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

.slides-ready .home-scroll-shell {
  overflow-y: auto;
}

/* === HERO ================================================== */
.hero {
  height: 100svh;
  min-height: 400px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  position: relative; overflow: hidden;
  background: var(--intro-bg);
  color: var(--intro-ink);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: height 1.1s var(--ease-expo), background-color 0.38s ease, color 0.38s ease;
}

.logo-dispersing .hero,
.claim-ready .hero,
.intro-complete .hero {
  background: var(--black);
  color: var(--white);
}

.slides-ready .hero {
  height: calc(100svh - var(--peek-height));
}

.hero-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  /* ============================================================
     SINGLE SOURCE OF TRUTH for the hero composition.

     --logo-w is the only "decided" dimension. The container width,
     logo SVG width, tagline width, gap, and tagline font-size all
     derive from it via the SVG aspect ratio (330:190 = 1.737).

     The composition is therefore *guaranteed* to keep its proportions
     across every viewport — there is no separate clamp on font, gap,
     or tagline width that can drift away from the logo.

     Lower bound (180px) protects readability on tiny viewports.
     No upper bound — content scales fully with the screen so the
     hero never feels "lost in space" on large monitors.
     ============================================================ */
  --logo-w: max(180px, min(88vw, calc(50svh * 1.737)));
  --logo-h: calc(var(--logo-w) / 1.737);

  width: var(--logo-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Gap = logo-height × 0.058 (≈ logo-height ÷ 17) — proportional, never drifts */
  gap: max(8px, calc(var(--logo-h) * 0.058));
  z-index: 4;
}

.hero-logo {
  /* Fills the .hero-center container so the SVG width is anchored
     to --logo-w (and not to its own intrinsic size). */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--intro-ink);
  overflow: visible;
  will-change: opacity, filter;
}

.hero-logo-svg {
  /* Width-only sizing — height:auto derives from the SVG aspect ratio (1.737).
     Width is 100% of the parent container, which equals --logo-w. */
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero-logo-source {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-logo-drop {
  animation: logo-drop 0.92s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--logo-delay, 0s);
  opacity: 0;
  transform: translateY(-120svh);
  transform-origin: center top;
  transform-box: fill-box;
}

.hero-logo-drop path {
  fill: currentColor;
}

.logo-dispersing .hero-logo {
  opacity: 0;
  filter: blur(2px);
  transition: opacity 0.24s ease, filter 0.28s ease;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  transform: none;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.logo-dispersing #particle-canvas {
  opacity: 1;
}

.hero-tagline {
  transform: translateY(18px);
  /* Width matches logo exactly via the .hero-center container.
     Font-size = logo-height × 0.104, so the tagline always carries the
     same visual weight relative to the logo, on any screen. */
  width: 100%;
  margin: 0;
  font-family: var(--font-display);
  font-size: max(14px, calc(var(--logo-h) * 0.104));
  font-weight: 400;
  line-height: var(--leading-tagline);
  letter-spacing: 0;
  color: rgba(240, 237, 232, 0.88);
  opacity: 0;
  text-align: center;
  text-wrap: balance;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.claim-ready .hero-tagline {
  opacity: 1;
  transform: translateY(0);
}

/* === WORK SECTION — McCann-style full-screen slides ======= */
.work-section {
  border-top: 1px solid rgba(240, 237, 232, 0.06);
  scroll-snap-align: none;
}

.work-list {
  list-style: none;
}

/* Each project = full viewport-height slide, snaps into place */
.work-item {
  position: relative;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  scroll-snap-align: start;
}

/* Full-bleed video (behind everything) */
.work-item-video-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  transform: scale(1);
  transition: transform 0.4s var(--ease-in-out);
  will-change: transform;
}

.work-item-video-bg video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Zoom in on hover — McCann's scale(1) → scale(1.1) */
@media (hover: hover) {
  .work-item:hover .work-item-video-bg { transform: scale(1.05); }
}

/* Dark overlay — matches McCann's gradient */
.work-item-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    rgba(0, 0, 0, 0.28),
    linear-gradient(171deg, transparent 55%, rgba(0,0,0,0.55) 85%),
    radial-gradient(circle, transparent, rgba(0,0,0,0.38) 84%);
  pointer-events: none;
  transition: opacity 0.45s ease;
}

/* Orb colour accent (blurred) */
.work-item-orb {
  position: absolute; z-index: 2; pointer-events: none;
  width: 60vw; height: 60vw; border-radius: 50%;
  bottom: -20%; left: -10%;
  background: var(--orb-color, #7c4dff);
  filter: blur(100px);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  will-change: opacity;
}

@media (hover: hover) {
  .work-item:hover .work-item-orb { opacity: 0.12; }
  .work-item:hover .work-item-overlay { opacity: 0.85; }
}

.work-item:active .work-item-overlay { opacity: 1; transition: opacity 80ms ease; }
.work-item:active .work-item-video-bg { transform: scale(1.02); }

/* Text block — bottom-left, above overlay */
.work-item-text {
  position: relative; z-index: 3;
  padding: clamp(32px, 4vw, 64px) var(--gutter);
  padding-right: clamp(100px, 16vw, 260px);
  display: flex;
  flex-direction: column;
}

/* Client label (small caps above title) */
.work-item-client {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: var(--leading-meta);
  color: rgba(240, 237, 232, 0.7);
  margin-bottom: 8px;
}

/* Big display title */
.work-item-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 900;
  line-height: var(--leading-headline);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white);
  max-width: 14ch;
  text-wrap: balance;
  margin-bottom: clamp(12px, 1.8vh, 24px);
}

/* Type + year */
.work-item-meta {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  line-height: var(--leading-meta);
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.4);
}


/* === DETAIL PANEL ========================================== */
.detail-panel {
  position: fixed; inset: 0; z-index: var(--z-panel);
  background: var(--panel-bg);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  opacity: 0; pointer-events: none;
  transform: translateY(32px);
  transition: opacity 0.45s var(--ease-expo), transform 0.45s var(--ease-expo);
  /* Column grid — same 12-col / 16px-gap structure as the debug overlay */
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 16px;
  padding-inline: var(--gutter);
  align-content: start;
}

.detail-panel.open   { opacity: 1; pointer-events: all; transform: translateY(0); }
.detail-panel.closing {
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.6, 1),
              transform 0.28s cubic-bezier(0.4, 0, 0.6, 1);
}

/* Transparent sticky bar — spans all 12 columns, grid handles left/right position */
.panel-content-top {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;           /* vertical only — horizontal comes from the parent grid */
  pointer-events: none; /* pass-through — only children capture events */
}

/* Logo fades out via JS scroll listener; only GPU props animated */
.panel-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.panel-back {
  pointer-events: auto;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-ghost);
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s var(--ease-expo);
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  padding: 8px 16px 8px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (hover: hover) and (pointer: fine) {
  .panel-back:hover { color: var(--ink); transform: translateX(-3px); }
}
.panel-back:active { transform: translateX(-2px) scale(0.97); }

.panel-inner {
  /* 6 of 12 columns, centred — cols 4–10 */
  grid-column: 4 / 10;
  /* vertical padding only; horizontal position comes from the parent grid */
  padding: clamp(24px, 3vw, 40px) 0 clamp(80px, 10vw, 120px);
}

.panel-media {
  width: 100%; aspect-ratio: 16 / 9;
  overflow: hidden; margin-bottom: 64px;
  position: relative; border-radius: 4px;
}

.panel-media-bg  { position: absolute; inset: 0; }
.panel-media-bg video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.panel-media-orb { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }


.panel-client-name {
  font-size: var(--text-sm); font-weight: 500;
  text-transform: uppercase;
  line-height: var(--leading-meta);
  letter-spacing: 0.06em;
  color: var(--ink-secondary); margin-bottom: 16px;
}

.panel-project-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl); font-weight: 900;
  letter-spacing: 0; line-height: 0.86;
  color: var(--ink); margin-bottom: 48px;
  max-width: 12ch;
  text-wrap: balance;
}

.panel-meta-row {
  display: flex; gap: 48px; margin-bottom: 48px; flex-wrap: wrap;
}

.meta-label {
  font-size: var(--text-sm); font-weight: 500; line-height: var(--leading-meta); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-secondary); margin-bottom: 8px;
}

.meta-value {
  font-size: var(--text-sm); font-weight: 500;
  color: var(--ink); line-height: var(--leading-label); letter-spacing: 0;
}

.panel-description {
  font-size: var(--text-md); font-weight: 400;
  line-height: var(--leading-body); color: var(--ink);
  max-width: 70ch; letter-spacing: 0;
}

/* Panel column-span breakpoints
   Desktop  >1100px : cols 4–10  (6 of 12)  ← set in base rule
   Tablet  ≤1100px  : cols 3–11  (8 of 12)
   Small   ≤768px   : cols 2–12  (10 of 12) ← handled in responsive block below
   Mobile  ≤480px   : full width             */
@media (max-width: 1100px) {
  .panel-inner { grid-column: 3 / 11; }
}
@media (max-width: 480px) {
  .panel-inner { grid-column: 1 / -1; }
}

@media (min-width: 1440px) {
  .work-item-title { max-width: 15ch; }
  .panel-project-title { max-width: 13ch; }
}

/* === FOOTER ================================================ */
.site-footer {
  background: var(--black);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 16px;
  padding: clamp(48px, 8svh, 96px) var(--gutter) clamp(32px, 4svh, 48px);
  scroll-snap-align: start;
  width: 100%;
}

.site-footer-inner {
  grid-column: 4 / 10;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 7svh, 72px);
}

@media (max-width: 1100px) {
  .site-footer-inner { grid-column: 3 / 11; }
}
@media (max-width: 768px) {
  .site-footer-inner { grid-column: 2 / 12; }
}
@media (max-width: 480px) {
  .site-footer-inner { grid-column: 1 / -1; }
}

/* Footer nav — same visual style as hamburger menu links */
.site-footer-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.site-footer-nav-link {
  color: var(--white);
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-display-ui);
  font-weight: 900;
  line-height: var(--leading-display);
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 80ms cubic-bezier(0.2, 0, 0.2, 1), opacity 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .site-footer-nav-link:hover {
    opacity: 0.82;
    transform: translateX(8px);
  }
}
.site-footer-nav-link:active {
  opacity: 0.65;
  transform: translateX(4px) scale(0.98);
}

/* Bottom: legal links + copyright stacked, centered */
.site-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: center;
}

.site-footer-links {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 8px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer-links a {
  color: inherit;
  font-size: var(--text-xs);
  line-height: var(--leading-label);
  opacity: 0.45;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .site-footer-links a:hover { opacity: 0.7; }
}
.site-footer-links a:active { opacity: 0.35; }

.site-footer-copy {
  font-size: var(--text-xs);
  line-height: var(--leading-meta);
  margin: 16px 0 0;
  opacity: 0.45;
}

/* === KEYFRAMES ============================================= */
@keyframes beam {
  0%   { top: -100%; }
  50%  { top: 0%; }
  100% { top: 100%; }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes menu-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}

@keyframes panel-item-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-reveal {
  opacity: 0;
  animation: panel-item-in 0.42s var(--ease-out) forwards;
}

@keyframes logo-drop {
  0% {
    opacity: 0;
    transform: translateY(-120svh);
  }
  82% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(5%, 7%) scale(1.07); }
  66%       { transform: translate(-4%, -5%) scale(0.96); }
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, -3%); }
  50%  { transform: translate(3%, 2%); }
  75%  { transform: translate(-1%, 4%); }
  100% { transform: translate(2%, -1%); }
}

/* === PANEL NAV + ENQUIRY =================================== */
.panel-nav-arrows {
  display: flex;
  gap: 12px;
  margin-top: 64px;
}

.panel-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-ghost);
  background: none;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease, transform 0.16s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .panel-nav-btn:hover {
    color: var(--ink);
  }
}
.panel-nav-btn:active { transform: scale(0.97); }


/* === VIDEO FALLBACK ======================================== */
.work-item-video-bg { background: var(--black); }

/* === FOCUS STYLES ========================================== */
:focus-visible {
  outline: 2px solid rgba(240, 237, 232, 0.5);
  outline-offset: 3px;
  border-radius: 2px;
}

.work-item:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(240, 237, 232, 0.25);
}

/* outline already suppressed via outline:none on .panel-back */

/* === RESPONSIVE ============================================ */
@media (max-width: 768px) {
  nav { padding: 20px var(--gutter); }
  .nav-group {
    min-width: 0;
    gap: 18px;
  }

  .icon-link {
    width: 28px;
    height: 28px;
    -webkit-mask-size: 28px 28px;
    mask-size: 28px 28px;
  }

  .internal-home-logo { top: 24px; }
  .menu-dialog-bar { height: 64px; padding: 20px 0; }
  .menu-dialog-inner { padding: 28px 0; }
  .work-item-text  { padding-right: clamp(32px, 6vw, 64px); }
  /* Mobile (any orientation): tighter line-height on tagline */
  .hero-tagline {
    line-height: 0.92;
  }

  .site-footer { padding: 48px var(--gutter) 32px; }
  /* Panel: 10 cols at ≤768px */
  .panel-inner        { grid-column: 2 / 12; }
  .panel-content-top  { padding: 20px 0; }
}

/* ============================================================
   MOBILE LANDSCAPE — small viewport, wide aspect.
   The 44svh constraint stops the logo from getting too tall
   when there isn't much vertical room.
   ============================================================ */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-center {
    --logo-w: max(160px, min(88vw, calc(44svh * 1.737)));
  }
}

/* ============================================================
   MOBILE PORTRAIT — bespoke setup for tall narrow viewports.

   On portrait, the SVG aspect ratio (1.737:1) means the logo's
   height is fundamentally capped by viewport width — so the
   composition (logo + gap + tagline) can never fill the same
   share of the viewport as it does on landscape. Centring it
   vertically therefore leaves two awkward empty bands above
   and below.

   Strategy: ANCHOR THE COMPOSITION NEAR THE TOP, let the empty
   space collect below as a single intentional scroll affordance
   leading into the peek strip. Tighter gap, larger tagline,
   shorter peek.
   ============================================================ */
@media (max-width: 768px) and (orientation: portrait) {
  :root {
    /* Taller peek on portrait — claims back the empty space below
       the logo composition and turns it into a confident preview
       of the work section. */
    --peek-height: clamp(140px, 18svh, 280px);
  }

  .hero-center {
    /* Anchor to viewport centre (not hero centre) so the composition
       sits visually in the middle of the dark area, regardless of how
       tall the peek strip is. */
    top: 50svh;

    /* Logo gets close to viewport edges on portrait — horizontal
       is the scarce resource here. */
    --logo-w: max(160px, min(94vw, calc(60svh * 1.737)));

    /* Roomier gap to match the larger tagline below. */
    gap: max(14px, calc(var(--logo-h) * 0.07));
  }

  .hero-tagline {
    /* Tagline reads as a true peer to the logo on small portrait
       screens — substantial visual weight, not a footnote. */
    font-size: max(20px, calc(var(--logo-h) * 0.20));
  }

  /* Display typography overrides — desktop minimums (--text-5xl ≥ 69px,
     --text-display-ui ≥ 86px) overflow narrow phones. Scale down with
     viewport width while preserving the hierarchy: project titles must
     stay smaller than menu/footer links. */
  .work-item-title {
    font-size: clamp(2.5rem, 11vw, 4.3125rem);   /* 40 → 69px on portrait */
    max-width: 12ch;                             /* tighter wrap on narrow */
  }

  .menu-dialog-link,
  .site-footer-nav-link {
    font-size: clamp(3.25rem, 14vw, 5.375rem);   /* 52 → 86px on portrait */
  }
}

/* === SKIP INTRO (arriving from archive with ?skip) ========= */
.skip-intro .hero { visibility: hidden; }
.skip-intro .hero-tagline { visibility: hidden; }

/* === SKIP HOME (returning to homepage, intro already seen) == */
/* Kill all intro animations so the page renders in final state */
.skip-home .hero            { transition: none !important; }
.skip-home .hero-logo       { opacity: 0 !important; transition: none !important; }
.skip-home .hero-logo-drop  { animation: none !important; opacity: 1; transform: none; }
.skip-home .hero-tagline    { transition: none !important; }
.skip-home nav              { transition: none !important; }

/* === REDUCED MOTION ======================================== */
@media (prefers-reduced-motion: reduce) {
  .home-scroll-shell { scroll-behavior: auto; }
  .hero-logo-drop { animation: none !important; opacity: 1; transform: none; }
  .hero-tagline { transition: none !important; }
  nav { transition: none !important; }
  .work-section { transition: none !important; }
  .panel-reveal { animation: none !important; opacity: 1; transform: none; }
  .detail-panel,
  .detail-panel.closing { transition: opacity 0.15s ease !important; transform: none !important; }
  .work-item-video-bg,
  .work-item-orb { transition-duration: 0.15s !important; }
  .panel-nav-btn,
  .panel-back { transition: none !important; }
}
