:root {
  --header-height: 86px;
  --bg: #f7f0e7;
  --bg-2: #efe3d4;
  --panel: #fffaf2;
  --panel-2: #efe4d6;
  --ink: #17120f;
  --muted: rgba(23, 18, 15, 0.68);
  --soft: rgba(23, 18, 15, 0.08);
  --line: rgba(23, 18, 15, 0.14);
  --rose: #ff5f8f;
  --gold: #d79a33;
  --green: #46785c;
  --violet: #7056d8;
  --shadow: 0 24px 70px rgba(78, 51, 29, 0.16);
  --header-bg: rgba(255, 250, 242, 0.82);
  --nav-hover: rgba(23, 18, 15, 0.06);
  --card-sheen: linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.18));
  --hero-veil: linear-gradient(90deg, rgba(8, 8, 11, 0.86) 0%, rgba(8, 8, 11, 0.62) 44%, rgba(8, 8, 11, 0.24) 100%),
    linear-gradient(0deg, rgba(247, 240, 231, 0.98) 0%, transparent 34%);
  --hero-text: #fff8ec;
  --hero-muted: rgba(255, 248, 236, 0.8);
  --ticker-color: rgba(255, 248, 236, 0.13);
  --ghost-bg: rgba(255, 255, 255, 0.14);
  --ghost-hover: rgba(255, 255, 255, 0.2);
  --grain-line: rgba(23, 18, 15, 0.05);
  --grain-line-2: rgba(23, 18, 15, 0.04);
  --logo-filter: none;
  --footer-bg: rgba(255, 250, 242, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 22px);
}

body {
  margin: 0;
  padding-top: var(--header-height);
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 95, 143, 0.16), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(120, 197, 155, 0.12), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 42%, var(--bg) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::selection {
  color: #150c10;
  background: var(--gold);
}

a {
  color: inherit;
}

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

.grain {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(var(--grain-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grain-line-2) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 78%);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 112px;
  max-height: 56px;
  object-fit: contain;
  filter: var(--logo-filter);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 15px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

nav a:hover {
  color: var(--ink);
  border-color: var(--line);
  background: var(--nav-hover);
  transform: translateY(-2px);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: var(--soft);
}

.language-switch__button {
  min-width: 38px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.language-switch__button:hover,
.language-switch__button.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
}

main,
footer {
  position: relative;
  z-index: 1;
}

.panel {
  position: relative;
}

.hero {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(84px, 14vw, 180px) clamp(18px, 6vw, 96px) clamp(170px, 16vw, 220px);
  isolation: isolate;
  color: var(--hero-text);
}

.hero__image,
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__image {
  background: url("../images/ilunabar-hero-bar-bilbao.jpg") center / cover;
  transform: scale(1.08);
  will-change: transform;
}

.hero__veil {
  z-index: -1;
  background: var(--hero-veil);
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 950px;
}

.eyebrow,
.kicker,
.tag {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow,
h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 1040px;
  margin-bottom: 24px;
  font-size: clamp(3.35rem, 11vw, 9.8rem);
  line-height: 0.82;
  animation: titleFloat 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.25rem, 6vw, 6.2rem);
  line-height: 0.9;
}

h3 {
  margin: 0 0 12px;
  font-size: clamp(1.24rem, 2.2vw, 2rem);
  line-height: 1.06;
}

p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.hero p {
  max-width: 680px;
  color: var(--hero-muted);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.hero__actions,
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button--primary {
  color: #130f0d;
  background: linear-gradient(135deg, var(--gold), #ffdf8e);
  box-shadow: 0 18px 42px rgba(231, 183, 95, 0.24);
}

.button--ghost {
  color: currentColor;
  border-color: var(--line);
  background: var(--ghost-bg);
}

.button--ghost:hover {
  background: var(--ghost-hover);
}

.hero__ticker {
  position: absolute;
  right: 0;
  bottom: clamp(34px, 5vw, 64px);
  left: 0;
  z-index: 1;
  display: flex;
  gap: 32px;
  overflow: hidden;
  color: var(--ticker-color);
  font-size: clamp(1.85rem, 5.2vw, 4.8rem);
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.hero__ticker span {
  min-width: max-content;
  animation: ticker 24s linear infinite;
}

.section {
  padding: clamp(78px, 11vw, 150px) clamp(18px, 6vw, 96px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 110px);
  border-top: 1px solid var(--line);
}

.kicker {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.intro__copy {
  max-width: 1050px;
}

.intro__copy p {
  max-width: 780px;
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.6fr) minmax(0, 0.9fr);
  gap: 18px;
  padding: 0 clamp(18px, 6vw, 96px) clamp(78px, 11vw, 150px);
}

.experience-card,
.bento-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    var(--card-sheen),
    var(--panel);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 280ms ease, border-color 280ms ease, background 280ms ease;
}

.experience-card:hover,
.bento-card:hover {
  border-color: rgba(231, 183, 95, 0.46);
}

.experience-card {
  min-height: 330px;
  padding: clamp(24px, 4vw, 42px);
}

.experience-card span {
  display: inline-flex;
  margin-bottom: 46px;
  color: var(--rose);
  font-weight: 900;
}

.experience-card--photo {
  min-height: 420px;
  padding: 0;
}

.experience-card--photo img,
.experience-card--photo video,
.bento-card img,
.contact__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease, filter 600ms ease;
}

.experience-card--photo:hover img,
.experience-card--photo:hover video,
.bento-card:hover img,
.contact__visual:hover img {
  filter: saturate(1.18) contrast(1.06);
  transform: scale(1.07);
}

.section-head {
  max-width: 1120px;
  margin-bottom: 34px;
}

.section-head p:last-child {
  max-width: 760px;
}

.agenda__note {
  margin-top: -8px;
  color: var(--muted);
  font-weight: 600;
}

.agenda__note a {
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.bento {
  display: grid;
  gap: 18px;
}

.menu-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.menu-bento {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(220px, auto);
}

.agenda-bento {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bento-card {
  min-height: 230px;
  padding: clamp(22px, 3vw, 34px);
}

.bento-card--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(160px, 0.7fr);
  gap: 22px;
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(255, 95, 143, 0.22), rgba(231, 183, 95, 0.07)),
    var(--panel-2);
}

.bento-card--wide img,
.bento-card--image img {
  min-height: 100%;
  border-radius: 22px;
}

.bento-card--image {
  grid-row: span 2;
  padding: 0;
}

.bento-card--hero {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 520px;
  display: grid;
  align-items: end;
  padding: 0;
  color: var(--hero-text);
}

.bento-card--hero img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bento-card--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(8, 8, 11, 0.9), rgba(8, 8, 11, 0.1));
}

.bento-card--hero div {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 4vw, 42px);
}

.bento-card--hero p {
  color: var(--hero-muted);
}

.tag {
  display: inline-flex;
  margin-bottom: 18px;
  border: 1px solid rgba(231, 183, 95, 0.32);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(231, 183, 95, 0.08);
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
}

.contact__visual {
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.contact__copy {
  max-width: 760px;
}

address {
  display: grid;
  gap: 8px;
  margin: 28px 0 0;
  color: var(--ink);
  font-style: normal;
  font-size: 1.12rem;
  line-height: 1.55;
}

address a {
  color: var(--gold);
  font-weight: 900;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(18px, 6vw, 96px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--footer-bg);
}

footer p {
  margin: 0;
  color: inherit;
  font-size: 0.92rem;
}

footer a {
  color: var(--ink);
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.magnetic,
.tilt-card {
  will-change: transform;
}

@keyframes titleFloat {
  from {
    opacity: 0;
    transform: translateY(38px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - 32px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1040px) {
  .hero {
    padding-bottom: clamp(150px, 20vw, 190px);
  }

  .hero__ticker {
    bottom: 42px;
    font-size: clamp(1.75rem, 6.8vw, 4rem);
  }

  .menu-bento,
  .agenda-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .experience-grid,
  .intro,
  .contact {
    grid-template-columns: 1fr;
  }

  .experience-card--photo,
  .contact__visual {
    min-height: 420px;
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: calc(96svh - var(--header-height));
    padding-bottom: 152px;
  }

  .hero p {
    max-width: 620px;
    font-size: 1.04rem;
    line-height: 1.62;
  }

  .hero__actions {
    margin-top: 24px;
  }

  .hero__ticker {
    bottom: 40px;
    color: rgba(255, 248, 236, 0.1);
    font-size: clamp(1.8rem, 7vw, 3.8rem);
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 116px;
  }

  .site-header {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
    gap: 10px 14px;
    padding: 10px 14px 12px;
  }

  .brand img {
    width: 76px;
    max-height: 48px;
  }

  .header-actions {
    display: contents;
    min-width: 0;
  }

  nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    overflow-x: auto;
    justify-content: space-between;
    gap: 4px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--soft);
    -webkit-overflow-scrolling: touch;
  }

  nav a {
    flex: 1 0 auto;
    text-align: center;
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  .language-switch {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    flex: 0 0 auto;
  }

  .language-switch__button {
    min-width: 34px;
    min-height: 32px;
    font-size: 0.74rem;
  }

  .hero {
    min-height: calc(92svh - var(--header-height));
    padding-top: 60px;
    padding-bottom: 136px;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4.8rem);
    line-height: 0.88;
  }

  h2 {
    font-size: clamp(2.1rem, 12vw, 4rem);
  }

  .hero__ticker {
    bottom: 34px;
    font-size: clamp(1.55rem, 8vw, 3rem);
  }

  .section {
    padding: 72px 16px;
  }

  .experience-grid {
    padding: 0 16px 72px;
  }

  .menu-bento,
  .agenda-bento {
    grid-template-columns: 1fr;
  }

  .bento-card--wide,
  .bento-card--hero {
    grid-column: auto;
  }

  .bento-card--wide {
    grid-template-columns: 1fr;
  }

  .bento-card--wide img {
    aspect-ratio: 16 / 10;
  }

  .bento-card--image,
  .bento-card--hero {
    min-height: 360px;
    grid-row: auto;
  }

  .hero__actions,
  .contact__actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  footer {
    display: block;
  }

  footer a {
    display: inline-flex;
    margin-top: 14px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: calc(100svh - var(--header-height));
    padding: 44px 16px 126px;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.56;
  }

  .hero__actions {
    gap: 10px;
    margin-top: 20px;
  }

  .button {
    min-height: 48px;
    padding: 13px 18px;
  }

  .hero__ticker {
    bottom: 34px;
    font-size: clamp(1.25rem, 8vw, 2.35rem);
  }
}

@media (max-width: 420px) {
  :root {
    --header-height: 108px;
  }

  .brand img {
    width: 68px;
  }

  nav a {
    padding: 8px 7px;
    font-size: 0.74rem;
  }

  .header-actions {
    gap: 6px;
  }

  .hero {
    padding-top: 38px;
    padding-bottom: 112px;
  }

  h1 {
    font-size: clamp(2.34rem, 13.6vw, 3.55rem);
  }

  .hero p {
    font-size: 0.96rem;
  }

  .hero__ticker {
    bottom: 30px;
    font-size: 1.18rem;
  }
}

@media (max-width: 360px) {
  nav a {
    padding: 8px 7px;
    font-size: 0.72rem;
  }

  .hero {
    padding-right: 14px;
    padding-left: 14px;
    padding-bottom: 104px;
  }

  h1 {
    font-size: 2.16rem;
  }

  .hero__ticker {
    bottom: 28px;
    font-size: 1rem;
  }
}
