/* ==========================================================================
   Áneme — Boutique Hotel, Kos
   Built to the brand book. The rules that matter, in one place:

   · Palette is three colours. Rust Terracotta, Ivory Sand, Aegean Sky.
     No pure black (#000), no pure white (#fff), no gradients built from
     brand colours, never more than three of them in one composition.
   · Rust is an accent. Its value is in its scarcity.
   · Type is Cormorant Garamond Light for display, Manrope Light for body.
     Nothing is ever bold — emphasis comes from size and spacing.
   · Line-height sits between 1.7 and 1.9 so the text can breathe.
   · Labels are Manrope 400, uppercase, tracked 0.2–0.28em.
   ========================================================================== */

@font-face {
  /* Lifted from the source logo file so the lockup subtitle stays exact. */
  font-family: 'Aneme Mark';
  src: url('../fonts/aneme-mark.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}

:root {
  /* ---- the palette, and nothing beside it ---- */
  --rust:   #7c361d;
  --sand:   #dad0ba;
  --aegean: #788991;

  /* Ivory as drawn inside the brand files — the logo's own light value. */
  --ivory:  #e5decf;

  /* A warm near-black for body copy. Pure black is forbidden; this is the
     reading colour the brand book's own documents are set in. */
  --ink:    #33302b;
  /* measured: .66 gave 3.7:1 on sand, under the 4.5 needed at these sizes */
  --ink-soft: rgba(51, 48, 43, .8);

  --rule:   rgba(124, 54, 29, .22);
  --rule-light: rgba(229, 222, 207, .28);

  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gut:  clamp(1.5rem, 5vw, 4.5rem);
  --wide: 1440px;
  --text: 720px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* -------------------------------------------------------------- typography */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: .005em;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); }
h3 { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2.1rem); }
h4 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); }
p  { margin: 0 0 1.35em; max-width: var(--text); }
p:last-child { margin-bottom: 0; }

.label {
  font-family: var(--body);
  font-weight: 400;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .26em;
  line-height: 1.6;
  color: var(--rust);
  display: block;
}
.label--quiet { color: var(--ink-soft); }
.label--light { color: var(--ivory); opacity: .82; }

.lead {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.1rem + 1.15vw, 2rem);
  line-height: 1.5;
  color: var(--rust);
  max-width: 22ch;
}
.prose { max-width: var(--text); }
.prose p + p { margin-top: 0; }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ------------------------------------------------------------------ layout */
.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 980px; }
section { padding-block: clamp(4rem, 9vw, 8.5rem); }
.section--tight { padding-block: clamp(2.75rem, 6vw, 5rem); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--flip > :first-child { order: 2; }
}

/* --------------------------------------------------------------- the logo */
/* The mark is never placed on a photograph or texture without a solid ground,
   and it always keeps clear space equal to the height of the Á. */
.logo { display: inline-flex; flex-direction: column; align-items: center; gap: .58em; text-decoration: none; }
.logo svg { display: block; width: 100%; height: auto; }
.logo__mark { width: var(--logo-w, 150px); color: var(--rust); }
.logo__sub {
  font-family: 'Aneme Mark', var(--body);
  font-weight: 300;
  font-size: calc(var(--logo-w, 150px) * .0655);
  letter-spacing: .26em;
  text-indent: .26em;
  line-height: 1;
  color: var(--rust);
  white-space: nowrap;
}
.logo--light .logo__mark, .logo--light .logo__sub { color: var(--ivory); }

/* --------------------------------------------------------------- site head */
.head {
  position: sticky; top: 0; z-index: 60;
  background: var(--sand);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.head.is-stuck { border-bottom-color: var(--rule); }
.head__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 1.05rem;
}
.head .logo { --logo-w: 132px; }
@media (min-width: 900px) { .head .logo { --logo-w: 148px; } }

.nav { display: none; }
@media (min-width: 1000px) {
  .nav { display: flex; align-items: center; gap: clamp(1.4rem, 2.4vw, 2.6rem); }
}
.nav a {
  font-size: .78rem; font-weight: 400; text-transform: uppercase;
  letter-spacing: .22em; text-decoration: none; color: var(--ink);
  padding-block: .4rem; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--rust); transition: right .45s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }

/* ------------------------------------------------------------------ button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  font-size: .75rem; font-weight: 400; text-transform: uppercase;
  letter-spacing: .24em; text-indent: .24em;
  text-decoration: none; cursor: pointer;
  padding: 1.05em 1.9em; border: 1px solid var(--rust); background: transparent;
  color: var(--rust); transition: background .4s var(--ease), color .4s var(--ease);
}
.btn:hover { background: var(--rust); color: var(--ivory); }
.btn--solid { background: var(--rust); color: var(--ivory); }
.btn--solid:hover { background: transparent; color: var(--rust); }
.btn--light { border-color: var(--ivory); color: var(--ivory); }
.btn--light:hover { background: var(--ivory); color: var(--rust); }
.btn--sm { padding: .85em 1.5em; font-size: .75rem; letter-spacing: .2em; text-indent: .2em; }

/* --------------------------------------------------------------- menu (sm) */
.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0 8px; background: none; border: 0; cursor: pointer;
}
@media (min-width: 1000px) { .burger { display: none; } }
.burger span { display: block; height: 1px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 70; background: var(--rust);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gut);
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  font-family: var(--display); font-size: clamp(1.9rem, 8vw, 3rem); font-weight: 300;
  color: var(--ivory); text-decoration: none; padding-block: .28em;
  border-bottom: 1px solid var(--rule-light);
}
.drawer nav a:last-child { border-bottom: 0; }
.drawer .btn { align-self: flex-start; }
.drawer__close { position: absolute; top: 1.2rem; right: var(--gut); }
.drawer__close span { background: var(--ivory); }
.drawer__close span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.drawer__close span:nth-child(2) { opacity: 0; }
.drawer__close span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* -------------------------------------------------------------------- hero */
/* The ground is the building's own stone, carrying a Rust Terracotta overlay
   with the lockup in Ivory over it. The brand book forbids the logo on a
   photograph, texture or pattern *without* an overlay — with one, it is
   allowed, and the "no text on photographs" rule is about pictures of the
   rooms, which this is not. The home page takes the full height; every other
   page runs the same idea shorter, so only the home page opens the door. */
.hero, .page-hero {
  position: relative; padding-block: 0; overflow: hidden;
  display: grid; place-items: center;
  background: var(--rust);
}
.hero      { min-height: clamp(540px, 90vh, 1000px); }
.page-hero { min-height: clamp(300px, 46vh, 520px); }

.hero > picture, .page-hero > picture,
.hero > picture img, .page-hero > picture img,
.hero__slides, .hero__slides picture, .hero__slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* --- the hero holds several photographs and crossfades between them ------- */
.hero__slides picture {
  opacity: 0;
  transition: opacity 1.7s cubic-bezier(.4, 0, .2, 1);
}
.hero__slides picture.is-on { opacity: 1; }
/* without JavaScript only the first is ever shown, and it is shown at once */
.hero__slides picture:first-child { opacity: 1; }
.js .hero__slides picture:first-child { opacity: 0; }
.js .hero__slides picture:first-child.is-on { opacity: 1; }

.hero > picture img, .page-hero > picture img, .hero__slides img {
  /* The wash mutes the photograph, so saturation is pushed back above 1 to
     return the colour it takes away — that costs almost nothing in contrast,
     unlike brightness. Measured across all five frames: the worst case sits at
     3.34:1 against the Ivory type, and every element over the picture is large
     type or a graphic, where the bar is 3:1. */
  filter: saturate(1.2) brightness(.76) contrast(1.05);
}
/* a flat wash, not a gradient — the brand book rules gradients out */
.hero__veil { position: absolute; inset: 0; background: rgba(124, 54, 29, .6); }

.hero__inner {
  position: relative; z-index: 2; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(1.1rem, 2.2vw, 1.9rem);
  padding: clamp(3rem, 7vw, 5rem) var(--gut);
}
.hero__inner .logo { --logo-w: clamp(215px, 27vw, 375px); }
/* Over a photograph the eyebrow is sized past 18.66px so it counts as large
   text: at that size 3:1 is the bar, and the wash clears it with room to
   spare. Small type never sits on the picture — it lives on solid ground. */
.hero__inner .label { font-size: 1.2rem; letter-spacing: .3em; opacity: 1; }
/* The call to action sits on a photograph, so it is sized past 18.66px to
   count as large text — at that size 3:1 is the bar and every frame in the
   rotation clears it. At 12px it would have needed 4.5:1, which no photograph
   under this wash reaches. */
.hero__inner .btn, .hero__inner .is-off { font-size: 1.2rem; padding: .8em 1.6em; }
.page-hero .hero__inner { gap: clamp(.9rem, 1.8vw, 1.3rem); }
.page-hero h1 { color: var(--ivory); margin: 0; }

.hero__tag {
  font-family: var(--display); font-size: clamp(1.15rem, .95rem + .9vw, 1.7rem);
  color: var(--ivory); line-height: 1.4; margin: 0; max-width: 30ch;
}
.factline {
  background: var(--sand);
  padding-block: clamp(1.4rem, 2.6vw, 2.1rem);
  border-bottom: 1px solid var(--rule);
}
.hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; }
.factline .hero__meta span::after { background: var(--rust); }
.hero__inner .label--light { opacity: 1; }
.hero__meta span { position: relative; }
/* the separator trails its own item, so a wrapped line never opens with a
   stray dot */
.hero__meta span:not(:last-child)::after {
  content: ""; position: absolute; right: -.85rem; top: 50%;
  width: 3px; height: 3px; border-radius: 50%; background: var(--rust); opacity: .5;
}

/* ------------------------------------------------------------------- cards */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.75rem); grid-template-columns: 1fr; }
@media (min-width: 700px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }

.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card__img { overflow: hidden; background: var(--rust); }
.card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__img img { transform: scale(1.035); }
.card__body { padding-top: 1.35rem; display: flex; flex-direction: column; gap: .55rem; }
.card__title { font-family: var(--display); font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem); font-weight: 300; }
/* caption-scale text takes Manrope 400, the weight the brand book gives
   labels and subtitles — 300 at this size reads as grey, not as light */
.card__meta { font-size: .82rem; font-weight: 400; color: var(--ink-soft); }
.card__more {
  margin-top: .35rem; font-size: .75rem; font-weight: 400; text-transform: uppercase;
  letter-spacing: .24em; color: var(--rust);
}

/* ---------------------------------------------------------------- pillars */
.pillar { display: flex; flex-direction: column; gap: 1rem; }
.pillar__icon {
  width: 76px; height: 76px; display: grid; place-items: center;
  background: var(--rust); color: var(--ivory);
  /* the mark's organic circle — deliberately not a perfect one */
  border-radius: 47% 53% 52% 48% / 51% 47% 53% 49%;
}
.pillar__icon svg { width: 44%; height: auto; }
.pillar__icon--sky { background: var(--aegean); }
.pillar h3 { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); }
.pillar p { font-size: .95rem; }

/* ------------------------------------------------------------------ panels */
.panel--rust { background: var(--rust); color: var(--ivory); }
.panel--rust h1, .panel--rust h2, .panel--rust h3, .panel--rust .lead { color: var(--ivory); }
/* Aegean on Rust measures 2.41:1. It is a surface and an accent here, not
   a colour to set type in. */
.panel--rust .label { color: rgba(229, 222, 207, .88); }
.panel--rust .rule { background: var(--rule-light); }
.panel--sky { background: var(--aegean); }
/* Nothing small can be read on Aegean — ivory measures 2.71:1 and ink 3.62:1,
   and 4.5 is not reachable with any colour in the palette. So the band stays
   Aegean and the words sit on a plate of Ivory Sand laid over it. */
.plate {
  background: var(--sand); color: var(--ink);
  padding: clamp(1.9rem, 4.5vw, 3.4rem) clamp(1.6rem, 4vw, 3.2rem);
}
.panel--sky .plate h2, .panel--sky .plate h3 { color: var(--ink); }
.panel--sky .plate .lead, .panel--sky .plate .label { color: var(--rust); opacity: 1; }
.panel--sky .plate .row { border-color: var(--rule); }
.panel--sky .plate.statement p { color: var(--ink); }
.panel--sky .plate.statement p.label { color: var(--rust); }
.panel--sky .plate .row__v { color: var(--ink-soft); }
.panel--sky .row { border-color: var(--rule-light); }
.panel--sky .row:last-child { border-bottom-color: var(--rule-light); }
.panel--sky .row__v { color: rgba(229, 222, 207, .78); }
.panel--sky .ticks li::before { background: var(--ivory); }
.panel--sky .rule { background: var(--rule-light); }

/* A single statement, given the room it asks for. */
.statement { text-align: center; }
.statement p {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.8rem); line-height: 1.4;
  max-width: 30ch; margin-inline: auto;
}
.statement p.label {
  font-family: var(--body); font-weight: 400;
  font-size: .75rem; letter-spacing: .26em; line-height: 1.6;
}

/* -------------------------------------------------------------- list rows */
.rows { display: flex; flex-direction: column; }
.row {
  display: flex; flex-wrap: wrap; gap: .4rem 2rem; justify-content: space-between;
  align-items: baseline; padding-block: 1.05rem; border-top: 1px solid var(--rule);
}
.row:last-child { border-bottom: 1px solid var(--rule); }
.row__k { font-size: .95rem; }
.row__v { font-size: .82rem; font-weight: 400; color: var(--ink-soft); text-align: right; }
.panel--rust .row { border-color: var(--rule-light); }
.panel--rust .row__v { color: rgba(229, 222, 207, .85); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
@media (min-width: 640px) { .ticks--2 { grid-template-columns: 1fr 1fr; gap: .75rem 2rem; } }
.ticks li { position: relative; padding-left: 1.6rem; font-size: .95rem; line-height: 1.7; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 8px; height: 1px; background: var(--rust);
}
.panel--rust .ticks li::before { background: var(--aegean); }

/* ---------------------------------------------------------------- gallery */
.tiles { columns: 1; column-gap: clamp(.75rem, 1.6vw, 1.4rem); }
@media (min-width: 640px)  { .tiles { columns: 2; } }
@media (min-width: 1050px) { .tiles { columns: 3; } }
.tiles figure { break-inside: avoid; margin: 0 0 clamp(.75rem, 1.6vw, 1.4rem); }
.tiles img { width: 100%; }
.tiles button { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }

.strip { display: grid; gap: clamp(.5rem, 1.2vw, 1rem); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .strip { grid-template-columns: repeat(3, 1fr); } }
.strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.strip--wide img { aspect-ratio: 4 / 3; }

/* ------------------------------------------------------------------ lightbox */
.lb {
  position: fixed; inset: 0; z-index: 90; background: rgba(51, 48, 43, .94);
  display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb img { max-width: 100%; max-height: 86vh; object-fit: contain; }
.lb__x, .lb__prev, .lb__next {
  position: absolute; background: none; border: 0; color: var(--ivory); cursor: pointer;
  font-size: 1.5rem; line-height: 1; padding: .8rem 1rem; opacity: .75;
}
.lb__x:hover, .lb__prev:hover, .lb__next:hover { opacity: 1; }
.lb__x { top: 1rem; right: 1rem; }
.lb__prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb__next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------- booking bar */
.book {
  background: var(--rust); color: var(--ivory);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
}
/* the booking bar follows a rust-washed hero on the room pages — a hairline
   keeps the two from bleeding into one another */
.page-hero + .book, .hero + .book { border-top: 1px solid var(--rule-light); }
.book__form {
  display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: end;
}
@media (min-width: 760px) { .book__form { grid-template-columns: repeat(3, 1fr) auto; gap: 1.5rem; } }
.book label {
  display: block; font-size: .75rem; font-weight: 400; text-transform: uppercase;
  letter-spacing: .24em; color: rgba(229, 222, 207, .88); margin-bottom: .55rem;
}
.book input, .book select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--rule-light);
  color: var(--ivory); font-family: var(--body); font-weight: 300; font-size: 1rem;
  padding: .45rem 0; border-radius: 0;
}
.book input:focus, .book select:focus { outline: 0; border-bottom-color: var(--ivory); }
.book select option { color: var(--ink); }
.book input::-webkit-calendar-picker-indicator {
  filter: invert(93%) sepia(9%) saturate(320%) hue-rotate(4deg); cursor: pointer; opacity: .8;
}
.book select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 6px center, right 1px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.5rem;
}

/* ------------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.field label {
  font-size: .75rem; font-weight: 400; text-transform: uppercase;
  letter-spacing: .24em; color: var(--rust);
}
.field input, .field textarea, .field select {
  font-family: var(--body); font-weight: 300; font-size: 1rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
  padding: .6rem 0; border-radius: 0;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-bottom-color: var(--rust); }
.field textarea { resize: vertical; min-height: 7rem; }

/* phone entry with a country selector — a fixture on every form we build */
.tel { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: end; }
.tel__country {
  position: relative; display: flex; align-items: center; gap: .45rem;
  border-bottom: 1px solid var(--rule); padding: .6rem 0;
}
.tel__flag { font-size: 1.15rem; line-height: 1; }
.tel__dial { font-size: 1rem; white-space: nowrap; }
.tel__country select {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; border: 0;
}
.form__note { font-size: .82rem; font-weight: 400; color: var(--ink-soft); }
.form__status { font-size: .9rem; margin-top: 1rem; min-height: 1.5em; }

/* --------------------------------------------------------------------- faq */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding-block: 1.35rem; cursor: pointer; list-style: none;
  font-family: var(--display); font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rust); font-family: var(--body); font-size: 1.2rem; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.5rem; font-size: .95rem; }

/* ------------------------------------------------------------------ footer */
.foot { background: var(--rust); color: var(--ivory); padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: .3em; }
.foot__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 800px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot .logo { --logo-w: 190px; align-items: flex-start; }
.foot h4 { font-family: var(--body); font-size: .75rem; font-weight: 400; text-transform: uppercase; letter-spacing: .24em; color: rgba(229, 222, 207, .88); margin-bottom: 1.2rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; font-size: .92rem; }
.foot__bottom {
  /* the right padding keeps the small print, and the studio credit that now
     ends the row, clear of the floating WhatsApp button */
  margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.75rem; padding-right: 7rem;
  border-top: 1px solid var(--rule-light);
  display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between;
  font-size: .78rem; color: rgba(229, 222, 207, .85);
}
.foot__bottom a { color: inherit; }

.subscribe { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; }
.subscribe input {
  flex: 1 1 12rem; background: transparent; border: 0; border-bottom: 1px solid var(--rule-light);
  color: var(--ivory); font-family: var(--body); font-weight: 300; padding: .5rem 0; border-radius: 0;
}
.subscribe input:focus { outline: 0; border-bottom-color: var(--ivory); }
.subscribe input::placeholder { color: rgba(229, 222, 207, .45); }

/* ------------------------------------------------------------------ social */
.social { display: flex; gap: 1.1rem; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--rule-light); border-radius: 50%; transition: background .35s var(--ease), color .35s var(--ease); }
.social a:hover { background: var(--ivory); color: var(--rust); text-decoration: none; }
.social svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------------------------------------------------------------- whatsapp */
.wa {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 55;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--rust); color: var(--ivory);
  border-radius: 47% 53% 52% 48% / 51% 47% 53% 49%;
  box-shadow: 0 6px 24px rgba(51, 48, 43, .18);
  transition: transform .4s var(--ease);
}
.wa:hover { transform: scale(1.06); }
.wa svg { width: 24px; height: 24px; fill: currentColor; }

/* ------------------------------------------------------------------ cookie */
.cookie {
  position: fixed; left: var(--gut); right: var(--gut); bottom: clamp(1rem, 3vw, 2rem); z-index: 80;
  background: var(--ivory); color: var(--ink); border: 1px solid var(--rule);
  padding: 1.35rem clamp(1.25rem, 3vw, 2rem);
  display: none; gap: 1.25rem 2rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
  max-width: 46rem; margin-inline: auto;
}
.cookie.is-shown { display: flex; }
.cookie p { font-size: .85rem; margin: 0; max-width: 30rem; }
.cookie__acts { display: flex; gap: .75rem; flex-wrap: wrap; }

/* -------------------------------------------------------------------- misc */
.map { border: 0; width: 100%; height: clamp(300px, 40vw, 460px); filter: grayscale(1) sepia(18%) contrast(.92); }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--rust); color: var(--ivory);
  padding: .75rem 1.25rem; z-index: 100;
}
.skip:focus { left: .5rem; top: .5rem; }

/* Spoken, not drawn. For headings a crawler or a screen reader needs and the
   design does not — the home page name sits under the wordmark this way. */
.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.center { text-align: center; }
.mt { margin-top: clamp(2rem, 4vw, 3.25rem); }
.mt-sm { margin-top: 1.5rem; }

/* the quiet reveal the brand asks for — nothing more than this */
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rise.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; } }

/* ------------------------------------------------------------- the credit */
/* The studio signature. Its typefaces and its lowercase are fixed and travel
   unchanged between projects — only its colour follows the host site. That is
   why Arial and Arial Black appear here and nowhere else on this site: this is
   an attribution mark belonging to The Fixer, not Áneme brand copy. */
.byfixer {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: none;
  text-decoration: none;
  color: rgba(229, 222, 207, .85);
  transition: color .35s var(--ease);
}
.byfixer:hover { color: var(--ivory); text-decoration: none; }
.byfixer__fixer {
  font-family: "Arial Black", "Arial Bold", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
}

/* ------------------------------------------------------------ not yet live */
/* Controls whose destination is still unconfirmed. They stay visible so the
   layout reads correctly, but they are plainly inert rather than pretending
   to work. Flip the switches in src/data.py to bring them back. */
.is-off {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none;
}
.btn.is-off { border-style: dashed; }
.foot .is-off, .panel--rust .is-off { color: rgba(229, 222, 207, .55); }

/* ============================================================== cinematic ==
   The brand asks for restraint, which is about how loud a thing is, not about
   whether it is alive. So: real depth, real camera movement, nothing garish.
   Everything is transform/opacity, driven from one rAF loop, and every last
   piece of it is disabled under prefers-reduced-motion.
   ========================================================================== */

/* the whole page sits in a shallow space so 3D reads as depth, not as skew */
main { perspective: 1400px; perspective-origin: 50% 42%; }

/* --- the opening curtain -------------------------------------------------- */
.js .curtain {
  position: fixed; inset: 0; z-index: 200; background: var(--rust);
  display: grid; place-items: center;
  transform: translate3d(0, 0, 0);
  transition: transform 1.05s cubic-bezier(.76, 0, .24, 1);
}
.curtain { display: none; }
.js .curtain { display: grid; }
.curtain__mark { width: 128px; color: var(--ivory); opacity: .9;
  transition: opacity .5s ease .1s; }
.curtain__mark svg { width: 100%; height: auto; display: block; }
.js body.is-open .curtain { transform: translate3d(0, -101%, 0); }
body.is-open .curtain__mark { opacity: 0; }

/* ---------------------------------------------------------- hero controls */
/* Thin chevrons, nothing drawn around them. The visible mark is small but the
   button is 48px so it clears the touch-target minimum on both platforms. */
.hero__nav {
  position: absolute; z-index: 3;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ivory); opacity: .62;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.hero__nav:hover { opacity: 1; }
.hero__nav:focus-visible { opacity: 1; outline: 1px solid var(--ivory); outline-offset: 4px; }
.hero__nav svg { width: 22px; height: 22px; display: block; }
.hero__nav--prev { left: var(--gut); top: 50%; transform: translateY(-50%); }
.hero__nav--next { right: var(--gut); top: 50%; transform: translateY(-50%); }
.hero__nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.hero__nav--next:hover { transform: translateY(-50%) translateX(3px); }

@media (max-width: 700px) {
  /* side by side underneath the content, so neither arrow can sit on the mark */
  .hero__nav { top: auto; bottom: clamp(1.25rem, 4vw, 2rem); transform: none; }
  /* 24px between the two, comfortably past the 8px minimum */
  .hero__nav--prev { left: 50%; margin-left: -60px; }
  .hero__nav--next { right: 50%; margin-right: -60px; }
  .hero__nav--prev:hover { transform: none; }
  .hero__nav--next:hover { transform: none; }
  .hero .hero__inner { padding-bottom: clamp(5rem, 14vw, 7rem); }
}

/* --- the hero: a camera pulling back -------------------------------------- */
.hero > picture img, .page-hero > picture img {
  will-change: transform;
  transform: scale(var(--z, 1.16)) translate3d(0, var(--imgY, 0px), 0);
}
.hero__inner, .page-hero .hero__inner {
  transform: translate3d(0, var(--par, 0px), 0) scale(var(--heroScale, 1));
  opacity: var(--heroFade, 1);
  will-change: transform, opacity;
}
/* the mark, the tagline and the button sit at different depths */
.hero__inner > * { transform: translateZ(var(--tz, 0px)); }
.hero__inner .logo   { --tz: 70px; }
.hero__inner .hero__tag { --tz: 40px; }
.hero__inner .btn, .hero__inner .is-off { --tz: 24px; }

/* --- images breathe inside their frames ----------------------------------- */
/* The frame is fixed; the picture inside it is oversized and slides. This is
   the parallax that actually reads — moving whole blocks barely registers. */
.frame { overflow: hidden; position: relative; }
.frame picture, .frame img { display: block; width: 100%; }
.frame img {
  transform: scale(1.22) translate3d(0, var(--imgY, 0px), 0);
  will-change: transform;
}

/* --- things arrive out of the page, not out of nowhere -------------------- */
.reveal { overflow: hidden; }
.js .reveal img, .js .reveal picture {
  transform: scale(1.24) translate3d(0, 6%, 0);
  opacity: 0;
  transition: transform 1.5s cubic-bezier(.16, .84, .34, 1),
              opacity   .9s cubic-bezier(.16, .84, .34, 1);
  will-change: transform, opacity;
}
.js .reveal.is-in img, .js .reveal.is-in picture { transform: scale(1) translate3d(0, 0, 0); opacity: 1; }

/* cards tip up off the page as they enter */
.js .lift {
  opacity: 0;
  transform: perspective(1200px) rotateX(14deg) translate3d(0, 46px, -60px);
  transition: transform 1.15s cubic-bezier(.18, .78, .28, 1),
              opacity   .8s ease;
  transition-delay: var(--d, 0ms);
  will-change: transform, opacity;
}
.js .lift.is-in { opacity: 1; transform: perspective(1200px) rotateX(0) translate3d(0, 0, 0); }

/* --- headings rise a line at a time --------------------------------------- */
 /* inline-block gives each word a measurable box without changing how the
    line wraps */
.sw { display: inline-block; }
.sl { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.sli {
  display: block;
  transform: translate3d(0, 115%, 0) rotateX(-42deg);
  transform-origin: 50% 0%;
  opacity: 0;
  transition: transform 1.05s cubic-bezier(.16, .84, .34, 1),
              opacity   .6s ease;
  transition-delay: var(--sd, 0ms);
  will-change: transform, opacity;
}
.is-split.is-in .sli { transform: translate3d(0, 0, 0) rotateX(0); opacity: 1; }

/* --- pointer depth on cards ----------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
  .tilt { perspective: 900px; }
  .tilt__inner {
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(0, 0, 0)
               scale(var(--ts, 1));
    transform-style: preserve-3d;
    transition: transform .7s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
  }
  .tilt:hover .tilt__inner { transition-duration: .18s; --ts: 1.012; }
  .tilt .card__img  { transform: translateZ(52px); }
  .tilt .card__body { transform: translateZ(26px); }
  /* the picture drifts against the frame as the card turns */
  .tilt .card__img img { transform: scale(1.1) translate3d(var(--px, 0px), var(--py, 0px), 0); }

  /* buttons lean toward the cursor */
  .mag { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); transition: transform .5s cubic-bezier(.22,.61,.36,1); }
  .mag:hover { transition-duration: .12s; }
}

/* --- the gallery reads as a wall standing in space ------------------------ */
.tiles figure { transform-style: preserve-3d; }
.tiles .reveal img { transition-duration: 1.6s; }

.par { transform: translate3d(0, var(--par, 0px), 0); will-change: transform; }
.rise { transition-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  .curtain { display: none; }
  main { perspective: none; }
  .hero > picture img, .page-hero > picture img, .hero__slides img,
  .frame img { transform: none !important; }
  /* no rotation at all: the first photograph, and only that one */
  .hero__slides picture { transition: none; }
  .hero__slides picture:not(:first-child) { display: none; }
  .js .hero__slides picture:first-child { opacity: 1; }
  .reveal img, .reveal picture { transform: none !important; opacity: 1 !important; transition: none !important; }
  .lift { opacity: 1 !important; transform: none !important; transition: none !important; }
  .sli { transform: none !important; opacity: 1 !important; transition: none !important; }
  .sl { overflow: visible; }
  .tilt__inner, .tilt .card__img, .tilt .card__body, .tilt .card__img img,
  .mag { transform: none !important; }
  .par, .hero__inner, .page-hero .hero__inner { transform: none !important; opacity: 1 !important; }
}

/* ------------------------------------------------------ the line of facts */
.factline {
  background: var(--sand);
  padding-block: clamp(1.4rem, 2.6vw, 2.1rem);
  border-bottom: 1px solid var(--rule);
}
.factline .hero__meta span::after { background: var(--rust); }

/* --------------------------------------------------------------- honeypot */
/* Off-screen rather than display:none — the better bots skip hidden fields,
   but they fill this one in, which is the whole point. */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* the two ways to send sit on one line, and wrap without losing the "or" */
.send { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.1rem; }
.send__or { font-size: .82rem; color: var(--ink-soft); }

/* ------------------------------------------------------------- the quote */
.enquiry { max-width: 44rem; }
.row2, .row3 { display: grid; gap: 0 clamp(1rem, 2.4vw, 2rem); grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .row2 { grid-template-columns: 1fr 1fr; }
  .row3 { grid-template-columns: 1fr 1fr 1.4fr; }
}
.enquiry .label { margin-bottom: .2rem; }
.enquiry select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--rust) 50%),
                    linear-gradient(135deg, var(--rust) 50%, transparent 50%);
  background-position: right 6px center, right 1px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.5rem;
}
.enquiry input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; }
.enquiry input[type="date"]:hover::-webkit-calendar-picker-indicator { opacity: 1; }
