/* Grecu — design tokens
   The hero is the room at night. From the evening section on, the page walks
   that night in order: mist, champagne, amaro, black. */
:root {
  --paper: #ffffff;
  --mist: #f5f5f7;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --champagne: #e8d9bf;
  --amaro: #3b1d14;
  --night: #000000;
  --brass: #c8a46b;
  --line: rgba(29, 29, 31, 0.14);
  --line-dark: rgba(245, 245, 247, 0.2);

  /* Named for every platform, not just Apple's: the tracking below is set
     tight enough to suit SF and loose enough not to collide in Arial. */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto,
    "Helvetica Neue", Helvetica, Arial, sans-serif;

  --step-hero: clamp(3.5rem, 13vw, 11rem);
  --step-display: clamp(2.25rem, 6vw, 4.5rem);
  --step-title: clamp(1.5rem, 3vw, 2.25rem);
  --step-lg: clamp(1.125rem, 1.6vw, 1.375rem);
  --step-body: 1.0625rem;
  --step-small: 0.875rem;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(5rem, 14vw, 11rem);
}

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

html {
  scroll-behavior: smooth;
  /* Keeps a focused or anchored element clear of the fixed bar (WCAG 2.4.11). */
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

/* Two-tone ring: the dark edge carries the contrast on light sections, the
   brass halo carries the brand. Flipped on the dark sections. */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--brass);
  border-radius: 4px;
}
.hero :focus-visible,
.felipe :focus-visible,
.enquire :focus-visible,
.footer :focus-visible,
.moment--table :focus-visible,
.moment--late :focus-visible,
.nav.is-dark :focus-visible { outline-color: var(--mist); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }
#main:focus { outline: none; }

.wrap {
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 54rem; }

/* Type */
.display {
  font-size: var(--step-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.body-lg {
  font-size: var(--step-lg);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  max-width: 38em;
}
.body-lg + .body-lg { margin-top: 1.25em; }
.display + .body-lg { margin-top: 2rem; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.75rem;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font: inherit; font-size: 1.0625rem; font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn:hover { background: #000; transform: scale(1.02); }
.btn:active { transform: scale(0.98); }
.btn--small { min-height: 2.25rem; padding: 0 1rem; font-size: var(--step-small); }
.btn--invert { background: var(--mist); color: var(--ink); }
.btn--invert:hover { background: #fff; }

.link {
  font-size: 1.0625rem; font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}
.link:hover { text-decoration-color: currentColor; }
.link--light { color: var(--mist); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
/* Over the dark half of the evening, the bar turns with it. */
.nav.is-dark {
  background: rgba(0, 0, 0, 0.6);
  color: var(--mist);
}
.nav.is-dark.is-scrolled { border-bottom-color: var(--line-dark); }
.nav.is-dark .nav__links a { color: rgba(245, 245, 247, 0.66); }
.nav.is-dark .nav__links a:hover { color: var(--mist); }
.nav.is-dark .btn { background: var(--mist); color: var(--ink); }
.nav.is-dark .btn:hover { background: #fff; }

.nav__inner {
  max-width: 78rem; margin-inline: auto;
  padding: 0.75rem var(--gutter);
  display: flex; align-items: center; gap: 2rem;
}
.nav__mark {
  font-size: 1.25rem; font-weight: 600; letter-spacing: -0.03em;
  text-decoration: none; margin-right: auto;
}
.nav__links { display: flex; gap: 1.75rem; }
.nav__links a {
  font-size: var(--step-small); text-decoration: none; color: var(--ink-soft);
  padding-block: 0.25rem;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--ink); }
/* Below 760px keep the two links worth jumping to; the CTA stays at every width. */
@media (max-width: 760px) {
  .nav__inner { gap: 1rem; }
  .nav__links { gap: 1rem; }
  .nav__links a:nth-child(3), .nav__links a:nth-child(4) { display: none; }
}
@media (max-width: 420px) { .nav__links { display: none; } }

/* Hero — the room, already in motion */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-block: 8rem clamp(3rem, 8vw, 6rem);
  background: var(--night);
  color: var(--mist);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
/* Shown until a film is in place, and behind one that is still loading. */
.hero__media::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(42% 52% at 24% 32%, rgba(200, 164, 107, 0.5), transparent 70%),
    radial-gradient(38% 46% at 76% 64%, rgba(59, 29, 20, 0.85), transparent 72%),
    radial-gradient(60% 70% at 50% 50%, #141210, #000 78%);
}
/* The light is still, deliberately: nothing on this page moves on its own, so
   there is no motion anyone needs a control to stop. If a hero film is added,
   it brings auto-playing motion back and will need a pause control with it. */
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Dark enough that the headline holds over any footage. */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(190deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.84) 100%);
}
/* Film grain: stops the gradient banding and gives the light the texture of a
   photograph rather than a CSS gradient. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'>\
<filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/>\
<feColorMatrix type='saturate' values='0'/></filter>\
<rect width='160' height='160' filter='url(%23n)' opacity='0.42'/></svg>");
  background-size: 160px 160px;
}
.hero__content { position: relative; z-index: 1; }
.hero__title {
  font-size: var(--step-hero);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.hero__title .line { display: block; }
.hero__lede {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  font-size: var(--step-title);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: rgba(245, 245, 247, 0.82);
  max-width: 24em;
  text-wrap: pretty;
}
.hero__where {
  margin-top: 1.25rem;
  font-size: var(--step-lg);
  letter-spacing: -0.01em;
  color: var(--brass);
}
.hero__actions {
  margin-top: 2.5rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem;
}
.hero .btn { background: var(--mist); color: var(--ink); }
.hero .btn:hover { background: #fff; }
.hero .link { color: var(--mist); }

/* The one orchestrated moment: the headline arrives line by line, and is done
   inside a third of a second. */
@media (prefers-reduced-motion: no-preference) {
  .hero__title .line,
  .hero__lede,
  .hero__where,
  .hero__actions {
    opacity: 0;
    transform: translateY(0.3em);
    animation: arrive 0.5s cubic-bezier(0.2, 0.7, 0.1, 1) forwards;
  }
  .hero__title .line:nth-child(2) { animation-delay: 0.06s; }
  .hero__title .line:nth-child(3) { animation-delay: 0.12s; }
  .hero__lede { animation-delay: 0.2s; }
  .hero__where { animation-delay: 0.24s; }
  .hero__actions { animation-delay: 0.28s; }
}
@keyframes arrive { to { opacity: 1; transform: none; } }

/* Statement */
.statement { background: var(--mist); padding-block: var(--section); }

/* Services */
.services { padding-block: var(--section); }
.services__list { margin-top: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 1rem 3rem;
  padding-block: clamp(1.75rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.service__name {
  font-size: var(--step-title);
  letter-spacing: -0.03em; line-height: 1.1; font-weight: 600;
}
.service__text { font-size: var(--step-lg); line-height: 1.45; color: var(--ink-soft); max-width: 34em; }
.services__cta { margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; } }

/* Felipe */
.felipe {
  background: var(--night); color: var(--mist);
  padding-block: var(--section);
}
.felipe__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2.5rem 3rem;
}
.felipe__role { font-size: var(--step-lg); color: var(--brass); margin-bottom: 1rem; }
.felipe__name {
  font-size: var(--step-display);
  line-height: 1; letter-spacing: -0.035em; font-weight: 600;
}
.felipe .body-lg { color: rgba(245, 245, 247, 0.72); }
.felipe__copy > p:last-child { margin-top: 2rem; }
@media (max-width: 760px) { .felipe__grid { grid-template-columns: 1fr; } }

/* The evening */
.evening__intro { background: var(--mist); padding-block: var(--section) clamp(2.5rem, 5vw, 4rem); }
/* Each moment can carry a photograph; the scrim keeps the words first. */
.moment { position: relative; isolation: isolate; padding-block: clamp(2.5rem, 6vw, 5rem); }
.moment::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--shot);
  background-size: cover; background-position: center;
}
.moment::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--scrim);
}
.moment__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 1.5rem 3rem;
  align-items: end;
}
.moment__time {
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.moment__name {
  font-size: var(--step-title);
  letter-spacing: -0.03em; line-height: 1.1; font-weight: 600;
}
.moment__text { margin-top: 0.75rem; font-size: var(--step-lg); line-height: 1.45; max-width: 30em; opacity: 0.84; }
/* Photographs live here, not in inline style attributes: the site's own
   Content-Security-Policy blocks inline styles, so an inline --shot would
   silently do nothing. Uncomment each line as the file lands in /media. */
.moment--arrive {
  background: var(--mist); color: var(--ink); --scrim: rgba(245, 245, 247, 0.86);
  /* --shot: url("media/arrival.jpg"); */
}
.moment--pour {
  background: var(--champagne); color: var(--ink); --scrim: rgba(232, 217, 191, 0.84);
  /* --shot: url("media/first-pour.jpg"); */
}
.moment--table {
  background: var(--amaro); color: var(--mist); --scrim: rgba(59, 29, 20, 0.82);
  /* --shot: url("media/the-table.jpg"); */
}
.moment--late {
  background: var(--night); color: var(--mist); --scrim: rgba(0, 0, 0, 0.78);
  /* --shot: url("media/last-hour.jpg"); */
}
@media (max-width: 760px) { .moment__grid { grid-template-columns: 1fr; } }

/* Process */
.process { padding-block: var(--section); }
.process .display { max-width: 14em; }
.steps {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
}
.step { border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.step__num {
  display: block;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1; letter-spacing: -0.045em; font-weight: 600;
}
.step__name { margin-top: 1.5rem; font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.2; font-weight: 600; }
.step__text { margin-top: 0.75rem; color: var(--ink-soft); max-width: 26em; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 2.5rem; } }

/* What you can count on */
.promise { background: var(--mist); padding-block: var(--section); }
/* The basics: price, capacity and lead time, once they are confirmed.
   The markup is commented out in index.html until then. */
.basics {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 3rem;
}
.basics__item { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.basics dt { font-size: var(--step-small); color: var(--ink-soft); }
.basics dd {
  margin: 0.4rem 0 0;
  font-size: var(--step-title);
  line-height: 1.1; letter-spacing: -0.03em; font-weight: 600;
}
@media (max-width: 760px) { .basics { grid-template-columns: 1fr; gap: 1.5rem; } }

.basics + .promise__list { margin-top: clamp(3rem, 7vw, 5rem); }
.promise__list { margin-top: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.promise__item {
  padding-block: clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  font-size: var(--step-title);
  line-height: 1.25; letter-spacing: -0.02em;
  max-width: 24em;
}

/* Enquiry */
.enquire { background: var(--night); color: var(--mist); padding-block: var(--section); }
.enquire .body-lg { color: rgba(245, 245, 247, 0.72); }
.enquire__direct { margin-top: 2rem; font-size: var(--step-lg); line-height: 1.6; color: rgba(245, 245, 247, 0.72); }
.enquire__direct .link { font-size: inherit; white-space: nowrap; }
.enquire__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3rem;
}
@media (max-width: 860px) { .enquire__grid { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { grid-column: 1 / -1; display: grid; gap: 0.5rem; }
.field--half { grid-column: span 1; }
@media (max-width: 520px) { .field--half { grid-column: 1 / -1; } }
.field label { font-size: var(--step-small); color: rgba(245, 245, 247, 0.82); }
.field__opt { color: #9a9aa0; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; color: var(--mist);
  background: #2c2c2e;
  border: 1px solid #8e8e93;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input::placeholder, .field textarea::placeholder { color: #9a9aa0; }
.field [aria-invalid="true"] { border-color: #ff8a84; border-width: 2px; }
.field__error:empty { display: none; }
.field__error { font-size: var(--step-small); color: #ff8a84; }
.form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 0.5rem; }
.form__note, .form__status { grid-column: 1 / -1; font-size: var(--step-small); }
.form__note { color: #9a9aa0; }
.form__status:empty { display: none; }
.form__status {
  color: var(--mist);
  border-left: 2px solid var(--brass);
  padding: 0.25rem 0 0.25rem 0.75rem;
  line-height: 1.5;
}

/* Privacy and other plain pages */
.legal { padding-block: clamp(7rem, 14vw, 11rem) var(--section); }
.legal .display + .body-lg { margin-top: 1.5rem; }
.legal h2 {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-size: var(--step-title);
  letter-spacing: -0.03em; line-height: 1.15; font-weight: 600;
}
.legal p { margin-top: 1rem; max-width: 36em; color: var(--ink-soft); }
.legal .body-lg { color: var(--ink-soft); }
.legal a { color: var(--ink); text-underline-offset: 0.25em; }
.legal__back { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* Footer */
.footer {
  background: var(--night); color: #9a9aa0;
  border-top: 1px solid var(--line-dark);
  padding-block: 2.5rem;
  font-size: var(--step-small);
}
.footer__inner { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; align-items: baseline; }
.footer__mark { color: var(--mist); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.03em; margin-right: auto; }
.footer__line a { text-decoration-color: rgba(245, 245, 247, 0.45); text-underline-offset: 0.25em; }
.footer__line a:hover { color: var(--mist); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}
