/* Nice Ice STL
   Concept: clarity. The page is a dark bar; the ice is the light source.
   Brand blue and gold live in the seal and in small details only. */

:root {
  /* Night: the room */
  --ink: #0c1317;
  --ink-2: #141f26; /* alternating section band, a step lighter than --ink */
  --ink-3: #18242b;
  --frost: #e9eef1;
  --frost-dim: #a9b6be;
  --line: rgba(233, 238, 241, 0.16);


  /* From the seal */
  --blue: #2aa8e0;
  --gold: #e3a630;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --radius: clamp(10px, 1.2vw, 16px);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --section: clamp(96px, 14vw, 200px);
  --ease-out: cubic-bezier(0.16, 0.7, 0.1, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 116px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--frost);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.5rem, 5.6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--frost);
  color: var(--ink);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Text links: a hairline that thickens toward the hand */
.text-link {
  display: inline-block;
  padding-block: 10px;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  padding-bottom: 4px;
  transition: background-size 0.35s var(--ease-out), color 0.2s;
}
.text-link:hover { color: var(--gold); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(12, 19, 23, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin-inline: auto;
  padding: 14px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
/* logo files are 442x412: size by height so the seal stays a true circle */
.brand img { height: 81px; width: auto; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
}
.site-nav a {
  font-size: 0.95rem;
  text-decoration: none;
  padding: 12px 0;
  color: var(--frost-dim);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--frost); }

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: var(--frost);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .brand__name { display: none; }
  .brand img { height: 73px; width: auto; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 101px 0 auto;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease-out), visibility 0s 0.25s;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s, transform 0.25s var(--ease-out);
  }
  .site-nav a {
    font-family: var(--serif);
    font-size: 1.75rem;
    color: var(--frost);
    padding: 10px 0;
  }
}

/* ---------- Hero: the one orchestrated moment ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  /* full screen, but capped so embedded or very tall views don't over-zoom the photo */
  min-height: min(100svh, 62rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; }
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  /* frozen until it thaws: slightly softened and cooled under the frost layer */
  filter: blur(3px) brightness(0.9) saturate(0.6);
  transform: scale(1.04);
  transition: filter 4.5s cubic-bezier(0.45, 0, 0.55, 1), transform 5s var(--ease-out);
}
/* frost canvas drawn by main.js; sits over the photo, under the dark gradient */
.hero__frost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(12, 19, 23, 0.94) 0%, rgba(12, 19, 23, 0.55) 38%, rgba(12, 19, 23, 0.15) 70%, rgba(12, 19, 23, 0.45) 100%);
}
.is-ready .hero__img {
  filter: none;
  transform: scale(1);
}

.hero__content {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 140px var(--gutter) clamp(48px, 8vw, 96px);
}
.hero__title {
  font-weight: 500;
  font-size: clamp(3.1rem, 9.2vw, 8.75rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero__title .line > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.4s var(--ease-out);
}
/* headline rises in as the frost clears, landing with the end of the thaw */
.is-ready .hero__title .line > span { transform: none; }
.is-ready .hero__title .line:nth-child(1) > span { transition-delay: 2.8s; }
.is-ready .hero__title .line:nth-child(2) > span { transition-delay: 2.96s; }

.hero__sub,
.hero__links {
  opacity: 0;
  transition: opacity 1.2s ease 3.8s;
}
.is-ready .hero__sub,
.is-ready .hero__links { opacity: 1; }

.hero__sub {
  margin-top: clamp(24px, 3vw, 40px);
  max-width: 34ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--frost-dim);
}
.hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 20px;
}

/* ---------- Intro ---------- */

/* Sections alternate --ink-2 / --ink so each reads as its own band */
.intro {
  background: var(--ink-2);
  padding-block: clamp(72px, 10vw, 144px);
}
.intro__grid {
  display: grid;
  gap: 40px;
}
.intro__lead {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.1vw, 2.75rem);
  line-height: 1.28;
  max-width: 26ch;
  margin: 0;
}
.intro__body {
  max-width: 40ch;
  color: var(--frost-dim);
}
.intro__meta {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--frost);
}
@media (min-width: 900px) {
  .intro__grid {
    grid-template-columns: 7fr 4fr;
    align-items: end;
    gap: 80px;
  }
}

/* ---------- Branded ice ---------- */

.branded { padding-block: var(--section); }
.branded__grid {
  display: grid;
  gap: 20px;
}
.branded__text { margin-bottom: 28px; }
.branded__text h2 { max-width: 9ch; }
.branded__text p {
  margin-top: 28px;
  max-width: 40ch;
  color: var(--frost-dim);
}
.branded figure img { width: 100%; height: 100%; object-fit: cover; }
/* Phones: one column, so the video and photos stay large */
.branded__grid { grid-template-columns: minmax(0, 1fr); }
.branded__main { aspect-ratio: 3 / 2; }
.branded__feature, .branded__b { aspect-ratio: 1; }
.branded__film { margin-top: 12px; }
.branded__b { margin-top: 12px; }

/* The film: the stamp appearing as whiskey is poured */
.film {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ink-3);
}
.film__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Desktop: an aligned mosaic. Two small squares over a wide strip on the left,
   one large image on the right; every edge lines up on the same gutter. */
@media (min-width: 1000px) {
  .branded__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
  .branded__text {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 7fr 4fr;
    align-items: end;
    gap: 80px;
    margin: 0 0 clamp(40px, 5vw, 72px);
  }
  .branded__text h2 { max-width: none; }
  .branded__text p { margin-top: 0; }
  .branded__film { grid-column: 1; grid-row: 2; margin: 0; }
  .branded__b { grid-column: 2; grid-row: 2; margin: 0; }
  .branded__main { grid-column: 1 / 3; grid-row: 3; }
  .branded__feature {
    grid-column: 3 / 5;
    grid-row: 2 / 4;
    aspect-ratio: auto;
  }
  .branded__main img { object-position: 35% 50%; }
  .branded__feature img { position: absolute; inset: 0; }
}

/* ---------- In the glass ---------- */

.glass {
  background: var(--ink-2);
  padding-block: var(--section);
}
.glass__head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.glass__head p { max-width: 36ch; color: var(--frost-dim); }
/* Phones: one column, every photo the same full width */
.glass__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.glass__grid img { width: 100%; height: 100%; object-fit: cover; }
.glass__1 { aspect-ratio: 1; }
/* keep the glass and sprig, trim the empty floor below */
.glass__1 img { object-position: 50% 0%; }
.glass__4 { aspect-ratio: 3 / 2; }
.glass__5 { aspect-ratio: 4 / 3; }
.glass__2, .glass__3 { aspect-ratio: 4 / 5; }

@media (min-width: 900px) {
  .glass__head {
    grid-template-columns: 7fr 4fr;
    align-items: end;
    gap: 80px;
  }
  /* Mirror of the branded mosaic: large image left, small squares and a strip
     right, then a panoramic closer across the full width. */
  .glass__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
  .glass__1 { grid-column: 1 / 3; grid-row: 1 / 3; aspect-ratio: auto; }
  .glass__2 { grid-column: 3; grid-row: 1; aspect-ratio: 1; }
  .glass__3 { grid-column: 4; grid-row: 1; aspect-ratio: 1; }
  .glass__4 { grid-column: 3 / 5; grid-row: 2; aspect-ratio: 2 / 1; }
  .glass__5 { grid-column: 1 / -1; grid-row: 3; aspect-ratio: 21 / 9; }
  .glass__2 img { object-position: 50% 40%; }
  .glass__5 img { object-position: 50% 45%; }
  /* the large tiles fill the space the smaller tiles define, instead of
     stretching the rows to the photo's own height */
  .glass__1 img { position: absolute; inset: 0; }
}

/* ---------- Photo framing: rounded, with an "ice edge" ----------
   A hairline rim plus a faint highlight in the top-left corner, like light
   catching the edge of a clear cube. */

.branded figure,
.glass__grid figure,
.about figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
  background: var(--ink-3);
}
.film { border-radius: inherit; }
.branded figure::after,
.glass__grid figure::after,
.about figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(233, 238, 241, 0.12);
  background: linear-gradient(140deg, rgba(233, 238, 241, 0.16) 0%, rgba(233, 238, 241, 0) 30%);
}

@media (hover: hover) and (pointer: fine) {
  .branded figure img,
  .branded figure video,
  .glass__grid figure img,
  .about figure img {
    transition: transform 0.9s var(--ease-out);
  }
  .branded figure:hover img,
  .branded figure:hover video,
  .glass__grid figure:hover img,
  .about figure:hover img {
    transform: scale(1.035);
  }
}

/* ---------- About ---------- */

.about { padding-block: var(--section); }
.about__grid {
  display: grid;
  gap: 40px;
}
.about__text h2 { margin-bottom: 32px; max-width: 8ch; }
.about__text p { max-width: 42ch; color: var(--frost-dim); }
.about__text p:first-of-type {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  line-height: 1.4;
  color: var(--frost);
  max-width: 30ch;
}
.about figure img { width: 100%; height: 100%; object-fit: cover; }
/* Phones show the tray photo in its natural landscape shape */
.about__img-a { aspect-ratio: 3 / 2; }
.about__img-b { aspect-ratio: 3 / 2; }

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    align-items: start;
  }
  /* Same system as the other sections: heading and story across the top,
     then two photos of different widths sharing one aligned row. */
  .about__text {
    grid-column: 1 / -1;
    grid-row: 1;
    display: grid;
    grid-template-columns: 7fr 4fr;
    column-gap: 80px;
    align-items: start;
    margin-bottom: clamp(40px, 5vw, 72px);
  }
  .about__text h2 { grid-column: 1; grid-row: 1 / 3; margin: 0; }
  .about__text p { grid-column: 2; }
  .about__img-a { grid-column: 1 / 8; grid-row: 2; aspect-ratio: 3 / 2; }
  .about__img-b { grid-column: 8 / 13; grid-row: 2; aspect-ratio: auto; align-self: stretch; }
  .about__img-b img { position: absolute; inset: 0; object-position: 30% 50%; }
}

/* ---------- Social ---------- */

.social {
  padding-block: 0 var(--section);
}
.social__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line);
  margin-bottom: 36px;
}
.social__head h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.social__head .text-link { color: var(--frost-dim); }
.social__head .text-link:hover { color: var(--gold); }

.social__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 600px) {
  .social__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.social__grid a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: calc(var(--radius) * 0.75);
  background: var(--ink-3);
}
.social__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}
.social__grid a:hover img { opacity: 0.75; }
@media (min-width: 900px) {
  .social__grid { grid-template-columns: repeat(6, 1fr); gap: 12px; }
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  overflow: hidden;
  padding-block: clamp(120px, 18vw, 240px);
}
.contact__media { position: absolute; inset: 0; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; }
.contact__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(12, 19, 23, 0.94) 0%, rgba(12, 19, 23, 0.72) 42%, rgba(12, 19, 23, 0.2) 100%);
}
.contact__inner { position: relative; }
.contact h2 {
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 8ch;
}
.contact__intro {
  margin-top: 28px;
  max-width: 38ch;
  color: var(--frost-dim);
}
.contact__email {
  margin-top: clamp(32px, 4vw, 48px);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.75rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.contact__email a {
  text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 1px no-repeat;
  padding-bottom: 4px;
  transition: color 0.2s;
}
.contact__email a:hover { color: var(--gold); }

.contact__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px 48px;
  margin: clamp(40px, 5vw, 64px) 0 0;
  max-width: 760px;
}
.contact__details dt {
  font-size: 0.875rem;
  color: var(--frost-dim);
  margin-bottom: 6px;
}
.contact__details dd {
  margin: 0;
  font-size: 1.125rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.contact__details a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.contact__details a:hover { color: var(--gold); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 48px;
  font-size: 0.95rem;
  color: var(--frost-dim);
}
.site-footer__inner {
  display: grid;
  gap: 24px;
  align-items: center;
}
.site-footer__logo { height: 72px; width: auto; }
.site-footer__text p { margin: 0; }
.site-footer a { color: var(--frost); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--gold); }
@media (min-width: 760px) {
  .site-footer__inner { grid-template-columns: auto 1fr auto; gap: 32px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .hero__img { filter: none; transform: none; }
  .hero__title .line > span { transform: none; }
  .hero__sub, .hero__links { opacity: 1; }
}
