:root {
  --ink: #101513;
  --muted: #646b63;
  --paper: #fbfaf6;
  --paper-deep: #f1eee5;
  --green: #06261f;
  --green-2: #0a342a;
  --gold: #c9a24b;
  --gold-bright: #e0bd62;
  --burgundy: #43131d;
  --line: rgba(16, 21, 19, 0.14);
  --shadow: 0 24px 70px rgba(8, 25, 20, 0.22);
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

#services,
#expertise,
#contact {
  scroll-margin-top: 72px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

body.animations-ready .reveal,
body.animations-ready .reveal-item {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 720ms ease,
    transform 720ms cubic-bezier(0.2, 0.78, 0.24, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

body.animations-ready .reveal.is-visible,
body.animations-ready .reveal.is-visible .reveal-item,
body.animations-ready .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.animations-ready .reveal.is-visible .reveal-item:nth-child(2),
body.animations-ready .service-list .reveal-item:nth-child(2) {
  --reveal-delay: 90ms;
}

body.animations-ready .reveal.is-visible .reveal-item:nth-child(3),
body.animations-ready .service-list .reveal-item:nth-child(3) {
  --reveal-delay: 180ms;
}

body.animations-ready .reveal.is-visible .reveal-item:nth-child(4) {
  --reveal-delay: 270ms;
}

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

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--paper);
  color: var(--green);
  padding: 10px 14px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 22px max(20px, calc((100vw - var(--max)) / 2));
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(6, 38, 31, 0.96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: max-content;
}

.brand-mark {
  width: 2px;
  height: 60px;
  background: linear-gradient(var(--gold), transparent);
}

.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0;
}

.brand small {
  display: block;
  margin-top: 8px;
  color: var(--gold-bright);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 10px 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 46px;
  height: 42px;
  border: 1px solid rgba(224, 189, 98, 0.46);
  border-radius: 0;
  background: rgba(6, 38, 31, 0.42);
  color: #fff;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle span + span {
  margin-top: 6px;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header-action {
  justify-self: end;
  border: 1px solid rgba(224, 189, 98, 0.58);
  padding: 12px 18px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #06120f;
  color: #fff;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: image-set(
    url("assets/hero-cellar.webp") type("image/webp"),
    url("assets/hero-cellar.png") type("image/png")
  );
  background-position: center;
  background-size: cover;
  animation: heroDrift 18s ease-in-out infinite alternate;
  transform: scale(1.04);
  z-index: 0;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 11, 9, 0.94) 0%, rgba(4, 11, 9, 0.78) 30%, rgba(4, 11, 9, 0.24) 64%, rgba(4, 11, 9, 0.1) 100%),
    linear-gradient(180deg, rgba(5, 31, 25, 0.72) 0%, transparent 20%, rgba(3, 8, 7, 0.58) 100%);
  z-index: 1;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 34%;
  background: linear-gradient(180deg, rgba(3, 8, 7, 0), rgba(3, 8, 7, 0.96));
  content: "";
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 116px auto 62px;
  animation: heroIntro 900ms cubic-bezier(0.2, 0.78, 0.24, 1) 140ms both;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 4.9vw, 64px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-content > p {
  max-width: 540px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}

.button-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #261d0b;
  box-shadow: 0 14px 34px rgba(201, 162, 75, 0.26);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
}

.hero-location svg {
  width: 22px;
  color: var(--gold-bright);
}

.scroll-cue {
  position: absolute;
  right: max(20px, calc((100vw - var(--max)) / 2));
  bottom: clamp(26px, 5vw, 52px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: cueFloat 1500ms ease-in-out infinite;
  opacity: 1;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  visibility: visible;
}

.scroll-cue.is-dismissed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  visibility: hidden;
}

.scroll-cue svg {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(224, 189, 98, 0.54);
  border-radius: 999px;
  color: var(--gold-bright);
  padding: 7px;
  stroke-width: 2.1;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: #fff;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.services {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.55fr;
  gap: clamp(42px, 7vw, 98px);
  padding: clamp(72px, 8vw, 112px) 0;
}

.section-note {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.process-copy .section-note {
  margin-bottom: 28px;
}

h2,
h3,
p {
  text-wrap: pretty;
}

.section h2,
.contact-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: 0;
}

.section-intro > p:not(.section-note),
.process-copy > p {
  max-width: 410px;
  margin: 24px 0 0;
  color: var(--muted);
}

.section-intro .service-area {
  margin-top: 18px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.section-intro::after,
.process-copy::after,
.facility-card::after {
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 28px;
  background: var(--gold);
  content: "";
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}

.service-item {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.service-item svg {
  width: 58px;
  height: 58px;
  margin-bottom: 30px;
  color: var(--gold);
  stroke-width: 1.35;
}

.service-item h3 {
  max-width: 210px;
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.maker {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
  padding: 0 0 clamp(76px, 8vw, 116px);
}

.maker-image {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: var(--green);
  box-shadow: var(--shadow);
}

.maker-image::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 42%, rgba(6, 38, 31, 0.14)),
    linear-gradient(180deg, transparent 72%, rgba(6, 38, 31, 0.18));
  content: "";
  pointer-events: none;
}

.maker-image img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  object-position: center;
}

.maker-image picture,
.process-gallery picture {
  display: block;
  width: 100%;
  height: 100%;
}

.maker-copy {
  padding: clamp(26px, 4vw, 48px) 0;
}

.maker-copy h2 {
  max-width: 440px;
}

.maker-points {
  display: grid;
  gap: 22px;
  margin: 30px 0 0;
}

.maker-points div {
  border-left: 2px solid var(--gold);
  padding-left: 20px;
}

.maker-points dt {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.maker-points dd {
  margin: 0;
  color: var(--muted);
}

.process {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) 1.26fr;
  gap: clamp(32px, 5vw, 72px);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(70px, 8vw, 112px) max(20px, calc((100vw - var(--max)) / 2));
  background: var(--paper-deep);
}

.quality-list {
  display: grid;
  gap: 20px;
  margin: 38px 0 0;
}

.quality-list div {
  border-left: 2px solid var(--gold);
  padding-left: 20px;
}

.quality-list dt {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quality-list dd {
  margin: 0;
  color: var(--muted);
}

.process-gallery {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: repeat(2, minmax(190px, 1fr));
  gap: 10px;
  min-height: 500px;
  box-shadow: var(--shadow);
}

.process-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--green);
}

.process-gallery figure::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(6, 38, 31, 0.18));
  content: "";
  pointer-events: none;
}

.process-gallery .gallery-large {
  grid-row: 1 / span 2;
}

.process-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-gallery .gallery-large img {
  object-position: center;
}

.contact-block {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1fr);
  margin-top: clamp(58px, 7vw, 96px);
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow);
}

.contact-block .facility-card {
  min-height: clamp(340px, 32vw, 430px);
  padding: clamp(38px, 4.6vw, 58px) clamp(24px, 4vw, 56px);
  background:
    radial-gradient(circle at 20% 20%, rgba(224, 189, 98, 0.12), transparent 34%),
    linear-gradient(145deg, var(--green), #031510);
}

.facility-card h2 {
  color: #fff;
}

.facility-card address {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  font-style: normal;
}

.facility-card address a {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  color: rgba(255, 255, 255, 0.86);
}

.facility-card address svg {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  color: var(--gold-bright);
}

.map-panel {
  min-height: clamp(340px, 32vw, 430px);
  border-left: 1px solid rgba(224, 189, 98, 0.22);
  background: #041611;
}

.map-frame {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(210, 225, 218, 0.9)),
    #d8d4ca;
}

.map-frame::after {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 0;
  color: rgba(6, 38, 31, 0.72);
  content: "Map loading...";
  font-size: 12px;
  font-weight: 800;
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px max(20px, calc((100vw - var(--max)) / 2));
  background: #080d0b;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
  text-wrap: nowrap;
  white-space: nowrap;
}

.site-footer p:first-child {
  min-width: 310px;
}

.site-footer p:last-child {
  text-align: right;
}

.site-footer span {
  display: block;
  width: 44px;
  height: 2px;
  background: var(--gold);
}

@keyframes heroIntro {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(-8px, 0, 0);
  }

  to {
    transform: scale(1.09) translate3d(10px, -6px, 0);
  }
}

@keyframes cueFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(9px);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    display: grid;
    min-width: 190px;
    gap: 0;
    border: 1px solid rgba(224, 189, 98, 0.28);
    background: rgba(6, 38, 31, 0.98);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
    opacity: 0;
    padding: 8px;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-header.menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 12px 14px;
  }

  .nav-links a::after {
    display: none;
  }

  .menu-toggle {
    display: grid;
    align-content: center;
  }

  .services,
  .maker,
  .process {
    grid-template-columns: 1fr;
  }

  .contact-block {
    grid-template-columns: minmax(260px, 1fr) minmax(0, 1fr);
  }

  .service-list,
  .process {
    padding-right: 20px;
    padding-left: 20px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .maker-image,
  .maker-image img {
    min-height: 480px;
  }

  .contact-block .facility-card {
    padding-left: 24px;
  }

  .map-panel {
    min-height: clamp(340px, 42vw, 430px);
  }
}

@media (max-width: 700px) {
  .site-header {
    position: absolute;
    padding: 18px;
  }

  .site-header.is-scrolled {
    background: transparent;
    box-shadow: none;
    padding: 18px;
  }

  .nav-links {
    right: 18px;
    left: auto;
    width: min(220px, calc(100vw - 36px));
  }

  .brand-mark {
    height: 48px;
  }

  .brand strong {
    font-size: 24px;
  }

  .brand small {
    font-size: 13px;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(4, 11, 9, 0.95), rgba(4, 11, 9, 0.66)),
      linear-gradient(180deg, rgba(5, 31, 25, 0.72), transparent 22%, rgba(3, 8, 7, 0.72));
  }

  .hero-content {
    width: calc(100% - 36px);
    margin-top: 128px;
    margin-bottom: 104px;
  }

  .hero h1 {
    font-size: clamp(33px, 9.6vw, 46px);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .scroll-cue {
    right: auto;
    bottom: 24px;
    left: 18px;
  }

  .section {
    width: calc(100% - 36px);
  }

  .process,
  .contact-block {
    width: 100%;
  }

  .contact-block {
    grid-template-columns: 1fr;
  }

  .map-panel {
    border-top: 1px solid rgba(224, 189, 98, 0.22);
    border-left: 0;
  }

  .contact-block .facility-card {
    min-height: 0;
    padding: 34px 24px 40px;
  }

  .facility-card address {
    margin-top: 26px;
  }

  .services {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .maker {
    padding-bottom: 66px;
  }

  .maker-image,
  .maker-image img {
    min-height: 330px;
  }

  .service-list {
    gap: 32px;
  }

  .process-gallery {
    min-height: 430px;
  }

  .map-panel {
    min-height: 320px;
  }

  .process-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }

  .process-gallery .gallery-large {
    grid-row: auto;
  }

  .process-gallery figure {
    aspect-ratio: 4 / 3;
  }

  .map-frame {
    min-height: 300px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer p:last-child {
    text-align: left;
  }

  .site-footer p {
    text-wrap: pretty;
    white-space: normal;
  }

  .site-footer p:first-child {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  body.animations-ready .reveal,
  body.animations-ready .reveal-item {
    opacity: 1;
    transform: none;
  }
}
