:root {
  --ink: #080808;
  --white: #ffffff;
  --pad: clamp(1rem, 3.8vw, 4.5rem);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { background: var(--ink); }

body {
  margin: 0;
  color: var(--white);
  background: var(--ink);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { color: var(--ink); background: var(--white); }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-180%);
  transition: transform 0.25s ease;
}
.skip-link:focus { transform: translateY(0); }

.noise {
  pointer-events: none;
  position: fixed;
  z-index: 20;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 5.25rem;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand { width: max-content; }
.brand-crop {
  display: block;
  position: relative;
  width: 9.65rem;
  height: 3.85rem;
  overflow: hidden;
}
.brand-crop img {
  position: absolute;
  width: 11.35rem;
  max-width: none;
  left: 50%;
  top: -3.48rem;
  transform: translateX(-50%);
}

.header-center,
.header-identity {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.header-center { justify-self: center; }
.header-identity { justify-self: end; }

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 42rem;
  padding: clamp(6.5rem, 12vh, 9rem) var(--pad) clamp(1.5rem, 4vh, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "DESTNY";
  position: absolute;
  z-index: -1;
  right: -0.04em;
  bottom: -0.28em;
  color: transparent;
  font-size: clamp(10rem, 24vw, 28rem);
  font-weight: 900;
  line-height: 0.76;
  letter-spacing: -0.09em;
  -webkit-text-stroke: 1px rgba(255,255,255,0.09);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  z-index: -2;
  inset: 0 var(--pad);
  border-right: 1px solid rgba(255,255,255,0.09);
  background-image: linear-gradient(90deg, rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 25% 100%;
}

.hero-kicker {
  position: relative;
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.9s 0.15s var(--ease) forwards;
}
.hero-kicker::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 0;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--white);
}

.hero-title {
  position: relative;
  z-index: 1;
  margin: auto 0;
  font-size: clamp(4.5rem, 11.5vw, 13rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.72;
  text-transform: uppercase;
}
.title-row { display: block; overflow: hidden; padding: 0.08em 0; }
.title-row > span {
  display: block;
  transform: translateY(115%);
  animation: titleIn 1.15s 0.15s var(--ease) forwards;
}
.title-row--offset { padding-left: 12vw; }
.title-row--offset > span { animation-delay: 0.3s; }
.hero-title em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.085em;
  text-transform: none;
}

.hero-title--logo {
  width: min(73vw, 68rem);
  letter-spacing: 0;
  line-height: 1;
}
.hero-logo-crop {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2.5 / 1;
  overflow: hidden;
}
.hero-logo-crop img {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  max-width: none;
  transform: translateY(65%);
  animation: heroLogoIn 1.15s 0.15s var(--ease) forwards;
}

.hero-bottom {
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 1s 0.55s var(--ease) forwards;
}
.hero-intro {
  margin: 0;
  max-width: 29rem;
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  line-height: 1.4;
}
.hero-intro strong { font-weight: 800; }

.hero-index {
  position: absolute;
  right: var(--pad);
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: rgba(255,255,255,0.35);
  transform: translateY(-50%);
}
.hero-index span { font-size: 0.56rem; letter-spacing: 0.18em; }
.hero-index strong { font-size: 1.1rem; }

.site-logos {
  min-height: 100svh;
  padding: clamp(6rem, 10vw, 10rem) var(--pad) clamp(3rem, 6vw, 6rem);
  color: var(--white);
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.18);
}

.logos-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: clamp(4rem, 8vw, 8rem);
}
.logos-heading p {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.logos-heading h2 {
  margin: 0;
  font-size: clamp(3.7rem, 8vw, 9rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}
.logos-heading h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-transform: none;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.22);
  border-bottom: 1px solid rgba(255,255,255,0.22);
}
.logo-card {
  min-width: 0;
  min-height: clamp(25rem, 38vw, 40rem);
  margin: 0;
  padding: clamp(1.25rem, 2.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.22);
  border-bottom: 1px solid rgba(255,255,255,0.22);
}
.logo-card:nth-child(3n) { border-right: 0; }
.logo-card--wide {
  grid-column: 1 / -1;
  min-height: clamp(24rem, 32vw, 34rem);
  border-right: 0;
  border-bottom: 0;
}
.logo-frame {
  flex: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.project-link { cursor: pointer; }
.project-link .project-logo {
  transition: transform 0.55s var(--ease), opacity 0.35s ease;
}
.project-link:hover .project-logo { transform: scale(1.045); }
.project-link:focus-visible,
.footer-family-mark:focus-visible,
.footer-brand:focus-visible,
.brand:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 0.45rem;
}
.project-logo { width: 88%; height: auto; object-fit: contain; }
.project-logo--white {
  filter: grayscale(1) brightness(4) contrast(10);
  mix-blend-mode: screen;
}
.project-logo--screen { mix-blend-mode: screen; }
.project-logo--reaux { width: 100%; }
.project-logo--estival { width: 100%; }
.project-logo--crest { width: 76%; }
.project-logo--dso { width: min(64%, 54rem); }
.logo-card figcaption {
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.22);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.logo-card figcaption span { color: rgba(255,255,255,0.45); }
.logo-card figcaption strong { font-weight: 800; text-align: right; }

.site-footer {
  min-height: 10rem;
  padding: 2.2rem var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,0.22);
}
.footer-brand {
  width: max-content;
  justify-self: start;
}
.footer-brand-crop {
  position: relative;
  display: block;
  width: 14.75rem;
  height: 5.95rem;
  overflow: hidden;
}
.footer-brand-crop img {
  position: absolute;
  top: -5.25rem;
  left: 50%;
  width: 17.25rem;
  max-width: none;
  transform: translateX(-50%);
}
.footer-copy {
  margin: 0;
  color: rgba(255,255,255,0.58);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}
.footer-family-mark {
  position: relative;
  justify-self: end;
  width: 14.75rem;
  height: 5.95rem;
  overflow: hidden;
  cursor: pointer;
}
.footer-family-mark img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 158%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

@keyframes titleIn { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroLogoIn { from { opacity: 0; transform: translateY(65%); } to { opacity: 1; transform: translateY(-50%); } }

@media (max-width: 760px) {
  .site-header { min-height: 4.6rem; display: flex; justify-content: space-between; }
  .header-center { display: none; }
  .brand-crop { width: 8.55rem; height: 3.48rem; }
  .brand-crop img { width: 10.15rem; top: -3.1rem; left: 50%; }
  .hero { min-height: 38rem; padding-top: 5.8rem; }
  .hero-grid { background-size: 50% 100%; }
  .hero-kicker { max-width: 15rem; line-height: 1.5; }
  .hero-title { font-size: clamp(3.9rem, 20vw, 7rem); }
  .hero-title--logo { width: min(95vw, 46rem); }
  .title-row--offset { padding-left: 0.7em; }
  .hero-intro { max-width: 16rem; font-size: 0.9rem; }
  .hero-index { display: none; }
  .logos-heading { grid-template-columns: 1fr; }
  .logos-grid { grid-template-columns: 1fr; }
  .logo-card { min-height: 27rem; padding: 2rem 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.22); }
  .logo-card--wide { grid-column: auto; min-height: 27rem; }
  .logo-card:last-child { border-bottom: 0; }
  .project-logo { width: min(78%, 28rem); }
  .project-logo--reaux, .project-logo--estival { width: min(92%, 34rem); }
  .project-logo--crest { width: min(72%, 25rem); }
  .project-logo--dso { width: min(92%, 34rem); }
  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
    min-height: 0;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .footer-brand { grid-column: 1; grid-row: 1; }
  .footer-brand-crop { width: 10.1rem; height: 4.05rem; }
  .footer-brand-crop img { width: 11.75rem; top: -3.56rem; }
  .footer-copy {
    grid-column: 1 / -1;
    grid-row: 2;
    white-space: normal;
    line-height: 1.5;
  }
  .footer-family-mark {
    grid-column: 2;
    grid-row: 1;
    width: min(10.1rem, 43vw);
    height: 4.05rem;
  }
}

@media (max-width: 430px) {
  .header-identity { max-width: 6.5rem; text-align: right; line-height: 1.4; }
  .hero-title { font-size: clamp(3.5rem, 19vw, 5.2rem); }
  .hero-title--logo { width: 100%; }
  .hero-intro { max-width: 19rem; }
}

@media (max-height: 700px) and (min-width: 761px) {
  .hero { min-height: 36rem; padding-top: 5.5rem; padding-bottom: 1.5rem; }
  .hero-title { font-size: clamp(4.5rem, 10vw, 8.5rem); }
  .hero-title--logo { width: min(66vw, 55rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .hero-kicker, .hero-bottom { opacity: 1; transform: none; }
  .title-row > span { transform: none; }
  .hero-logo-crop img { opacity: 1; transform: translateY(-50%); }
}
