@font-face {
    font-family: 'Aka-Acid-Shket';
    src: url('../fonts/Aka-Acid-Shket.woff2') format('woff2'),
        url('../fonts/Aka-Acid-Shket.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CF Asty Std';
    src: url('../fonts/CFAstyStd-Book.woff2') format('woff2'),
        url('../fonts/CFAstyStd-Book.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CF Asty Std';
    src: url('../fonts/CFAstyStd-ExtraBold.woff2') format('woff2'),
        url('../fonts/CFAstyStd-ExtraBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'CF Asty Std';
    src: url('../fonts/CFAstyStd-Thin.woff2') format('woff2'),
        url('../fonts/CFAstyStd-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sacco SemBd UltCond';
    src: url('../fonts/Sacco-SemiBoldCondensed.woff2') format('woff2'),
        url('../fonts/Sacco-SemiBoldCondensed.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}


:root {
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-color: #2563eb;
    --border-color: #e2e8f0;
    --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Aka-Acid-Shket', 'Plus Jakarta Sans', sans-serif;
    background-color: #F9EEE4;
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* with viewport-fit=cover, keep content clear of the notch in landscape */
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

.header-wrapper {
  text-align: center;
  margin: 40px auto 20px;
}

.logo img {
  max-width: 280px;
}

/* Load intro: hidden until script.js has set up the intro (no flash of the
   finished hero before it animates) */
.intro-pending .hero-wrapper,
.intro-pending .pill-dock {
    visibility: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
}

.hero-stage {
    position: relative;
    z-index: 5;            /* the bouncing ball stays above the next section */
    pointer-events: none;  /* ...without blocking clicks on it (hero has no links) */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2vh 5vw 48px;
}

.hero-wrapper {
    width: 100%;
    max-width: 1100px;
}

/* Animated glowing border: the rotating conic gradient is the card's background,
   ::before is a blurred copy of it (the glow) and ::after is the white fill
   that covers everything inside the 3px border */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: true;
}

.glow-box {
  --border-gradient: conic-gradient(from var(--border-angle),
      transparent 0deg, #ff6b4a 60deg, #ffc46b 100deg, transparent 160deg,
      transparent 180deg, #ff6b4a 240deg, #ffc46b 280deg, transparent 340deg);
  --radius: 40px;
  isolation: isolate; /* layer order: gradient bg -> glow -> white fill -> content */
  border: 3px solid transparent;
  border-radius: var(--radius);
  background: var(--border-gradient) border-box;
  animation: border-spin 4s linear infinite;
}

.glow-box::before,
.glow-box::after {
  content: '';
  position: absolute;
  z-index: -1;
}

.glow-box::before {
  inset: -3px;
  border-radius: var(--radius);
  background: var(--border-gradient);
  filter: blur(18px);
  opacity: 0.7;
}

.glow-box::after {
  inset: 0;
  border-radius: calc(var(--radius) - 3px);
  background: #fff;
}

@keyframes border-spin {
  to { --border-angle: 360deg; }
}

.hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto; /* keeps it centred while it shrinks into the ball */
  display: flex;
  justify-content: center;
  padding: 40px;
}

/* Centered Content Stack: SVG -> Title -> Dynamic Text -> Subtitle */
.hero-content-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.svg-container {
    width: 100%;
    max-width: min(400px, 31vh);
    aspect-ratio: 1;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

#gift-svg {
    width: 100%;
    height: 100%;
}

.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-dynamic-wrapper {
    height: 5.5em;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.dynamic-text {
    display: block;
    font-size: clamp(1.6rem, 6vw, 5.6rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.2;
    font-family: 'Sacco SemBd UltCond', sans-serif;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    font-family: 'CF Asty Std';
    letter-spacing: -1px;
    line-height: 22px;
}

/* Pill dock: fixed at the bottom of the viewport, outside the hero container */
.pill-dock {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 70;
  max-width: calc(100vw - 24px);
  padding: 12px 16px;
  background-color: rgba(255,255,255,0.2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.category-pills {
    position: relative; /* offset parent for keeping the active pill in view */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.pill {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'CF Asty Std', sans-serif;
  letter-spacing: -1px;
}

.pill:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.pill.active {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: -30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-secondary);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 20px;
    background-color: var(--border-color);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-primary);
    animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}

/* Latest gift: one full-width image with the title over a dark fade */
.latest-section {
    padding: 100px 5vw;
}

.latest-post {
    max-width: 1400px;
    margin: 0 auto;
}

.latest-post a {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    width: 100%;
    border-radius: 32px;
    background-color: #f1f5f9;
    box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.35);
    color: #fff;
    text-decoration: none;
}

.latest-post img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.latest-post a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0) 60%);
}

.latest-post h3 {
    position: absolute;
    left: clamp(1.25rem, 4vw, 3.5rem);
    right: clamp(1.25rem, 4vw, 3.5rem);
    bottom: clamp(1.25rem, 4vw, 3.5rem);
    z-index: 1;
    font-size: clamp(1.8rem, 3.2vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
}

.latest-post a:hover img {
    transform: scale(1.04);
}

/* Secondary Section Styles */
.for-him-section,
.gift-section {
    padding: 100px 5vw;
    min-height: 100vh; /* no background: the body colour changes per section */
}

/* leave room for the fixed dock when a section is the last thing on screen */
/* Footer: last thing on the page, so it keeps room for the fixed pill dock */
.site-footer {
    padding: 2rem 5vw calc(110px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    text-align: center;
}

.site-footer p {
    font-family: 'CF Asty Std', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.section-2-wrapper {
    max-width: 1700px;
    margin: 0 auto;
}

.section-2-header {
    text-align: center;
    margin-bottom: 3.0;
}

.section-2-header h2 {
    font-size: clamp(2.4rem, 8vw, 6.5rem);
    line-height: 1.05;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-2-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-family: 'CF Asty Std';
    margin-bottom: 20px;
}

.gift-posts-container {
    --ribbon: #ff6b4a;
    --ribbon-light: #ff8f73;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 2.5rem 2rem;
}

.gift-posts-container-2 {
    --ribbon: #ff6b4a;
    --ribbon-light: #ff8f73;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(410px, 100%), 1fr));
    gap: 2.5rem 2rem;
}

.gift-posts-container-3 {
  --ribbon: #ff6b4a;
  --ribbon-light: #ff8f73;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40%, 1fr));
  gap: 2.5rem 2rem;
}

/* giftguideall.html: every post in one grid, 4 per row
   (3 on small laptops, 2 on tablets, 1 on phones) */
.gift-posts-grid-4 {
    --ribbon: #ff6b4a;
    --ribbon-light: #ff8f73;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem 2rem;
}

.gift-posts-grid-4 .gift-content h3 {
   font-size: 2.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

/* shown by giftfeed.js when the live feed cannot be loaded */
.gift-posts-grid-4 .gift-feed-message {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 4rem 1rem;
    margin: 0;
}

@media (max-width: 1280px) {
    .gift-posts-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 968px) {
    .gift-posts-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Card = a wrapped present: the photo is "wrapped" with a ribbon that slides
   off on hover, and the text is a gift tag */
.gift-post {
    position: relative;
    padding: 12px;
    background-color: var(--card-bg);
    border-radius: 28px;
    box-shadow: var(--shadow);
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

/* gentle alternating tilt on hover so the grid feels hand-placed */
.gift-post:hover {
    transform: translateY(-10px) rotate(-1deg);
    box-shadow: 0 30px 50px -20px rgba(15, 23, 42, 0.25);
}

.gift-post:nth-child(even):hover {
    transform: translateY(-10px) rotate(1deg);
}

.gift-post a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gift-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 20px;
    background-color: #f1f5f9;
}

.gift-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
}

.gift-post:hover .gift-image-wrapper img {
    transform: scale(1.06);
}

/* ribbon: a vertical and a horizontal band crossing the photo */
.gift-image-wrapper::before,
.gift-image-wrapper::after {
    content: '';
    position: absolute;
    z-index: 2;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.18);
    transition: transform 0.7s var(--ease-out);
}

.gift-image-wrapper::before {
    top: 0;
    bottom: 0;
    right: 22%;
    width: 26px;
    background: linear-gradient(90deg,
        var(--ribbon) 0 35%, var(--ribbon-light) 35% 65%, var(--ribbon) 65%);
}

.gift-image-wrapper::after {
    left: 0;
    right: 0;
    top: 60%;
    height: 26px;
    background: linear-gradient(180deg,
        var(--ribbon) 0 35%, var(--ribbon-light) 35% 65%, var(--ribbon) 65%);
}

/* unwrap on hover */
.gift-post:hover .gift-image-wrapper::before {
    transform: translateY(-105%);
}

.gift-post:hover .gift-image-wrapper::after {
    transform: translateX(105%);
    transition-delay: 0.08s;
}

/* bow tied where the two bands cross, tilted, built from 5 overlapping
   svg pieces (spans added by script.js / giftfeed.js).
   The knot sits on the crossing: centre of the vertical band (right: 22% + 13px)
   and of the horizontal band (top: 60% + 13px). In the bow drawing the knot
   is at 50% across and 23% down, so the box is shifted and turned around it. */
.gift-bow {
    position: absolute;
    z-index: 3;
    left: calc(78% - 13px);
    top: calc(60% + 13px);
    width: 120px;
    aspect-ratio: 887.8 / 636.8;
    transform-origin: 50% 23%;
    transform: translate(-50%, -23%) rotate(-44deg);
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25));
    pointer-events: none;
    /* coming back: glides up and settles */
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* every piece covers the whole bow box; each svg only draws its own part */
.gift-bow i {
    position: absolute;
    inset: 0;
    background: center / contain no-repeat;
}

.gift-bow .bow-tail-l { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 887.8 636.8'%3E%3Cpolygon fill='%23f26b4e' points='195.4 589.6 225.6 575.5 249.4 564.4 300.1 540.7 329.8 585.3 344.4 607.2 364.1 636.8 461.9 214.2 437.8 207.5 419.2 202.3 374.2 189.7 355.7 184.5 331.1 177.6 195.4 589.6'/%3E%3Cpolygon fill='%23f68f75' points='225.6 575.5 249.4 564.4 374.2 189.7 355.7 184.5 225.6 575.5'/%3E%3Cpolygon fill='%23f68f75' points='329.8 585.3 344.4 607.2 437.8 207.5 419.2 202.3 329.8 585.3'/%3E%3C/svg%3E"); }
.gift-bow .bow-tail-r { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 887.8 636.8'%3E%3Cpolygon fill='%23f26b4e' points='694.4 589.6 664.3 575.5 640.4 564.4 589.8 540.7 560.1 585.3 545.5 607.2 525.7 636.8 428 214.2 452.1 207.5 470.6 202.3 515.7 189.7 534.2 184.5 558.8 177.6 694.4 589.6'/%3E%3Cpolygon fill='%23f68f75' points='664.3 575.5 640.4 564.4 515.7 189.7 534.2 184.5 664.3 575.5'/%3E%3Cpolygon fill='%23f68f75' points='560.1 585.3 545.5 607.2 452.1 207.5 470.6 202.3 560.1 585.3'/%3E%3C/svg%3E"); }
.gift-bow .bow-loop-l { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 887.8 636.8'%3E%3Cpath fill='%23f26b4e' d='M154.8,0H0v292.8h154.8c77.7,0,148.4-22.2,201.5-58.5V58.5C303.3,22.2,232.5,0,154.8,0Z'/%3E%3Crect fill='%23f68f75' x='44.8' width='19.2' height='292'/%3E%3C/svg%3E"); }
.gift-bow .bow-loop-r { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 887.8 636.8'%3E%3Cpath fill='%23f26b4e' d='M733,0h154.8v292.8h-154.8c-77.7,0-148.4-22.2-201.5-58.5V58.5C584.6,22.2,655.3,0,733,0Z'/%3E%3Crect fill='%23f68f75' x='822' width='19.2' height='292'/%3E%3C/svg%3E"); }
.gift-bow .bow-knot   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 887.8 636.8'%3E%3Crect fill='%23ea5c3e' x='356.3' y='58.4' width='175.1' height='175.1'/%3E%3Crect fill='%23f68f75' x='382.6' y='58.4' width='19.2' height='175.1'/%3E%3Crect fill='%23f68f75' x='486.9' y='58.4' width='19.2' height='175.1'/%3E%3C/svg%3E"); }

/* unwrap: the whole bow drops - it speeds up like it's falling, tips a
   little, and slides out of the bottom of the photo (overflow is hidden) */
.gift-post:hover .gift-bow {
    transform: translate(-50%, -23%) translateY(340px) rotate(-30deg);
    transition: transform 0.85s cubic-bezier(0.45, 0, 0.8, 0.35);
}

/* gift tag: perforated edge + round arrow button */
.gift-content {
    position: relative;
    flex: 1;
    margin-top: 12px;
    padding: 1.6rem 4.5rem 1.4rem 1.2rem;
    border-top: 2px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gift-content::after {
    content: '\2192';
    position: absolute;
    right: 0.6rem;
    bottom: 1.2rem;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--text-primary);
    border-radius: 50%;
    font-size: 1.3rem;
    color: var(--text-primary);
    transition: transform 0.5s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s;
}

.gift-post:hover .gift-content::after {
    background-color: var(--ribbon);
    border-color: var(--ribbon);
    color: #fff;
    transform: rotate(-45deg);
}

.gift-content h3 {
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}
.gift-content p {
  margin-top: 0.4rem;
  font-family: 'CF Asty Std', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* "ΤΟ ΔΩΡΟ ΠΟΥ...": ticket-style posts on a solid colour,
   image on top, a dashed tear line across, title below */
.ticket-section {
    padding: 100px 5vw;
}

.section-2-header .ticket-title {
    font-family: 'Sacco SemBd UltCond', sans-serif;
    font-size: clamp(2.5rem, 9vw, 9.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.ticket-list {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(560px, 100%), 1fr));
    gap: 2rem;
}

.ticket-post--navy   { --ticket-bg: #0f172a; --ticket-text: #fff; }

.ticket-post a {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    padding: 16px;
    border-radius: 28px;
    background-color: var(--ticket-bg);
    color: var(--ticket-text);
    text-decoration: none;
    box-shadow: 0 25px 50px -25px rgba(15, 23, 42, 0.4);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ticket-post a:hover {
    transform: translateY(-6px) rotate(-0.5deg);
}

.ticket-image {
    flex: 0 0 auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 18px;
}

.ticket-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.ticket-post a:hover .ticket-image img {
    transform: scale(1.06);
}

/* the dashed line runs across between image and title */
.ticket-text {
    flex: 1;
    display: flex;
    align-items: center;
    margin-top: 1.25rem;
    padding: 1.25rem 0.5rem 0.5rem;
    border-top: 2px dashed rgba(255, 255, 255, 0.55);
}

.ticket-text h3 {
    font-size: clamp(1.5rem, 2.4vw, 2.4rem);
    line-height: 1.1;
}

/* ON BUDGET: list view, image left / text right, arrow at the end of the row */
.budget-list {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.budget-item a {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding: 12px 1.75rem 12px 12px;
    border-radius: 24px;
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    color: inherit;
    text-decoration: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.budget-item a:hover {
    transform: translateX(8px);
    box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.25);
}

.budget-thumb {
    flex: 0 0 auto;
    width: 220px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background-color: #f1f5f9;
}

.budget-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.budget-item a:hover .budget-thumb img {
    transform: scale(1.08);
}

.budget-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.budget-text h3 {
    font-size: 1.8rem;
    line-height: 1.1;
    color: var(--text-primary);
}

.budget-text p {
    font-family: 'CF Asty Std', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.budget-item a::after {
    content: '\2192';
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--text-primary);
    border-radius: 50%;
    font-size: 1.3rem;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s, color 0.3s, border-color 0.3s;
}

.budget-item a:hover::after {
    background-color: #ff6b4a;
    border-color: #ff6b4a;
    color: #fff;
    transform: rotate(-45deg);
}

@media (max-width: 600px) {
    .budget-item a {
        gap: 1rem;
        padding-right: 1rem;
    }
    .budget-thumb {
        width: 110px;
        aspect-ratio: 1;
    }
    .budget-text h3 {
        font-size: 1.2rem;
    }
    .budget-text p,
    .budget-item a::after {
        display: none;
    }
}

/* Section titles are split into words by script.js; each word slides up
   out of its own mask */
.split-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.08em; /* room for descenders inside the mask */
}

.split-word-inner {
    display: inline-block;
    will-change: transform;
}

/* "ΔΕΙΤΕ ΠΕΡΙΣΣΟΤΕΡΑ" button at the end of each gift section */
.section-more {
    display: flex;
    justify-content: center;
    margin-top: 3.5rem;
}

.more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.2rem;
    border: 2px solid var(--text-primary);
    border-radius: 999px;
    background-color: var(--text-primary);
    color: #fff;
    font-family: 'CF Asty Std', sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: background-color 0.3s, border-color 0.3s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.more-btn::after {
    content: '\2197'; /* ↗ : opens in a new tab */
    font-size: 1.1rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.more-btn:hover {
    background-color: #ff6b4a;
    border-color: #ff6b4a;
    transform: translateY(-3px);
}

.more-btn:hover::after {
    transform: translate(2px, -2px);
}

/* Bento posts (Σπίτι, Tech): full-bleed photos with a frosted caption.
   One featured post spans 2x2, the other four fill a 2x2 block beside it;
   --reverse puts the featured post on the right */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    grid-auto-flow: dense;
    gap: 1.5rem;
}

.bento-post {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background-color: #f1f5f9;
    box-shadow: var(--shadow);
}


.bento-post--featured {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-grid--reverse .bento-post--featured {
    grid-column: 3 / span 2;
}

/* fewer posts than slots in a live bento section (set by sections.js) */
.bento-grid--2 .bento-post:not(.bento-post--featured) {
    grid-column: span 2;
    grid-row: span 2;
}
.bento-grid--1 .bento-post--featured,
.bento-grid--reverse.bento-grid--1 .bento-post--featured {
    grid-column: 1 / -1;
}

/* 3 posts (Για το Σπίτι): featured + 2 wide tiles stacked beside it */
.bento-grid--3 .bento-post:not(.bento-post--featured) {
    grid-column: span 2;
}

/* 4 posts (Tech): featured + one wide tile on top and 2 small tiles below */
.bento-grid--4 .bento-post--featured + .bento-post {
    grid-column: span 2;
}

/* tablets (2 columns): 3 posts -> featured on top, 2 tiles side by side;
   4 posts -> featured, the wide tile, then 2 tiles side by side */
@media (max-width: 968px) {
    .bento-grid--3 .bento-post:not(.bento-post--featured) {
        grid-column: span 1;
    }
}

/* phones (1 column): every tile is one cell */
@media (max-width: 600px) {
    .bento-grid--3 .bento-post:not(.bento-post--featured),
    .bento-grid--4 .bento-post--featured + .bento-post,
    .bento-grid--1 .bento-post--featured,
    .bento-grid--reverse.bento-grid--1 .bento-post--featured {
        grid-column: auto;
    }
    .bento-grid--2 .bento-post:not(.bento-post--featured) {
        grid-column: auto;
        grid-row: span 1;
    }
}

.bento-post a {
    position: absolute;
    inset: 0;
    display: block;
    color: inherit;
    text-decoration: none;
}

.bento-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-post:hover img {
    transform: scale(1.06);
}

.bento-caption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 1rem 1.2rem;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-post:hover .bento-caption {
    transform: translateY(-4px);
}

.bento-tag {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background-color: #ff6b4a;
    color: #fff;
    font-family: 'CF Asty Std', sans-serif;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bento-caption h3 {
    font-size: 1.2rem;
    line-height: 1.1;
    color: var(--text-primary);
}

.bento-post--featured .bento-caption {
    left: 20px;
    right: 20px;
    bottom: 20px;
    padding: 1.6rem 1.8rem;
}

.bento-post--featured .bento-caption h3 {
    font-size: 1.35rem;
}

.bento-post h3 {
    font-family: 'Cf Asty Std', sans-serif;
}


.bento-caption p {
    margin-top: 0.4rem;
    font-family: 'CF Asty Std', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* small tiles reveal their text on hover; the featured one always shows it */
.bento-post:not(.bento-post--featured) .bento-caption p {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease, opacity 0.3s ease;
}

.bento-post:not(.bento-post--featured):hover .bento-caption p {
    max-height: 4.5em;
    margin-top: 0.4rem;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 968px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 240px;
    }
    .bento-grid--reverse .bento-post--featured {
        grid-column: span 2;
    }
    /* no hover on touch: always show the text */
    .bento-post:not(.bento-post--featured) .bento-caption p {
        max-height: none;
        margin-top: 0.4rem;
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-post--featured,
    .bento-grid--reverse .bento-post--featured {
        grid-column: auto;
        grid-row: span 1;
    }
    /* the featured post looks like the other tiles on phones */
    .bento-post--featured .bento-caption {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 1rem 1.2rem;
    }
    .bento-post--featured .bento-caption h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 968px) {
    .hero-stage {
        padding: 2vh 5vw 36px;
    }
    .hero-container {
        padding: 24px 16px;
    }
    .scroll-indicator {
        display: none;
    }
    .pill {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    .for-him-section,
    .gift-section {
        padding: 80px 5vw;
    }
    .gift-content h3 {
        font-size: 1.8rem;
    }
}

/* Phones: the pinned scroll animations are switched off in script.js, so the
   hero is a normal block */
@media (max-width: 768px) {
    .header-wrapper {
        margin: 24px auto 12px;
    }
    .logo img {
        max-width: min(200px, 55vw);
    }

    /* pill dock: one swipeable row instead of several wrapped rows */
    .pill-dock {
        /* viewport-fit=cover (see the HTML) lets the page reach the screen edge
           on iPhones, so the dock keeps the same distance from the bottom
           whether the browser bar is showing or has scrolled away. It sits
           just above the home indicator (inset ~34px) instead of 34px + 12px */
        bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) - 16px));
        width: calc(100vw - 24px);
        padding: 8px;
        border-radius: 999px;
    }
    .category-pills {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0.5rem;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .category-pills::-webkit-scrollbar {
        display: none;
    }
    .pill {
        flex: 0 0 auto;
    }

    .hero-stage {
        padding: 0 16px 24px;
    }
    .hero-container {
        --radius: 28px;
    }
    .hero-title {
        font-size: clamp(1.9rem, 8vw, 2.5rem);
    }
    /* fixed 2-line height so longer categories don't make the layout jump */
    .hero-dynamic-wrapper {
        height: 2.5em;
        font-size: clamp(2.2rem, 11vw, 3.5rem);
    }
    .dynamic-text {
        font-size: inherit;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }

    .for-him-section,
    .gift-section,
    .latest-section,
    .ticket-section {
        min-height: 0;
        padding: 64px 16px;
    }
    .ticket-post a {
        padding: 12px;
    }
    .ticket-text {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    .latest-post a {
        aspect-ratio: 4 / 5;
        border-radius: 24px;
    }
    .section-2-header {
        margin-bottom: 2.25rem;
    }
    .gift-posts-container,
    .gift-posts-container-2,
    .gift-posts-container-3,
    .gift-posts-grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .gift-image-wrapper {
        height: 220px;
    }
    .gift-content {
        padding: 1.2rem 4rem 1rem 0.6rem;
    }
    .gift-content h3 {
        font-size: 1.9rem;
    }
    .gift-content::after {
        width: 40px;
        height: 40px;
        right: 0.2rem;
        bottom: 1rem;
    }

    .section-more {
        margin-top: 2.5rem;
    }
    .more-btn {
        padding: 0.9rem 1.6rem;
        font-size: 0.85rem;
    }
}

/* Touch screens: a tap leaves :hover stuck on, so skip the hover-only motion
   (tilts, unwrapping ribbon, zooms) and keep the cards still */
@media (hover: none) {
    .gift-post:hover,
    .gift-post:nth-child(even):hover,
    .budget-item a:hover,
    .ticket-post a:hover,
    .ticket-post a:hover .ticket-image img,
    .more-btn:hover,
    .pill:hover {
        transform: none;
    }
    .gift-post:hover .gift-image-wrapper::before,
    .gift-post:hover .gift-image-wrapper::after,
    .gift-post:hover .gift-image-wrapper img,
    .bento-post:hover img,
    .bento-post:hover .bento-caption,
    .budget-item a:hover .budget-thumb img {
        transform: none;
    }
    .gift-post:hover .gift-content::after,
    .budget-item a:hover::after {
        transform: none;
        background-color: transparent;
        border-color: var(--text-primary);
        color: var(--text-primary);
    }
    .more-btn:hover {
        background-color: var(--text-primary);
        border-color: var(--text-primary);
    }
    /* the bow stays tied on touch screens */
    .gift-post:hover .gift-bow {
        transform: translate(-50%, -23%) rotate(-44deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-line::after { animation: none; }
    .glow-box { animation: none; }
    .gift-post,
    .gift-image-wrapper img,
    .gift-image-wrapper::before,
    .gift-image-wrapper::after,
    .gift-bow,
    .bento-post img,
    .bento-caption,
    .bento-caption p { transition: none; }
}
/* ---------- live sections (sections.js) ---------- */
/* wrapper for "Το δώρο που δεν θα ξεχάσω": no box of its own */
.feed-mount {
    display: contents;
}

/* shown when a section's feed cannot be loaded */
.feed-message {
    grid-column: 1 / -1;
    margin: 0;
    padding: 3rem 1rem;
    font-family: 'CF Asty Std', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    color: var(--text-primary);
}
