/* =========================================================================
   TAUN — кофейня в Твери. Стили сайта.
   Тёплый heritage-кафе × editorial newspaper × городская ностальгия.
   ========================================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "PT Serif";
  src: url("../fonts/PTSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Serif";
  src: url("../fonts/PTSerif-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Serif";
  src: url("../fonts/PTSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "PT Sans";
  src: url("../fonts/PTSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PT Sans";
  src: url("../fonts/PTSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Custom properties ---------- */
:root {
  --ivory: #F2EADA;
  --paper: #E7DDC6;
  --espresso: #241811;
  --espresso-soft: #33241a;
  --coffee: #40291a;
  --coffee-soft: #6d5843;
  --terracotta: #A3502F;
  --terracotta-bright: #C0623B;
  --olive: #6E6B4B;
  --gold: #C79A4B;
  --line-dark: rgba(64, 41, 26, 0.16);
  --line-light: rgba(242, 234, 218, 0.22);
  --header-h: 76px;
  --pad: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-serif: "PT Serif", Georgia, "Times New Roman", serif;
  --font-sans: "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html {
  background: var(--ivory);
  scroll-behavior: smooth;
}
[id] { scroll-margin-top: var(--header-h); }
/* NOTE: deliberately not setting overflow-x:hidden on html/body — doing so
   implicitly promotes overflow-y to `auto` per the CSS overflow spec,
   which breaks `position: sticky` for descendants (verified: the menu's
   sticky category nav stopped sticking with it set). Full-bleed and
   parallax-transformed sections instead guard against horizontal
   overflow individually via their own `overflow: hidden`. */
body {
  margin: 0;
  min-height: 100svh;
  background: var(--ivory);
  color: var(--coffee);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--espresso);
  color: var(--ivory);
  padding: 12px 18px;
  z-index: 2000;
  border-radius: 4px;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--terracotta-bright);
  outline-offset: 3px;
}

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

/* ---------- Shared primitives ---------- */
.tn-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
}

.tn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.tn-btn--solid {
  background: var(--terracotta);
  color: var(--ivory);
}
.tn-btn--solid:hover { background: var(--terracotta-bright); transform: translateY(-1px); }
.tn-btn--outline {
  border-color: currentColor;
  color: inherit;
}
.tn-btn--outline:hover { background: rgba(242, 234, 218, 0.1); transform: translateY(-1px); }
.tn-btn--ghost {
  color: inherit;
  padding: 10px 18px;
}

/* Reveal utilities */
.reveal-line-inner {
  display: block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease);
  will-change: transform;
}
.is-visible .reveal-line-inner { transform: translateY(0); }

[data-reveal-up] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal-up].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Header ---------- */
.tn-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 400;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(36, 24, 17, 0.5), transparent);
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.tn-header.is-scrolled {
  background: rgba(36, 24, 17, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.tn-header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--pad);
  color: var(--ivory);
}
.tn-header__mark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.tn-header__nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 700;
}
.tn-header__nav a { opacity: 0.86; transition: opacity 0.25s ease; }
.tn-header__nav a:hover { opacity: 1; }
.tn-header__right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tn-header__phone { font-size: 14px; font-weight: 700; opacity: 0.9; }
.tn-header__cta { border-color: var(--line-light); padding: 9px 18px; }

.tn-burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.tn-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Mobile fullscreen menu ---------- */
.tn-menu-scrim {
  position: fixed; inset: 0; z-index: 890;
  background: rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.tn-menu-scrim.is-open { opacity: 1; }
.tn-menu {
  position: fixed; inset: 0; z-index: 900;
  background: var(--espresso);
  color: var(--ivory);
  display: flex; flex-direction: column;
  padding: max(20px, env(safe-area-inset-top)) var(--pad) max(24px, env(safe-area-inset-bottom));
  clip-path: circle(0% at calc(100% - 40px) 36px);
  transition: clip-path 0.65s var(--ease);
  visibility: hidden;
}
.tn-menu.is-open {
  clip-path: circle(150% at calc(100% - 40px) 36px);
  visibility: visible;
}
.tn-menu__top {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); flex: none;
}
.tn-menu__mark { font-family: var(--font-serif); font-weight: 700; font-size: 18px; }
.tn-menu__nav {
  display: flex; flex-direction: column; justify-content: center; flex: 1; gap: 4px;
}
.tn-menu__nav a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 10px 0;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 7.2vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-light);
  transition: color 0.3s ease, padding-left 0.35s var(--ease);
  white-space: nowrap;
}
.tn-menu__nav a:hover, .tn-menu__nav a:focus-visible {
  color: var(--gold); padding-left: 10px;
}
.tn-menu__num { font-family: var(--font-sans); font-size: 13px; color: var(--olive); }
.tn-menu__footer {
  flex: none; display: flex; flex-direction: column; gap: 12px;
  padding-top: 18px; border-top: 1px solid var(--line-light);
}
.tn-menu__addr { font-size: 14px; color: rgba(242,234,218,0.7); line-height: 1.5; }
.tn-menu__phone { font-family: var(--font-serif); font-size: clamp(1.2rem, 5vw, 1.6rem); font-weight: 700; }
.tn-menu__close { color: var(--ivory); }

/* ---------- Hero ---------- */
.tn-hero {
  position: relative;
  min-height: 100svh;
  background: var(--espresso);
  color: var(--ivory);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.tn-hero__media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 44%;
  z-index: 1;
  overflow: hidden;
}
.tn-hero__media picture, .tn-hero__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.tn-hero__media-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(36,24,17,0.95) 0%, rgba(36,24,17,0.35) 32%, rgba(36,24,17,0) 60%),
              linear-gradient(0deg, rgba(20,13,9,0.55), transparent 45%);
  z-index: 2;
}
.tn-hero__text {
  position: relative;
  z-index: 3;
  max-width: 62%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: calc(var(--header-h) + 24px) var(--pad) 90px;
  overflow: visible;
}
.tn-hero__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em; color: rgba(242,234,218,0.72);
}
.tn-hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 0.88;
  font-size: clamp(4.2rem, 11vw, 11.5rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.tn-hero__title-line { display: inline-block; white-space: nowrap; }
.tn-hero__title-overlap { color: var(--gold); }
.js-ready .tn-hero__title {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s var(--ease);
}
.js-ready .tn-hero__title.is-revealed {
  clip-path: inset(0 0% 0 0);
}
.tn-hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(242,234,218,0.85);
}
.tn-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.tn-hero__phone { font-size: 14px; font-weight: 700; opacity: 0.82; margin-top: 2px; }
.tn-hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(242,234,218,0.6);
}
.tn-hero__scroll-line {
  width: 1px; height: 34px; background: rgba(242,234,218,0.4);
  position: relative; overflow: hidden;
}
.tn-hero__scroll-line::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--gold);
  animation: tn-scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes tn-scroll-pulse {
  0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tn-hero__scroll-line::after { animation: none; top: 0; }
}

/* ---------- History ---------- */
.tn-history {
  padding: clamp(80px, 10vw, 140px) var(--pad);
  background: var(--ivory);
}
.tn-history__head { max-width: 900px; margin-bottom: clamp(40px, 6vw, 72px); }
.tn-history__big {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--coffee);
  margin-top: 14px;
  overflow: hidden;
}
.tn-history__big span { display: block; overflow: hidden; }
.tn-history__grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 0.8fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.tn-history__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.tn-history__photo--a { grid-column: 1; aspect-ratio: 3/4; }
.tn-history__copy {
  grid-column: 2;
  align-self: center;
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
  color: var(--coffee);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tn-history__copy em { font-style: italic; color: var(--terracotta); }
.tn-history__photo--b { grid-column: 3; grid-row: 1 / span 2; aspect-ratio: 3/6.5; align-self: start; }
.tn-history__photo--c { grid-column: 1 / span 2; aspect-ratio: 16/8; margin-top: 8px; }

/* ---------- Atmosphere editorial sequence ---------- */
.tn-atmos { padding: clamp(40px, 6vw, 80px) var(--pad) clamp(80px, 10vw, 140px); background: var(--ivory); }
.tn-atmos__eyebrow { margin-bottom: clamp(28px, 4vw, 48px); }
.tn-atmos__wide { position: relative; overflow: hidden; border-radius: 2px; margin-bottom: 14px; }
.tn-atmos__wide img { width: 100%; height: clamp(260px, 46vw, 620px); object-fit: cover; }
.tn-atmos__wide figcaption {
  font-family: var(--font-serif); font-style: italic; font-size: 14px;
  color: var(--coffee-soft); margin: 14px 0 clamp(48px, 6vw, 96px);
  max-width: 560px;
}
.tn-atmos__row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.tn-atmos__tall { overflow: hidden; border-radius: 2px; }
.tn-atmos__tall img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.tn-atmos__statement {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
  text-transform: uppercase;
  color: var(--coffee);
  overflow: hidden;
}
.tn-atmos__statement span { display: block; overflow: hidden; }

/* ---------- Fullscreen cinematic moment ---------- */
.tn-cinema {
  position: relative;
  height: 92svh;
  min-height: 480px;
  overflow: hidden;
}
.tn-cinema img { width: 100%; height: 100%; object-fit: cover; }
.tn-cinema::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,13,9,0.55), transparent 40%);
}
.tn-cinema__label {
  position: absolute; left: var(--pad); bottom: 28px; z-index: 2;
  color: var(--ivory);
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
}

/* ---------- Breakfast moment ---------- */
.tn-breakfast { padding: clamp(80px, 10vw, 140px) var(--pad); background: var(--paper); }
.tn-breakfast__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.tn-breakfast__title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(2.4rem, 6.4vw, 5rem); line-height: 0.98;
  text-transform: uppercase; color: var(--coffee); margin: 12px 0 20px;
  overflow: hidden;
}
.tn-breakfast__title span { display: block; overflow: hidden; }
.tn-breakfast__copy { font-family: var(--font-serif); font-size: 18px; line-height: 1.6; color: var(--coffee-soft); max-width: 60ch; }
.tn-breakfast__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: clamp(16px, 2.4vw, 28px);
  align-items: end;
}
.tn-breakfast__photo { overflow: hidden; border-radius: 2px; }
.tn-breakfast__photo img { width: 100%; object-fit: cover; }
.tn-breakfast__photo--a { aspect-ratio: 4/3; align-self: start; }
.tn-breakfast__photo--b { aspect-ratio: 930/1050; }
.tn-breakfast__photo--c { aspect-ratio: 4/3.4; align-self: start; margin-top: clamp(24px, 4vw, 60px); }

/* ---------- Coffee moment ---------- */
.tn-coffee-moment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70svh;
  background: var(--espresso);
  color: var(--ivory);
}
.tn-coffee-moment__media { overflow: hidden; }
.tn-coffee-moment__media img { width: 100%; height: 100%; object-fit: cover; }
.tn-coffee-moment__text {
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  padding: 60px var(--pad);
}
.tn-coffee-moment__title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  color: var(--gold);
  overflow: hidden;
}
.tn-coffee-moment__title span { display: block; overflow: hidden; }
.tn-coffee-moment__text p {
  font-family: var(--font-serif); font-size: 18px; line-height: 1.6;
  color: rgba(242,234,218,0.82); max-width: 42ch;
}

/* ---------- Menu section ---------- */
.tn-menu-section { padding: clamp(80px, 10vw, 140px) var(--pad); background: var(--ivory); }
.tn-menu-section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.tn-menu-section__title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(2.2rem, 5.6vw, 4.2rem); line-height: 1.02;
  text-transform: uppercase; color: var(--coffee); margin: 12px 0 18px;
}
.tn-menu-section__note { font-size: 14px; color: var(--coffee-soft); max-width: 56ch; line-height: 1.6; }

.tn-menu-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.tn-menu-cats {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tn-menu-cats a {
  padding: 8px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--coffee-soft);
  border-left: 2px solid transparent;
  padding-left: 14px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.tn-menu-cats a.is-active,
.tn-menu-cats a:hover {
  color: var(--terracotta);
  border-left-color: var(--terracotta);
}

.tn-menu-cat { padding-bottom: clamp(48px, 6vw, 88px); scroll-margin-top: calc(var(--header-h) + 20px); }
.tn-menu-cat:last-child { padding-bottom: 0; }
.tn-menu-cat__title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-transform: uppercase;
  color: var(--coffee);
  margin-bottom: 6px;
}
.tn-menu-cat__note {
  font-size: 13px; color: var(--olive); margin-bottom: 22px; line-height: 1.5;
}
.tn-menu-list { display: flex; flex-direction: column; }
.tn-menu-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
}
.tn-menu-item__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.tn-menu-item__name {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 700;
  color: var(--coffee);
}
.tn-menu-item__dots {
  flex: 1;
  border-bottom: 1px dotted var(--line-dark);
  transform: translateY(-4px);
  min-width: 20px;
}
.tn-menu-item__price {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--terracotta);
  white-space: nowrap;
}
.tn-menu-item__desc {
  font-size: 14px;
  color: var(--coffee-soft);
  line-height: 1.55;
  margin-top: 6px;
  max-width: 68ch;
}
.tn-menu-item__extra {
  font-size: 12.5px;
  color: var(--olive);
  margin-top: 6px;
  line-height: 1.5;
}

/* ---------- Social proof (conditional) ---------- */
.tn-social[hidden] { display: none; }
.tn-social {
  padding: clamp(60px, 8vw, 100px) var(--pad);
  background: var(--paper);
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.tn-social__figure { display: flex; flex-direction: column; gap: 4px; }
.tn-social__rating {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--terracotta);
  line-height: 1;
}
.tn-social__source { font-size: 13px; color: var(--coffee-soft); }
.tn-social__quote {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(20px, 2.6vw, 30px);
  color: var(--coffee);
  max-width: 40ch;
}

/* ---------- Final contact scene ---------- */
.tn-contact {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.tn-contact img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tn-contact__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(20,13,9,0.92) 0%, rgba(20,13,9,0.55) 45%, rgba(20,13,9,0.25) 75%);
}
.tn-contact__body {
  position: relative; z-index: 2;
  width: 100%;
  padding: 0 var(--pad) clamp(48px, 7vw, 88px);
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tn-contact__title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(4rem, 12vw, 9.5rem);
  line-height: 0.9;
  text-transform: uppercase;
}
.tn-contact__addr { font-size: 16px; line-height: 1.5; color: rgba(242,234,218,0.85); }
.tn-contact__phone { font-family: var(--font-serif); font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; color: var(--gold); }
.tn-contact__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Footer ---------- */
.tn-footer { background: var(--espresso); color: var(--ivory); padding: clamp(40px, 6vw, 64px) var(--pad); }
.tn-footer__inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
}
.tn-footer__mark { font-family: var(--font-serif); font-weight: 700; font-size: 26px; }
.tn-footer__meta { font-size: 13px; color: rgba(242,234,218,0.7); display: flex; flex-direction: column; gap: 4px; text-align: right; }
.tn-footer__meta a { font-weight: 700; color: var(--ivory); }
.tn-footer__note { width: 100%; font-size: 12px; color: rgba(242,234,218,0.4); text-align: center; padding-top: 18px; border-top: 1px solid var(--line-light); }

/* ---------- Sticky mobile CTA ---------- */
.tn-sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  display: flex;
  gap: 10px;
  padding: 12px var(--pad) max(12px, env(safe-area-inset-bottom));
  background: rgba(36, 24, 17, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateY(120%);
  transition: transform 0.4s var(--ease);
}
.tn-sticky-cta.is-visible { transform: translateY(0); }
.tn-sticky-cta__btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 13px;
  border-radius: 999px;
  font-family: var(--font-sans); font-weight: 700; font-size: 14px;
}
.tn-sticky-cta__btn--ghost { color: var(--ivory); border: 1.5px solid var(--line-light); }
.tn-sticky-cta__btn--solid { background: var(--terracotta); color: var(--ivory); }

@media (min-width: 900px) {
  .tn-sticky-cta { display: none; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
  .tn-history__grid { grid-template-columns: 1fr 1fr; }
  .tn-history__photo--a { grid-column: 1; }
  .tn-history__copy { grid-column: 2; }
  .tn-history__photo--b { grid-column: 1; grid-row: 2; aspect-ratio: 16/9; align-self: auto; }
  .tn-history__photo--c { grid-column: 2; grid-row: 2; margin-top: 0; aspect-ratio: 16/9; }
}

@media (max-width: 960px) {
  .tn-header__nav { display: none; }
  .tn-header__phone { display: none; }
  .tn-header__cta { display: none; }
  .tn-burger { display: flex; }

  .tn-hero { display: block; }
  .tn-hero__media { position: absolute; inset: 0; width: 100%; z-index: 1; }
  .tn-hero__media-scrim {
    background: linear-gradient(0deg, rgba(20,13,9,0.96) 0%, rgba(20,13,9,0.55) 40%, rgba(20,13,9,0.35) 100%);
  }
  .tn-hero__text { max-width: 100%; padding: calc(var(--header-h) + 20px) var(--pad) 120px; }
  .tn-hero__title { font-size: clamp(3.4rem, 15vw, 6rem); }

  .tn-atmos__row { grid-template-columns: 1fr; }
  .tn-atmos__tall img { aspect-ratio: 4/3; }

  .tn-breakfast__grid { grid-template-columns: 1fr 1fr; }
  .tn-breakfast__photo--a { grid-column: 1 / span 2; }
  .tn-breakfast__photo--c { margin-top: 0; }

  .tn-coffee-moment { grid-template-columns: 1fr; }
  .tn-coffee-moment__media img { height: 52svh; }
  .tn-coffee-moment__text { padding: 48px var(--pad); }

  .tn-menu-layout { grid-template-columns: 1fr; }
  .tn-menu-cats {
    position: sticky;
    top: var(--header-h);
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding: 10px 0;
    background: var(--ivory);
    z-index: 20;
    border-bottom: 1px solid var(--line-dark);
    -webkit-overflow-scrolling: touch;
  }
  .tn-menu-cats a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 6px 4px;
    white-space: nowrap;
  }
  .tn-menu-cats a.is-active, .tn-menu-cats a:hover {
    border-left-color: transparent;
    border-bottom-color: var(--terracotta);
  }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .tn-history__grid { grid-template-columns: 1fr; }
  .tn-history__photo--a, .tn-history__photo--b, .tn-history__photo--c {
    grid-column: 1; grid-row: auto; aspect-ratio: 4/3;
  }
  .tn-history__copy { grid-column: 1; }

  .tn-breakfast__grid { grid-template-columns: 1fr; }
  .tn-breakfast__photo--a, .tn-breakfast__photo--c { grid-column: 1; }

  .tn-social { flex-direction: column; align-items: flex-start; }

  .tn-contact__cta .tn-btn { flex: 1; }
}

@media (max-width: 420px) {
  .tn-hero__title { font-size: clamp(3rem, 16vw, 4.4rem); }
  .tn-contact__title { font-size: clamp(3.2rem, 17vw, 5rem); }
}
