/* Nantucket Crossing — shared styles for the inner pages
   (stationery, dining-entertaining, lifestyle-collections,
    the-pillow-collection, keepsake-blankets, contact-us) */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap");

:root {
  --gold: #b89a6e;
  --gold-light: #cdb080;
  --ink: #1a1510;
  --text: #3b342c;
  --muted: #7a6f62;
  --cream: #f7f3ec;
  --paper: #fffdf9;
  --line: rgba(26, 21, 16, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(10, 8, 6, 0.62) 0%, rgba(10, 8, 6, 0.4) 60%, rgba(10, 8, 6, 0.6) 100%),
    url("../images/lighthouse.jpg");
  background-attachment: fixed;
  background-position: 50% 0%;
  background-repeat: no-repeat;
  background-size: cover;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── Utility bar (same as landing page) ── */
.nc-topbar {
  font-family: var(--sans);
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.13);
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nc-store-info { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nc-info-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.04em; text-decoration: none; transition: color 0.2s;
}
.nc-info-item:hover { color: #fff; }
.nc-info-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.nc-info-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); flex-shrink: 0; }
.nc-cta-bar { display: flex; align-items: center; gap: 10px; }
.nc-btn {
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 9px 20px; border-radius: 2px; cursor: pointer;
  transition: all 0.2s; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
}
.nc-btn svg { width: 13px; height: 13px; }
.nc-btn-call { background: rgba(255, 255, 255, 0.1); border: 0.5px solid rgba(255, 255, 255, 0.28); color: #fff; }
.nc-btn-call:hover { background: rgba(255, 255, 255, 0.2); }
.nc-btn-directions { background: var(--gold); border: 0.5px solid var(--gold); color: var(--ink); }
.nc-btn-directions:hover { background: var(--gold-light); }

@media (min-width: 681px) and (max-width: 1180px) {
  .nc-store-info .nc-info-dot:nth-of-type(2),
  .nc-store-info a[href^="tel:"] { display: none; }
}
@media (max-width: 680px) {
  .nc-topbar { padding: 10px 20px; flex-direction: column; gap: 10px; }
  .nc-store-info { justify-content: center; gap: 14px; }
  .nc-cta-bar { justify-content: center; }
}

/* ── Logo ── */
.nc-logo-row {
  display: grid;
  grid-template-columns: 25% 50% 25%;
  padding-top: 36px;
}
.nc-logo-row .nc-logo { grid-column: 2; line-height: 0; }
.nc-logo-row .nc-logo img { width: 100%; }

/* ── Main navigation ── */
.nc-nav { padding: 26px 20px 0; text-align: center; }
.nc-nav-toggle { display: none; }
.nc-nav-button { display: none; }
.nc-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px;
}
.nc-nav a {
  display: inline-block; padding: 6px 0;
  font-size: 15px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72); text-decoration: none;
  border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.nc-nav a:hover { color: #fff; }
.nc-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }

@media (max-width: 768px) {
  .nc-logo-row { grid-template-columns: 10% 80% 10%; padding-top: 28px; }
  .nc-nav { padding-top: 18px; }
  .nc-nav-button {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
    color: #fff; padding: 10px 20px; border: 0.5px solid rgba(255, 255, 255, 0.35); border-radius: 2px;
  }
  .nc-nav-button span { display: block; width: 16px; height: 1px; background: #fff; box-shadow: 0 -5px 0 #fff, 0 5px 0 #fff; }
  .nc-nav ul { display: none; flex-direction: column; gap: 0; margin-top: 12px; background: rgba(10, 8, 6, 0.55); }
  .nc-nav-toggle:checked ~ ul { display: flex; }
  .nc-nav li + li { border-top: 0.5px solid rgba(255, 255, 255, 0.1); }
  .nc-nav a { display: block; padding: 14px 0; border-bottom: 0; }
  .nc-nav a[aria-current="page"] { color: var(--gold); }
}

/* ── Boxed, semi-transparent white panel (intro + content);
      the lighthouse photo stays fixed behind it, top to bottom ── */
.nc-panel {
  width: min(80%, 1520px);
  margin: 26px auto 0;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* ── Page intro (inside the panel) ── */
.nc-intro {
  text-align: center; color: var(--text);
  padding: 80px 40px 20px; max-width: 1100px; margin: 0 auto;
}
.nc-intro h1 {
  font-family: var(--serif); font-weight: 300; font-size: 4rem; line-height: 1.06;
  letter-spacing: 0.02em; margin: 0 0 22px; color: var(--ink);
}
.nc-intro h1::after { content: ""; display: block; width: 56px; height: 1px; background: var(--gold); margin: 22px auto 0; }
.nc-intro .nc-lead {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.6rem; line-height: 1.45; color: var(--muted); margin: 0 auto; max-width: 980px;
}
.nc-intro .nc-body {
  font-size: 1.15rem; font-weight: 300; line-height: 1.75;
  color: var(--text); margin: 22px auto 0; max-width: 900px;
}
.nc-intro .nc-eyebrow {
  display: block; font-size: 0.95rem; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}

/* ── Content area (cream panel) ── */
.nc-content { padding: 60px 40px 90px; }
.nc-wrap { max-width: 1140px; margin: 0 auto; }

/* Brand rows: image + text, alternating sides */
.nc-brand {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px;
}
.nc-brand + .nc-brand { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--line); }
.nc-brand:nth-child(even) .nc-brand-img { order: 2; }
.nc-brand-img img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 2px; box-shadow: 0 18px 40px -24px rgba(26, 21, 16, 0.45); }
.nc-brand h2 {
  font-family: var(--serif); font-weight: 400; font-size: 2.6rem; line-height: 1.1;
  color: var(--ink); margin: 0 0 16px;
}
.nc-brand h2::after { content: ""; display: block; width: 44px; height: 1px; background: var(--gold); margin-top: 18px; }
.nc-brand p { font-size: 1.08rem; font-weight: 300; line-height: 1.8; margin: 0; }

/* Product cards */
.nc-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.nc-product {
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px;
  display: flex; flex-direction: column; overflow: hidden;
}
.nc-product-img { background: #fff; display: flex; align-items: center; justify-content: center; }
.nc-product-img img { width: 100%; }
.nc-product-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.nc-product h2 { font-family: var(--serif); font-weight: 400; font-size: 1.85rem; line-height: 1.15; color: var(--ink); margin: 0; }
.nc-product p { margin: 0; font-weight: 300; line-height: 1.6; color: var(--muted); }
.nc-price { font-size: 1.35rem; font-weight: 500; color: var(--ink); letter-spacing: 0.02em; margin-top: auto !important; padding-top: 8px; }
.nc-product .nc-btn { align-self: flex-start; margin-top: 6px; }
.nc-note { text-align: center; color: var(--muted); font-weight: 300; margin: 44px 0 0; }

/* Contact page */
.nc-contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: stretch; }
.nc-contact-card { background: var(--paper); border: 1px solid var(--line); padding: 40px; }
.nc-contact-card h2 { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; color: var(--ink); margin: 0 0 24px; }
.nc-contact-card h3 {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin: 28px 0 8px;
}
.nc-contact-card h3:first-of-type { margin-top: 0; }
.nc-contact-card p { margin: 0; font-weight: 300; font-size: 1.1rem; line-height: 1.7; }
.nc-contact-card a { text-decoration: none; border-bottom: 1px solid var(--gold); }
.nc-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.nc-contact-map { min-height: 420px; border: 1px solid var(--line); background: #e9e3d8; }
.nc-contact-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* Dark buttons used on the cream panel */
.nc-btn-dark { background: var(--ink); border: 0.5px solid var(--ink); color: #fff; }
.nc-btn-dark:hover { background: #3a3027; }
.nc-btn-outline { background: transparent; border: 0.5px solid var(--ink); color: var(--ink); }
.nc-btn-outline:hover { background: rgba(26, 21, 16, 0.06); }

/* ── Footer ── */
.nc-footer {
  width: min(80%, 1520px); margin: 0 auto 40px;
  background: rgba(20, 16, 12, 0.88); color: rgba(255, 255, 255, 0.7); padding: 60px 40px 30px;
}
.nc-footer-grid { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.nc-footer h3 {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 14px;
}
.nc-footer p { margin: 0; font-weight: 300; line-height: 1.8; }
.nc-footer a { text-decoration: none; color: rgba(255, 255, 255, 0.85); }
.nc-footer a:hover { color: #fff; }
.nc-copyright {
  max-width: 1140px; margin: 44px auto 0; padding-top: 22px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem; font-weight: 300; color: rgba(255, 255, 255, 0.45); text-align: center;
}

/* ── Tablet / phone ── */
@media (max-width: 900px) {
  .nc-brand { grid-template-columns: 1fr; gap: 28px; }
  .nc-brand:nth-child(even) .nc-brand-img { order: 0; }
  .nc-brand + .nc-brand { margin-top: 52px; padding-top: 52px; }
  .nc-contact { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .nc-panel, .nc-footer { width: auto; margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 768px) {
  .nc-panel { margin: 20px 12px 0; }
  .nc-footer { margin: 0 12px 12px; padding: 44px 20px 24px; }
  .nc-intro { padding: 44px 20px 10px; }
  .nc-intro h1 { font-size: 2.9rem; }
  .nc-intro .nc-lead { font-size: 1.3rem; }
  .nc-intro .nc-body { font-size: 1.02rem; }
  .nc-content { padding: 40px 18px 56px; }
  .nc-brand h2 { font-size: 2.1rem; }
  .nc-products { grid-template-columns: 1fr; }
  .nc-contact-card { padding: 28px 24px; }
  .nc-footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
}


/* =====================================================================
   Home page hero  ([nc_section file="home"])
   ===================================================================== */
.nc-hero-wrap { font-family: var(--sans); width: 100%; margin-top: 40px; position: relative; }
.nc-hero-content {
  text-align: center; padding: 40px 40px 80px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.nc-hero-eyebrow {
  font-size: 1.35rem; font-weight: 400; line-height: 1.4; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}
.nc-hero-tagline {
  font-family: var(--serif); font-size: 1.475rem; font-weight: 600; line-height: 1.4;
  letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.52);
}
.nc-hero-wrap h1.nc-hero-headline {
  font-family: var(--serif); font-size: 5.25rem; font-weight: 300; line-height: 1.06;
  color: #fff; letter-spacing: 0.02em; margin: 8px 0 0; padding: 0;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.22);
}
.nc-hero-wrap h1.nc-hero-headline em { font-style: italic; font-weight: 300; }
.nc-hero-sub {
  font-size: 1.25rem; font-weight: 300; color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em; max-width: 560px; line-height: 1.7; margin: 0;
}
.nc-occasions { display: flex; align-items: center; gap: 20px; margin-top: 4px; flex-wrap: wrap; justify-content: center; }
.nc-occasions .nc-occasion {
  font-size: 1.25rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52); text-decoration: none; transition: color 0.2s;
}
.nc-occasions .nc-occasion:hover { color: rgba(255, 255, 255, 0.92); }
.nc-occasions .nc-occasion:not([href]) { cursor: default; }
.nc-occasion-sep { font-size: 1.25rem; color: rgba(255, 255, 255, 0.2); line-height: 1; }
.nc-hero-ctas { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.nc-hero-wrap a.nc-btn-lg {
  font-size: 1.125rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 16px 36px; border-radius: 2px; transition: all 0.2s; text-decoration: none;
  display: inline-block; line-height: 1;
}
.nc-hero-wrap a.nc-btn-lg-primary,
.nc-hero-wrap a.nc-btn-lg-primary:hover { color: var(--ink); }
.nc-hero-wrap a.nc-btn-lg-primary { background: var(--gold); border: 1px solid var(--gold); }
.nc-hero-wrap a.nc-btn-lg-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.nc-hero-wrap a.nc-btn-lg-ghost,
.nc-hero-wrap a.nc-btn-lg-ghost:hover { color: #fff; }
.nc-hero-wrap a.nc-btn-lg-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.38); }
.nc-hero-wrap a.nc-btn-lg-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }

@media (max-width: 768px) {
  .nc-hero-wrap { margin-top: 20px; }
  .nc-hero-wrap h1.nc-hero-headline { font-size: 3rem; }
  .nc-hero-eyebrow, .nc-hero-tagline, .nc-hero-sub,
  .nc-occasions .nc-occasion, .nc-occasion-sep { font-size: 1rem; }
  .nc-hero-content { padding: 32px 24px 60px; }
  .nc-hero-ctas { flex-direction: column; align-items: stretch; width: 100%; gap: 10px; }
  .nc-hero-wrap a.nc-btn-lg { font-size: 1rem; width: 100%; text-align: center; }
}

/* =====================================================================
   WordPress / Hello Elementor fixes
   Hello's reset colours every link on hover (#336); keep ours.
   ===================================================================== */
.nc-btn-call:hover, .nc-btn-call:focus { color: #fff; }
.nc-btn-directions:hover, .nc-btn-directions:focus { color: var(--ink); }
.nc-btn-dark:hover, .nc-btn-dark:focus { color: #fff; }
.nc-btn-outline:hover, .nc-btn-outline:focus { color: var(--ink); }
.nc-contact-card a:hover, .nc-contact-card a:focus { color: var(--ink); }
.nc-logo:hover, .nc-logo:focus { color: inherit; }
.nc-panel h1, .nc-panel h2, .nc-panel h3 { text-transform: none; }

/* Elementor: let the Shortcode widget run edge to edge */
.elementor-widget-shortcode .elementor-shortcode { width: 100%; }


/* =====================================================================
   Home: welcome + image tiles  ([nc_section file="home-welcome"])
   Hover/focus: a color panel wipes in diagonally and the title fades up.
   ===================================================================== */
:root {
  --nc-tile-overlay: rgba(184, 154, 110, 0.88);   /* gold; change to any color */
  --nc-tile-title: #1a1510;
}

.nc-welcome { width: min(96%, 1840px); margin: 0 auto; padding: 60px 0 80px; }
.nc-welcome-intro { text-align: center; max-width: 1400px; margin: 0 auto 56px; padding: 0 20px; color: #fff; }
.nc-welcome-intro h2 {
  font-family: var(--serif); font-weight: 300; font-size: 3.4rem; line-height: 1.1;
  letter-spacing: 0.02em; color: #fff; margin: 0 0 22px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}
.nc-welcome-intro p {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.55rem; line-height: 1.5; color: rgba(255, 255, 255, 0.9); margin: 0;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.nc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nc-tile {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 1000 / 766; text-decoration: none; background: var(--ink);
}
.nc-tile img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s ease;
}
.nc-tile-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: var(--nc-tile-overlay);
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);           /* hidden: zero width at left */
  transition: clip-path 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}
.nc-tile-title {
  font-family: var(--sans); font-weight: 400; font-size: 1.9rem; line-height: 1.25;
  letter-spacing: 0.02em; color: var(--nc-tile-title); text-align: center;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.35s ease 0.15s, transform 0.35s ease 0.15s;
}
.nc-tile:hover .nc-tile-overlay,
.nc-tile:focus-visible .nc-tile-overlay {
  clip-path: polygon(0 0, 140% 0, 100% 100%, -40% 100%);   /* diagonal wipe to full cover */
}
.nc-tile:hover .nc-tile-title,
.nc-tile:focus-visible .nc-tile-title { opacity: 1; transform: none; }
.nc-tile:hover img, .nc-tile:focus-visible img { transform: scale(1.05); }
.nc-tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.nc-tile:hover, .nc-tile:focus { color: inherit; }

/* Touch screens have no hover: always show the title on a band at the bottom */
@media (hover: none) {
  .nc-tile-overlay {
    clip-path: none; inset: auto 0 0 0; padding: 14px 16px;
    background: linear-gradient(0deg, var(--nc-tile-overlay), var(--nc-tile-overlay));
  }
  .nc-tile-title { opacity: 1; transform: none; font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nc-tile img, .nc-tile-overlay, .nc-tile-title { transition: none; }
}

@media (max-width: 1100px) {
  .nc-tile-title { font-size: 1.45rem; }
}
@media (max-width: 768px) {
  .nc-welcome { width: auto; margin: 0 12px; padding: 40px 0 50px; }
  .nc-welcome-intro { margin-bottom: 32px; padding: 0; }
  .nc-welcome-intro h2 { font-size: 2.3rem; }
  .nc-welcome-intro p { font-size: 1.2rem; }
  .nc-tiles { grid-template-columns: 1fr; gap: 12px; }
}

/* =====================================================================
   Home: brand logo grid  ([nc_section file="home-brands"])
   Full-width semi-transparent white band. Hover, keyboard focus or tap a
   logo and the card flips left to right to show its description.
   ===================================================================== */
.nc-panel.nc-brands {
  width: 100%; margin: 0 0 60px;               /* full width (overrides the boxed .nc-panel) */
  padding: 64px 48px 72px;
}
.nc-brands-title {
  font-family: var(--serif); font-weight: 300; font-size: 2.8rem; line-height: 1.1;
  text-align: center; color: var(--ink); margin: 0 0 44px;
}
.nc-brands-title::after { content: ""; display: block; width: 56px; height: 1px; background: var(--gold); margin: 20px auto 0; }

.nc-logos {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 40px;
  max-width: 1800px; margin: 0 auto;
}

/* Card = 3D stage; .nc-flip turns; two faces back to back */
.nc-logo-card { aspect-ratio: 3 / 2; perspective: 1200px; outline: none; cursor: default; }
.nc-flip {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.nc-face {
  position: absolute; inset: 0;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.nc-front { display: flex; align-items: center; justify-content: center; }
.nc-front img { width: 100%; max-width: 300px; height: auto; opacity: 0.8; }
.nc-back {
  transform: rotateY(180deg);
  background: #fff; box-shadow: 0 16px 36px -18px rgba(26, 21, 16, 0.45);
  padding: 18px 22px; overflow: auto;
  display: flex; flex-direction: column; justify-content: center;
}
.nc-back h3 {
  font-family: var(--sans); font-size: 1.05rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink); margin: 0 0 8px;
}
.nc-back p { font-size: 0.95rem; font-weight: 300; line-height: 1.55; color: var(--text); margin: 0; }

/* Flip left to right (positive rotateY moves the left edge across to the right) */
.nc-logo-card:hover .nc-flip,
.nc-logo-card:focus .nc-flip,
.nc-logo-card:focus-within .nc-flip { transform: rotateY(180deg); }
.nc-logo-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }

/* No motion preference: swap faces with a fade instead of flipping */
@media (prefers-reduced-motion: reduce) {
  .nc-flip { transition: none; transform: none !important; }
  .nc-back { transform: none; opacity: 0; transition: opacity 0.2s; }
  .nc-logo-card:hover .nc-back, .nc-logo-card:focus .nc-back { opacity: 1; }
}

/* Columns: 4 from 1400px, 3 from 900px, 2 below (each card stays big enough for its text) */
@media (max-width: 1399px) {
  .nc-logos { grid-template-columns: repeat(3, 1fr); gap: 24px 28px; }
}
@media (max-width: 899px) {
  .nc-logos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  .nc-panel.nc-brands { padding: 52px 32px 60px; }
  .nc-back { padding: 14px 16px; }
  .nc-back p { font-size: 0.88rem; line-height: 1.45; }
}
@media (max-width: 768px) {
  .nc-logos { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .nc-panel.nc-brands { margin: 0 0 20px; padding: 40px 14px 44px; }
  .nc-brands-title { font-size: 2.2rem; margin-bottom: 30px; }
  .nc-logo-card { aspect-ratio: 4 / 5; }       /* taller cards so the text fits on the back */
  .nc-back { padding: 12px; }
  .nc-back h3 { font-size: 0.8rem; margin-bottom: 4px; }
  .nc-back p { font-size: 0.78rem; line-height: 1.4; }
}