/* ============================================================
   Nishi Media — Luxury Meets Innovation
   Global stylesheet (pure CSS, no build step).
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --black: #000000;
  --bg: #000000;
  --fg: #ffffff;
  --rose: #C2959C;
  --muted: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --serif: "Cormorant Garamond", "Times New Roman", Times, serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --overline: "Josefin Sans", "DM Sans", sans-serif;
  --max: 1400px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

::selection {
  background: var(--rose);
  color: #000;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1;
}

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-120%);
  background: var(--rose);
  color: #000;
  padding: 0.75rem 1.25rem;
  font-family: var(--overline);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  z-index: 200;
  transition: transform 0.25s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--rose);
  z-index: 60;
  transition: width 0.1s linear;
}

/* Grain overlay */
.grain {
  position: relative;
}

.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/></svg>");
  z-index: 2;
}

/* Typography helpers */
.font-serif {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
}

.font-overline {
  font-family: var(--overline);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 500;
}

.rose {
  color: var(--rose);
}

.italic {
  font-style: italic;
}

em.rose-em {
  color: var(--rose);
  font-style: normal;
  font-weight: 400;
}

.divider {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--rose);
  vertical-align: middle;
  margin-right: 1rem;
}

/* Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 900px) {
  .container {
    padding: 0 3rem;
  }
}

.section {
  padding: 6rem 0;
}

.section-lg {
  padding: 8rem 0;
}

.section-xl {
  padding: 10rem 0;
}

.section-tight {
  padding: 4rem 0;
}

.border-t {
  border-top: 1px solid var(--line);
}

.border-b {
  border-bottom: 1px solid var(--line);
}

/* Buttons */
.btn-lux {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  border: 1px solid rgba(194, 149, 156, 0.5);
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-family: var(--overline);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  overflow: hidden;
  transition: color 0.5s ease, border-color 0.5s ease;
  z-index: 0;
}

.btn-lux::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--rose);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
  z-index: -1;
}

.btn-lux:hover::before,
.btn-lux:focus-visible::before {
  transform: translateY(0);
}

.btn-lux:hover,
.btn-lux:focus-visible {
  color: #000;
  border-color: var(--rose);
}

.btn-lux[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--rose);
  font-family: var(--overline);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  transition: gap 0.4s ease;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  gap: 1rem;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
}

.nav.scrolled {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 900px) {
  .nav-inner {
    padding: 1.25rem 3rem;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-text {
  font-family: var(--serif);
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .brand-text {
    display: none;
  }
}

.nav-links {
  display: none;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  position: relative;
  font-family: var(--overline);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--rose);
  transition: width 0.45s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: none;
}

@media (min-width: 900px) {
  .nav-cta {
    display: inline-flex;
  }
}

.mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
}

@media (min-width: 900px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 45;
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
  border-bottom: 1px solid var(--line);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu a {
  font-family: var(--serif);
  font-size: 2rem;
  color: #fff;
}

.mobile-menu a.active {
  color: var(--rose);
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2.5rem;
  padding: 2rem;
  transform: translateY(0);
  transition: transform 0.9s var(--ease);
}

.loader.exit {
  transform: translateY(-100%);
}

.loader .corner-tl,
.loader .corner-tr,
.loader .corner-bc {
  position: absolute;
  font-family: var(--overline);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
}

.loader .corner-tl {
  top: 2rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.loader .corner-tl::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--rose);
}

.loader .corner-tr {
  top: 2rem;
  right: 2rem;
}

.loader .corner-bc {
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.4);
}

.loader img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: 0;
  animation: fadeIn 1s var(--ease) forwards;
}

.loader h1 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.75rem;
  text-align: center;
  opacity: 0;
  animation: fadeIn 1s 0.35s var(--ease) forwards;
}

@media (min-width: 640px) {
  .loader h1 {
    font-size: 2.25rem;
  }
}

.loader .bar-wrap {
  width: 100%;
  max-width: 24rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.loader .bar {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.loader .bar-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--rose), #fff, var(--rose));
}

.loader .bar-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--overline);
  font-size: 0.72rem;
}

.loader .bar-meta .label {
  color: rgba(255, 255, 255, 0.5);
}

.loader .bar-meta .count {
  color: var(--rose);
  font-variant-numeric: tabular-nums;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0a0a0a;
  /* Fallback: shows immediately before JS/fonts load */
}

.hero-canvas {
  position: absolute;
  inset: 0;
}

.hero-canvas canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 1));
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-eyebrow {
  color: var(--rose);
  font-family: var(--overline);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  margin-bottom: 1.5rem;
}

.hero h1.title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 8vw, 7rem);
  line-height: 0.95;
  max-width: 900px;
}

.hero p.subtitle {
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2rem;
  font-size: 1.125rem;
}

.hero .cta-row {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.hero .scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 1.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--overline);
  font-size: 0.7rem;
}

.hero .scroll-hint::before {
  content: "";
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
}

@media (min-width: 900px) {
  .hero .scroll-hint {
    left: 3rem;
  }
}

/* Section headings */
.eyebrow {
  color: var(--rose);
  font-family: var(--overline);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
}

/* Grid utilities */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-12 {
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.col-4 {
  grid-column: span 4;
}

.col-5 {
  grid-column: span 5;
}

.col-6 {
  grid-column: span 6;
}

.col-7 {
  grid-column: span 7;
}

.col-8 {
  grid-column: span 8;
}

@media (max-width: 900px) {

  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8 {
    grid-column: span 12;
  }
}

/* Bento grid (for service teasers) */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .bento {
    grid-template-columns: 1fr;
  }
}

/* Bento column variant classes (replaces inline grid-template-columns) */
.bento-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.bento-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.bento-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {

  .bento-cols-3,
  .bento-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {

  .bento-cols-2,
  .bento-cols-3,
  .bento-cols-4 {
    grid-template-columns: 1fr;
  }
}


.bento .cell {
  background: #000;
  padding: 2.5rem;
  min-height: 280px;
  transition: transform 0.6s var(--ease);
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.bento .cell:hover {
  transform: translateY(-6px);
  border-color: rgba(194, 149, 156, 0.5);
}

.bento .cell-num {
  font-family: var(--overline);
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
}

.bento .cell h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.bento .cell:hover h3 {
  color: var(--rose);
}

.bento .cell p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 0;
}

.bento .cell .cta {
  margin-top: auto;
  padding-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--overline);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

.bento .cell:hover .cta {
  color: var(--rose);
}

/* Studio image band */
.image-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.7s var(--ease);
}

.image-frame:hover img {
  filter: grayscale(0);
}

.image-frame .caption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  font-family: var(--overline);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  z-index: 2;
}

.image-frame .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.aspect-4-5 {
  aspect-ratio: 4 / 5;
}

.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

.aspect-16-10 {
  aspect-ratio: 16 / 10;
}

/* CTA band */
.cta-band {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: 10rem 1.5rem;
}

.cta-band .glow {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background: radial-gradient(ellipse at 30% 40%, rgba(194, 149, 156, 0.28) 0%, transparent 60%);
}

.cta-band .inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}

.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 0.95;
}

/* Marquee */
.marquee-section {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.marquee-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.marquee-header p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  max-width: 20rem;
  text-align: right;
  margin: 0;
}

@media (max-width: 640px) {
  .marquee-header p {
    display: none;
  }
}

.marquee-track-wrap {
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@media (max-width: 640px) {
  .marquee-track {
    gap: 1.5rem;
    animation-duration: 30s;
  }
}

.marquee-cell {
  flex: 0 0 auto;
  width: 10rem;
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}

.marquee-cell img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.marquee-cell .text {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* Accordion */
.accordion {
  border-top: 1px solid var(--line-strong);
}

.accordion-item {
  border-bottom: 1px solid var(--line-strong);
}

.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.25rem 0;
  background: transparent;
  color: #fff;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease;
}

.accordion-btn .left {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .accordion-btn .left {
    gap: 2.5rem;
  }
}

.accordion-btn .num {
  font-family: var(--overline);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.4);
}

.accordion-btn .name {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 300;
}

.accordion-btn:hover .name,
.accordion-btn:focus-visible .name {
  color: var(--rose);
}

.accordion-btn .icon {
  color: var(--rose);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.4s var(--ease);
}

.accordion-item.open .accordion-btn .icon {
  transform: rotate(45deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease);
}

.accordion-item.open .accordion-panel {
  max-height: 900px;
}

.accordion-content {
  padding: 0 0 3rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .accordion-content {
    grid-template-columns: 1fr;
  }
}

.accordion-content .value {
  grid-column: 2 / span 5;
}

@media (max-width: 900px) {
  .accordion-content .value {
    grid-column: 1;
  }
}

.accordion-content .media {
  grid-column: span 5;
}

@media (max-width: 900px) {
  .accordion-content .media {
    grid-column: 1;
  }
}

.accordion-content h4 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  font-weight: 300;
}

.accordion-content p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 1.5rem;
}

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
}

.field-full {
  grid-column: 1 / -1;
}

.input-lux,
.select-lux,
.textarea-lux {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: #fff;
  padding: 1rem 0;
  font-family: var(--sans);
  font-size: 1rem;
  outline: none;
  border-radius: 0;
  transition: border-color 0.4s ease;
}

.select-lux {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23C2959C' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 2rem;
}

.select-lux option {
  background: #000;
}

.textarea-lux {
  resize: none;
  min-height: 8rem;
}

.input-lux::placeholder,
.textarea-lux::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--overline);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
}

.input-lux:focus,
.select-lux:focus,
.textarea-lux:focus {
  border-color: var(--rose);
}

.field label {
  font-family: var(--overline);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.5rem;
}

.field .error {
  color: var(--rose);
  font-size: 0.75rem;
  margin-top: 0.5rem;
  min-height: 1em;
}

.field.invalid .input-lux,
.field.invalid .textarea-lux {
  border-color: var(--rose);
}

/* Honeypot — must be invisible to users and inaccessible to assistive tech */
.honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  grid-column: 1 / -1;
}

.contact-actions .disclaimer {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  max-width: 24rem;
}

.map-frame iframe {
  width: 100%;
  height: 280px;
  border: 0;
  filter: invert(0.92) hue-rotate(180deg);
}

/* Footer */
.footer {
  padding: 6rem 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-brand {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: 1;
  }
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 28rem;
  margin: 1.5rem 0 0;
}

.footer h4 {
  font-family: var(--overline);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 1.5rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer li a,
.footer li span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer li a:hover,
.footer li a:focus-visible {
  color: var(--rose);
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
  color: var(--rose);
  border-color: var(--rose);
}

.footer-bottom {
  max-width: var(--max);
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Toasts */
.toast-region {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: calc(100% - 3rem);
}

.toast {
  background: #0a0a0a;
  border: 1px solid var(--line-strong);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  min-width: 20rem;
  max-width: 24rem;
  transform: translateX(120%);
  transition: transform 0.5s var(--ease);
}

.toast.show {
  transform: translateX(0);
}

.toast .toast-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
  color: #fff;
}

.toast .toast-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  margin: 0;
  word-break: break-word;
}

.toast .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.4rem;
  background: var(--rose);
  flex-shrink: 0;
}

.toast.error .dot {
  background: #ff8a8a;
}

.toast.success .dot {
  background: #85e6a9;
}

/* Utility helpers */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mt-14 {
  margin-top: 3.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.max-w-2 {
  max-width: 32rem;
}

.max-w-4 {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.max-w-5 {
  max-width: 64rem;
}

.hero-pad {
  padding-top: 8rem;
  padding-bottom: 6rem;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-list li svg {
  flex-shrink: 0;
  color: var(--rose);
  margin-top: 4px;
}

.info-list li .label {
  font-family: var(--overline);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.4);
}

.info-list li .value {
  color: rgba(255, 255, 255, 0.85);
}

.info-list li a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}

.info-list li a:hover,
.info-list li a:focus-visible {
  color: var(--rose);
}

/* ============================================================
   RESPONSIVE POLISH — Mobile phones, Tablets, iPads
   Breakpoints:
     ≤ 400px  — very small phones (iPhone SE, small Androids)
     ≤ 639px  — phones (iPhone 15, Pixel, Galaxy S-series)
     640–899px — tablets portrait (iPad Mini, small Android tabs)
     900–1199px — iPad landscape / large tablets
   ============================================================ */

/* ── iOS notch / Dynamic Island / Android safe-area ── */
.nav-inner {
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
}

@media (min-width: 900px) {
  .nav-inner {
    padding-left: max(3rem, env(safe-area-inset-left));
    padding-right: max(3rem, env(safe-area-inset-right));
  }
}

.footer {
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
}

.mobile-menu {
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
  padding-left: max(2rem, env(safe-area-inset-left));
  padding-right: max(2rem, env(safe-area-inset-right));
}

.toast-region {
  padding-bottom: env(safe-area-inset-bottom);
}

/* ── Touch devices: larger tap targets, no hover quirks ── */
@media (hover: none) and (pointer: coarse) {

  /* Minimum 44×44 tap targets (Apple / Material guidelines) */
  .btn-lux,
  .btn-ghost,
  .nav-link,
  .mobile-toggle,
  .accordion-btn {
    min-height: 44px;
  }

  .footer-socials a {
    width: 44px;
    height: 44px;
  }

  /* Remove hover lift on touch (causes stuck state on iOS) */
  .bento .cell:hover {
    transform: none;
    border-color: transparent;
  }

  .bento .cell:hover h3 {
    color: inherit;
  }

  /* Use :active for touch feedback instead */
  .bento .cell:active {
    transform: translateY(-4px);
    border-color: rgba(194, 149, 156, 0.4);
  }

  /* Marquee: don't pause on touch (hover pause doesn't work on touch anyway) */
  .marquee-track:hover {
    animation-play-state: running;
  }

  /* Image frame: keep slight grayscale on touch (no hover reveal) */
  .image-frame:hover img {
    filter: grayscale(20%);
  }

  /* btn-ghost: fix stuck gap on touch */
  .btn-ghost:hover {
    gap: 0.5rem;
  }
}

/* ── iPad landscape & large tablets: 900px – 1199px ── */
@media (min-width: 900px) and (max-width: 1199px) {
  .container {
    padding: 0 2rem;
  }

  .nav-inner {
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
  }

  /* 3-col bento → 2-col on smaller iPads */
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Process / journey / philosophy 4-col → 2-col */
  .bento[style*="repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .bento[style*="repeat(3"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Accordion layout: tighten col gap */
  .accordion-content {
    gap: 1.5rem;
  }

  .section-lg {
    padding: 6rem 0;
  }
}

/* ── Tablets portrait: 640px – 899px ── */
@media (min-width: 640px) and (max-width: 899px) {

  /* Sections */
  .section {
    padding: 5rem 0;
  }

  .section-lg {
    padding: 6rem 0;
  }

  .section-xl {
    padding: 7rem 0;
  }

  .cta-band {
    padding: 7rem 1.5rem;
  }

  /* Footer: 2-column on tablets */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* Override inline bento styles for tablets: 2-col */
  .bento {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Accordion content already collapses at 900px, fine */

  /* Contact: info + form layout */
  .map-frame iframe {
    height: 240px;
  }

  /* Toast: full-width on tablet portrait */
  .toast {
    min-width: unset;
    max-width: calc(100vw - 3rem);
  }
}

/* ── Mobile phones: ≤ 639px ── */
@media (max-width: 639px) {

  /* Container: slightly tighter padding on phones */
  .container {
    padding: 0 1.25rem;
  }

  /* Sections: shrink vertical breathing room */
  .section {
    padding: 3.5rem 0;
  }

  .section-lg {
    padding: 4.5rem 0;
  }

  .section-xl {
    padding: 5.5rem 0;
  }

  .section-tight {
    padding: 2.5rem 0;
  }

  /* Nav: tighter on phones */
  .nav-inner {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }

  /* Hero: reduce the generous padding */
  .hero-pad {
    padding-top: 6rem;
    padding-bottom: 3.5rem;
  }

  /* Hero CTA row: stack buttons vertically on phones */
  .hero .cta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero .cta-row .btn-lux,
  .hero .cta-row .btn-ghost {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  /* Hero scroll hint: move inward */
  .hero .scroll-hint {
    bottom: 1.25rem;
    left: 1.25rem;
  }

  /* Bento cells: compact on phones */
  .bento .cell {
    padding: 2rem 1.5rem;
    min-height: 200px;
  }

  /* Bento inline overrides: always 1-col on phones */
  .bento {
    grid-template-columns: 1fr !important;
  }

  /* Grid: reduce gap on phones */
  .grid-12 {
    gap: 1.5rem;
  }

  /* CTA band: less vertical padding */
  .cta-band {
    padding: 5rem 1.25rem;
  }

  .cta-band h2 {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  /* Section titles: tighter on small screens */
  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  /* Footer: tighter padding */
  .footer {
    padding-top: 4rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .footer-grid {
    gap: 2rem;
  }

  /* Footer brand: reduce margin */
  .footer-brand p {
    margin-top: 1rem;
  }

  /* Marquee: smaller cells on phones */
  .marquee-section {
    padding: 3.5rem 0;
  }

  .marquee-cell {
    width: 8rem;
    height: 8rem;
  }

  /* Marquee header: stack on phones */
  .marquee-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  /* Map iframe: shorter on phones */
  .map-frame iframe {
    height: 220px;
  }

  /* Contact actions: stack on phones */
  .contact-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 1.25rem;
  }

  .contact-actions .btn-lux {
    width: 100%;
    justify-content: center;
  }

  .contact-actions .disclaimer {
    max-width: 100%;
  }

  /* Info list: tighter on phones */
  .info-list {
    gap: 1.25rem;
  }

  /* Toast: full-width on phones */
  .toast-region {
    left: 1rem;
    right: 1rem;
    max-width: 100%;
  }

  .toast {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }

  /* Loader: reduce text size */
  .loader h1 {
    font-size: 1.5rem;
  }

  .loader .bar-wrap {
    max-width: 18rem;
  }

  /* Mobile menu: tighter links */
  .mobile-menu a {
    font-size: 1.75rem;
  }

  /* Accordion: slightly smaller service names on phones */
  .accordion-btn .name {
    font-size: clamp(1.25rem, 5.5vw, 2rem);
  }

  .accordion-btn {
    padding: 1.75rem 0;
  }

  /* Accordion content: remove offset column */
  .accordion-content .value {
    grid-column: 1;
  }

  .accordion-content .media {
    grid-column: 1;
  }

  /* Image frame: aspect ratio stays, but full width is fine */
  .aspect-4-5 {
    aspect-ratio: 4 / 3;
  }

  /* Hero eyebrow: tighter */
  .hero-eyebrow {
    margin-bottom: 1rem;
  }

  /* Footer socials: slightly more space */
  .footer-socials {
    gap: 0.75rem;
  }

  /* Scroll progress: slightly thicker for visibility */
  .scroll-progress {
    height: 2.5px;
  }
}

/* ── Very small phones: ≤ 400px (iPhone SE, small Androids) ── */
@media (max-width: 400px) {
  .container {
    padding: 0 1rem;
  }

  /* Hero: even tighter */
  .hero-pad {
    padding-top: 5.5rem;
    padding-bottom: 3rem;
  }

  /* Bento cells: compact */
  .bento .cell {
    padding: 1.5rem 1.25rem;
    min-height: 180px;
  }

  /* Buttons: slightly smaller on tiny screens */
  .btn-lux {
    padding: 0.8rem 1.5rem;
    font-size: 0.7rem;
  }

  /* Loader: tightest */
  .loader h1 {
    font-size: 1.3rem;
  }

  .loader img {
    width: 72px;
    height: 72px;
  }

  /* CTA band */
  .cta-band {
    padding: 4rem 1rem;
  }

  /* Nav brand text: hide on very small */
  .brand-text {
    display: none;
  }

  /* Brand: logo only on very small */
  .brand img {
    width: 34px;
    height: 34px;
  }

  /* Mobile menu: tighter links */
  .mobile-menu a {
    font-size: 1.5rem;
  }

  /* Section title: minimum readable size */
  .section-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  /* Accordion name */
  .accordion-btn .name {
    font-size: clamp(1.1rem, 6vw, 1.5rem);
  }

  /* Footer: minimal padding */
  .footer {
    padding-top: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ============================================================
   CONTACT PAGE — Dedicated responsive styles
   ============================================================ */

/* Base: replaces removed inline styles */
.contact-page-main {
  padding-top: 8rem;
}

.contact-grid {
  gap: 4rem;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* Contact hero subtitle: allow scaling on small screens */
.contact-page-main .section p[style*="font-size:1.125rem"] {
  font-size: clamp(0.95rem, 2.5vw, 1.125rem);
}

/* Touch: make form inputs taller for easier tapping */
@media (hover: none) and (pointer: coarse) {

  .input-lux,
  .select-lux,
  .textarea-lux {
    padding: 1.1rem 0;
    font-size: 1rem;
    /* prevent iOS auto-zoom (must be ≥ 16px) */
  }

  /* Prevent iOS zoom on focus (font-size must be 16px minimum) */
  .input-lux::placeholder,
  .textarea-lux::placeholder {
    font-size: 0.8rem;
  }
}

/* ── iPad landscape: 900–1199px ── */
@media (min-width: 900px) and (max-width: 1199px) {
  .contact-grid {
    gap: 2.5rem;
  }

  .contact-info-col {
    gap: 2.5rem;
  }

  .map-frame iframe {
    height: 240px;
  }
}

/* ── Tablet portrait: 640–899px ── */
@media (min-width: 640px) and (max-width: 899px) {

  /* Main padding: nav is shorter */
  .contact-page-main {
    padding-top: 7rem;
  }

  /* Contact grid: single column, but form comes FIRST on tablets */
  .contact-grid {
    gap: 3rem;
    display: flex;
    flex-direction: column;
  }

  /* Form first → order: 1; Info after → order: 2 */
  .contact-form-col {
    order: 1;
  }

  .contact-info-col {
    order: 2;
    gap: 2.5rem;
    flex-direction: row;
    /* info + map side-by-side on tablets */
    flex-wrap: wrap;
    align-items: flex-start;
  }

  /* Info block takes ~55%, map takes ~40% */
  .contact-info-col>.reveal:first-child {
    flex: 1 1 55%;
    min-width: 260px;
  }

  .contact-info-col>.reveal.map-frame {
    flex: 1 1 40%;
    min-width: 220px;
  }

  .map-frame iframe {
    height: 260px;
  }

  /* Form grid: keep 2-col on tablets */
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Contact actions: side by side on tablets */
  .contact-actions {
    flex-direction: row;
    align-items: center;
  }
}

/* ── Mobile phones: ≤ 639px ── */
@media (max-width: 639px) {

  /* Main: reduce top padding for nav height on phones */
  .contact-page-main {
    padding-top: 5.5rem;
  }

  /* Contact grid: single column, form FIRST */
  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  .contact-form-col {
    order: 1;
    /* Form appears first on mobile */
  }

  .contact-info-col {
    order: 2;
    /* Contact info appears second on mobile */
    gap: 2rem;
  }

  /* Info list: larger tap targets for phone/email links */
  .info-list li a {
    display: inline-block;
    padding: 0.3rem 0;
    min-height: 44px;
    line-height: 44px;
  }

  /* Map: hide on phones to reduce scroll length — show info only */
  .contact-info-col .map-frame {
    display: none;
  }

  /* Form inputs: must be 16px+ to prevent iOS auto-zoom */
  .input-lux,
  .select-lux,
  .textarea-lux {
    font-size: 1rem;
    padding: 1rem 0;
  }

  /* Textarea: shorter on phones */
  .textarea-lux {
    min-height: 7rem;
  }

  /* Contact actions: full column, send button full width */
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .contact-actions .btn-lux {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 0.72rem;
  }

  .contact-actions .disclaimer {
    max-width: 100%;
    font-size: 0.7rem;
    order: 2;
    /* disclaimer below button on phones */
  }

  /* Form grid: single column */
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Social icons: bigger touch targets */
  .contact-info-col .footer-socials a {
    width: 44px;
    height: 44px;
  }

  /* Eyebrow: reduce margin */
  .contact-info-col .eyebrow {
    margin-bottom: 1rem;
  }

  /* Hero section on contact page: compact */
  .contact-page-main .section.grain {
    padding: 2.5rem 0 3rem;
  }

  /* Hero heading: slightly smaller on phones */
  .contact-page-main h1.font-serif {
    font-size: clamp(2rem, 8vw, 3rem) !important;
  }

  /* Hero subtitle */
  .contact-page-main .section>.container>p {
    font-size: 0.95rem;
    margin-top: 1.5rem;
  }
}

/* ── Very small phones: ≤ 400px ── */
@media (max-width: 400px) {
  .contact-page-main {
    padding-top: 5rem;
  }

  .contact-grid {
    gap: 2rem;
  }

  .contact-info-col {
    gap: 1.5rem;
  }

  .contact-actions .btn-lux {
    font-size: 0.68rem;
    padding: 0.85rem 1.25rem;
  }

  .contact-page-main h1.font-serif {
    font-size: clamp(1.85rem, 9vw, 2.5rem) !important;
  }
}