/* ============================================================
   Michelle Arborelius — MedTech Design & Communication
   Editorial watercolor system · 2026 redesign
   ============================================================ */

:root {
  color-scheme: light;

  --paper: #f6f1e8;
  --paper-2: #efe8da;
  --cream: #fdfaf3;
  --ink: #182830;
  --ink-2: #46565f;
  --mute: #7d8a92;
  --wash: #56788e;
  --wash-deep: #2e4d5e;
  --line: rgba(24, 40, 48, 0.13);

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Outfit", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --syne: "Syne", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 16px 40px -20px rgba(46, 77, 94, 0.26);
  --radius-lg: 1.75rem;

  --head-h: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--head-h);
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 30%, rgba(86, 120, 142, 0.1), transparent 24rem),
    radial-gradient(circle at 92% 70%, rgba(176, 138, 90, 0.09), transparent 20rem),
    linear-gradient(180deg, #fbf7ef 0%, var(--paper) 45%, #f2ebdf 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 340;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  -webkit-touch-callout: none; /* Disables long-press context menu on iOS Safari */
  user-select: none;           /* Disables user selection */
  -webkit-user-select: none;   /* Disables selection on Safari/iOS */
}
a { color: inherit; }

::selection { background: rgba(86, 120, 142, 0.32); }

:focus-visible {
  outline: 2px solid var(--wash-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--syne);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin: 0;
}

h1 em, h2 em, h3 em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
}

/* ---------- texture & chrome ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 55;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--wash-deep), var(--wash));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- header ---------- */

.site-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: var(--head-h);
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.site-head.is-scrolled {
  background: rgba(250, 246, 238, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 -1px 0 rgba(24, 40, 48, 0.07),
    0 14px 40px -24px rgba(46, 77, 94, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: var(--syne);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 50% 46% 54% 50% / 48% 52% 48% 54%;
  background: radial-gradient(circle at 32% 30%, var(--wash) 0%, var(--wash-deep) 78%);
  box-shadow: 0 0 0 3px rgba(86, 120, 142, 0.16);
  animation: dot-breathe 4.5s ease-in-out infinite;
}

@keyframes dot-breathe {
  0%, 100% { transform: scale(1); border-radius: 50% 46% 54% 50% / 48% 52% 48% 54%; }
  50% { transform: scale(1.18); border-radius: 46% 54% 48% 52% / 54% 46% 54% 46%; }
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.1rem);
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 0.35rem 0;
  font-size: 0.86rem;
  font-weight: 420;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.25s;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--wash-deep);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.4s var(--ease-out);
}

.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.head-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(24, 40, 48, 0.35);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 460;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s;
}

.head-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.head-cta:active { transform: scale(0.97); }

.brand,
.menu-toggle {
  position: relative;
  z-index: 50;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.menu-toggle-line {
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 99px;
}

/* ---------- buttons & links ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 460;
  letter-spacing: 0.02em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease-out);
}

.btn svg { transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }

.btn-ink {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 18px 36px -18px rgba(24, 40, 48, 0.55);
}

.btn-ink::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--wash-deep);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}

.btn-ink:hover::before { transform: translateY(0); }

.btn-big { padding: 1.15rem 2rem; font-size: 1.05rem; }

.link-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  font-weight: 440;
  text-decoration: none;
  color: var(--ink-2);
}

.link-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease-out);
}

.link-line:hover { color: var(--wash-deep); }
.link-line:hover::after {
  animation: line-redraw 0.6s var(--ease-out);
}

@keyframes line-redraw {
  0% { transform: scaleX(1); transform-origin: 100% 50%; }
  45% { transform: scaleX(0); transform-origin: 100% 50%; }
  46% { transform: scaleX(0); transform-origin: 0 50%; }
  100% { transform: scaleX(1); transform-origin: 0 50%; }
}

/* ---------- shared section scaffolding ---------- */

.section {
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 5vw, 4.5rem);
  max-width: 1440px;
  margin: 0 auto;
}

.section-work {
  padding-bottom: 0; /* Remove redundant bottom padding since project items have their own vertical padding */
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-index {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  font-weight: 460;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wash);
}

.section-head-main h2,
.maker-label h2,
.about-copy h2,
.contact-copy h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  max-width: 18ch;
}

.section-head-main p {
  max-width: 56ch;
  margin: 1.4rem 0 0;
  color: var(--ink-2);
}



/* ---------- reveal system ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s var(--ease-out) var(--d, 0s),
    transform 0.9s var(--ease-out) var(--d, 0s);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 82dvh;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(var(--head-h) + 2rem) clamp(1.25rem, 5vw, 4.5rem) 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.6rem;
  font-size: 0.8rem;
  font-weight: 460;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wash-deep);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 77, 94, 0.45); }
  70% { box-shadow: 0 0 0 11px rgba(46, 77, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 77, 94, 0); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.6vw, 4.5rem);
  line-height: 1.12; /* Tight display line-height */
  letter-spacing: -0.015em; /* Tighter letter spacing for premium typographic locking */
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-block: 0.02em; /* Reduced from 0.06em to bring lines closer together */
}

.hero-title .line-inner {
  display: inline-block;
  transform: translateY(112%);
}

body.is-loaded .hero-title .line:nth-child(1) .line-inner { animation: line-up 1s var(--ease-out) 0.1s forwards; }
body.is-loaded .hero-title .line:nth-child(2) .line-inner { animation: line-up 1s var(--ease-out) 0.24s forwards; }

@keyframes line-up {
  to { transform: translateY(0); }
}

/* kinetic word rotor */
.rotor {
  display: inline-flex;
  overflow: hidden;
  vertical-align: bottom;
  color: var(--wash-deep);
  transition: width 0.45s var(--ease-out);
  white-space: nowrap;
}

.rotor-word { display: inline-block; }
.rotor-word.is-exiting { animation: rotor-out 0.4s var(--ease-out) forwards; }
.rotor-word.is-entering { animation: rotor-in 0.5s var(--ease-out); }

@keyframes rotor-out {
  to { transform: translateY(-110%); opacity: 0; }
}
@keyframes rotor-in {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero-lede {
  max-width: 46ch;
  margin: 1.7rem 0 2.3rem;
  font-size: 1.08rem;
  color: var(--ink-2);
}

/* Hide line breaks in hero text on mobile to let it wrap naturally */
.hero-lede br {
  display: none;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

/* hero stage: layered imagery */

.hero-stage {
  position: relative;
  min-height: clamp(380px, 44vw, 600px);
}

.blob {
  position: absolute;
  pointer-events: none;
  filter: blur(36px);
  opacity: 0.55;
  animation: blob-drift 16s ease-in-out infinite alternate;
}

.blob-a {
  top: -8%;
  right: -6%;
  width: 62%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 40% 40%, rgba(86, 120, 142, 0.5), rgba(86, 120, 142, 0) 70%);
}

.blob-b {
  bottom: -4%;
  left: -10%;
  width: 52%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 60% 55%, rgba(176, 138, 90, 0.38), rgba(176, 138, 90, 0) 70%);
  animation-delay: -8s;
}

@keyframes blob-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4%, 6%, 0) scale(1.12); }
}

.hero-frame {
  position: relative;
  margin: 0 0 0 2%;
  border-radius: 46% 54% 8% 8% / 30% 30% 8% 8%;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  will-change: transform;
}

.hero-polaroid {
  position: absolute;
  bottom: -6%;
  right: -2%;
  width: 34%;
  margin: 0;
  background: var(--cream);
  padding: 0.6rem 0.6rem 1.6rem 0.6rem;
  border: 1px solid rgba(24, 40, 48, 0.08);
  border-radius: 4px;
  box-shadow: 0 16px 36px -12px rgba(24, 40, 48, 0.35);
  transform: rotate(9deg);
  will-change: transform;
  z-index: 5;
  transition: transform 0.4s var(--ease-out);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-polaroid:hover {
  transform: rotate(-1deg) scale(1.04);
}

.hero-polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 15% 25%;
  border: 1px solid rgba(24, 40, 48, 0.05);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-frame img {
  width: 100%;
  height: clamp(360px, 40vw, 540px);
  object-fit: cover;
  object-position: 95% center;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease-out);
}

.hero-frame:hover img { transform: scale(1.01); }

.hero-card {
  position: absolute;
  bottom: -7%;
  left: -4%;
  width: 46%;
  margin: 0;
  border: 5px solid var(--cream);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 30px 50px -22px rgba(24, 40, 48, 0.4);
  animation: float 7s ease-in-out infinite;
  will-change: transform;
}

.hero-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* orbiting badge — also a secret button */

.orbit-badge {
  position: absolute;
  top: -5%;
  right: 2%;
  width: clamp(96px, 9vw, 126px);
  aspect-ratio: 1;
  padding: 0;
  border: none;
  background: var(--cream);
  border-radius: 50%;
  box-shadow: 0 18px 40px -18px rgba(46, 77, 94, 0.45);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease-out);
}

.orbit-badge:hover { transform: scale(1.07) rotate(6deg); }
.orbit-badge:active { transform: scale(0.96); }

.orbit-badge svg {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
  animation: spin 18s linear infinite;
}

.orbit-badge text {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 480;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--wash-deep);
}

.orbit-core {
  width: 26%;
  aspect-ratio: 1;
  border-radius: 47% 53% 56% 44% / 44% 50% 50% 56%;
  background: radial-gradient(circle at 35% 30%, var(--wash), var(--wash-deep));
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(2rem, 5vh, 4rem);
}

.scroll-cue {
  font-size: 0.74rem;
  font-weight: 480;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}

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

.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wash-deep);
  animation: line-slide 2.2s var(--ease-out) infinite;
}

@keyframes line-slide {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(0); }
  100% { transform: translateX(102%); }
}

/* ---------- maker intro (Idea 3) ---------- */

.maker-intro {
  max-width: 1440px;
  margin: 0 auto;
  padding: 5rem clamp(1.25rem, 5vw, 4.5rem) 5rem;
}

.maker-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.maker-visual {
  margin: 0;
  line-height: 0;
}

.maker-visual img {
  max-width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.maker-copy {
  display: flex;
  flex-direction: column;
}

.maker-label h2 {
  margin-top: 0.6rem;
}

.maker-line {
  display: block;
  width: 64px;
  height: 1.5px;
  background: var(--ink);
  opacity: 0.35;
  margin: 1.6rem 0;
}

.maker-content {
  margin-top: 2rem;
}

.maker-content p {
  font-size: 1.05rem;
  color: var(--ink-2);
  line-height: 1.6;
  margin: 0 0 1.2rem 0;
  max-width: 46ch;
}

.maker-content p:last-child {
  margin-bottom: 0;
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(253, 250, 243, 0.55);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 3.2rem;
  gap: 3.2rem;
}

.marquee-set span {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-style: italic;
  font-weight: 380;
  white-space: nowrap;
  color: var(--ink-2);
}

.marquee-set i {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50% 44% 56% 50% / 46% 54% 46% 54%;
  background: var(--wash);
  opacity: 0.8;
}

/* ---------- services typographic grid ---------- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem 2.5rem;
  margin-top: 4.5rem;
  padding-bottom: 5.5rem; /* spaces the offset items from the next section */
}

.svc-item {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  cursor: default;
  transition: border-color 0.4s var(--ease-out);
}

.svc-num {
  font-family: var(--serif);
  font-size: 2.3rem;
  font-style: italic;
  font-weight: 380;
  color: var(--wash);
  display: block;
  margin-bottom: 0.8rem;
  transition: color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.svc-name {
  font-size: 1.45rem;
  font-family: var(--serif);
  color: var(--ink);
  margin: 0 0 0.8rem 0;
}

.svc-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* Subtle Hover Effects */
.svc-item:hover {
  border-color: var(--wash);
}

.svc-item:hover .svc-num {
  color: var(--wash-deep);
  transform: translateY(-2px);
}

/* Asymmetric grid offsets for desktop */
@media (min-width: 1024px) {
  .svc-item:nth-child(3n+2) {
    transform: translateY(2.5rem);
  }
  .svc-item:nth-child(3n) {
    transform: translateY(5rem);
  }
}

.work-split {
  display: flex;
  flex-direction: column;
  gap: 4vh;
}

.project-item {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
  position: relative;
  min-height: 90dvh;
  padding-block: 8vh;
}

.project-item.single-media {
  align-items: center;
}

.project-text {
  position: sticky;
  top: calc(var(--head-h) + 1.8rem);
  align-self: start; /* Prevent grid item stretch to ensure sticky locks correctly in all browsers */
  padding-block: 1rem;
}

.project-tag {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(46, 77, 94, 0.3);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 480;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wash-deep);
}

.project-text h3 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 0.9rem;
  line-height: 1.1;
}

.project-desc {
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 1.5rem;
  max-width: 44ch;
}

.project-case {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  max-width: 44ch;
}

.project-case h4 {
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wash-deep);
  margin: 0 0 0.4rem 0;
}

.project-case p {
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}

.project-deliverables {
  margin-top: 1.4rem;
  padding: 0.85rem 1.1rem;
  background: rgba(24, 40, 48, 0.03);
  border-radius: 0.8rem;
  max-width: 44ch;
}

.project-deliverables h5 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mute);
  margin: 0 0 0.38rem 0;
}

.project-deliverables h5:not(:first-of-type) {
  margin-top: 0.85rem;
}

.project-deliverables p {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0;
  font-weight: 400;
}

.project-media {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.project-image-wrapper {
  width: 100%;
  aspect-ratio: 1.5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--paper-2);
  position: relative;
}

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

.project-image-wrapper:hover img {
  transform: scale(1.03);
}
/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.about-visual { position: relative; }

.about-frame {
  margin: 0;
  border-radius: 49% 51% 12% 12% / 32% 32% 10% 10%;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about-frame img,
.about-frame video {
  width: 100%;
  height: clamp(400px, 45vw, 640px);
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.blob-c {
  bottom: -12%;
  right: -10%;
  width: 55%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 45% 45%, rgba(86, 120, 142, 0.45), rgba(86, 120, 142, 0) 70%);
}

.about-copy h2 { margin: 0.6rem 0 1.4rem; }

.about-copy > p:not(.section-index) {
  max-width: 52ch;
  margin: 0 0 1.1rem;
  color: var(--ink-2);
  font-size: 1.05rem;
}

.about-contact-list {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  width: 100%;
  max-width: 520px;
}

.about-contact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(24, 40, 48, 0.08);
}

.about-contact-item:first-child {
  padding-top: 0.5rem;
}

.about-contact-item:last-child {
  border-bottom: none;
  padding-bottom: 0.5rem;
}

.about-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

.about-contact-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--ink);
  stroke-width: 1.5px;
}

.about-contact-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.about-contact-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--wash-deep);
  text-transform: uppercase;
}

.about-contact-links {
  display: flex;
  align-items: center;
}

.about-contact-link {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 450;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
  line-height: 1.4;
}

.about-contact-link.underlined {
  border-bottom: 1px solid var(--ink);
}

.about-contact-link:hover {
  color: var(--wash);
  border-bottom-color: var(--wash);
}

.about-contact-link.underlined:hover {
  color: var(--wash);
  border-bottom-color: var(--wash);
}

.bullet-separator {
  color: var(--ink-2);
  margin: 0 0.5rem;
  font-size: 0.9rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin: 2.4rem 0 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 420;
  color: var(--wash-deep);
}

.facts dd {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  color: var(--mute);
}

/* ---------- quotes ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.quote-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.9rem;
  background: var(--cream);
  border: 1px solid rgba(24, 40, 48, 0.07);
  border-radius: 1.4rem;
  box-shadow: 0 20px 44px -28px rgba(46, 77, 94, 0.3);
  transition: translate 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.quote-card:hover {
  translate: 0 -6px;
  box-shadow: 0 32px 60px -26px rgba(46, 77, 94, 0.42);
}

.quote-mark {
  margin: 0;
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: 0.6;
  color: var(--wash);
}

.quote-card blockquote {
  flex-grow: 1;
  margin: 1rem 0 1.4rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
}

.quote-person {
  margin: 0;
  font-size: 0.86rem;
  color: var(--mute);
}

.quote-person strong { color: var(--ink-2); font-weight: 500; }

.trust-block {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-title {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  margin: 0;
  padding-bottom: 2.8rem; /* Increased spacing below the heading */
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.2rem 2rem; /* Increased vertical space between wrapped logo rows */
}

.trust-logos span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(1.4rem, 4vw, 1.8rem); /* Fluid height matching viewport size */
}

.trust-logos img {
  height: 100%;
  width: auto;
  max-height: 100%;
  display: block;
  object-fit: contain;
  filter: grayscale(1) contrast(0.8) opacity(0.48); /* Soft monochromatic layout matching design aesthetics */
  transition: filter 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}

.trust-logos span:hover img {
  filter: grayscale(0) contrast(1) opacity(0.95); /* Reveal the brand's authentic colors on hover */
}

/* Mölnlycke is a vertically stacked logo; scale it up to balance its visual weight with horizontal wordmarks */
.trust-logos span[title="Mölnlycke"] img {
  transform: scale(1.48);
}

/* ---------- contact ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 5vw, 4.5rem);
}

.contact-copy h2 {
  margin: 0.6rem 0 1.4rem;
}

.contact-copy > p:not(.section-index) {
  max-width: 48ch;
  margin: 0 0 2.2rem;
  color: var(--ink-2);
  font-size: 1.05rem;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: start;
  gap: 3rem;
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-2);
}

.contact-details strong {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--mute);
}

.contact-details a { text-decoration-color: rgba(86, 120, 142, 0.5); }
.contact-details a:hover { color: var(--wash-deep); }

.contact-visual {
  margin: 0;
  border-radius: 12% 49% 51% 12% / 10% 33% 33% 10%;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.contact-visual img {
  width: 100%;
  height: clamp(320px, 34vw, 500px);
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.2s var(--ease-out);
}

.contact-visual:hover img { transform: scale(1); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(239, 232, 218, 0.55);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 5vw, 4.5rem) 2rem;
}

.foot-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1440px;
  margin: 0 auto;
}

.foot-meta {
  text-align: right;
}

.foot-brand a {
  font-family: var(--syne);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.foot-brand p {
  margin: 0.8rem 0 0;
  font-size: 0.9rem;
  color: var(--mute);
  max-width: 30ch;
}

.foot-grid nav p,
.foot-meta p:first-child {
  margin: 0 0 0.8rem;
  font-size: 0.76rem;
  font-weight: 480;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}

.foot-grid nav a {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.94rem;
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.25s, transform 0.3s var(--ease-out);
}

.foot-grid nav a:hover { color: var(--wash-deep); transform: translateX(3px); }

.foot-clock {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.copyright {
  max-width: 1440px;
  margin: 2.5rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--mute);
}

/* ---------- easter egg: watercolour mode ---------- */

.paint-canvas {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

body.is-painting .paint-canvas { opacity: 1; }
body.is-painting { cursor: crosshair; }

.paint-toast {
  position: fixed;
  bottom: 1.6rem;
  left: 50%;
  z-index: 80;
  padding: 0.8rem 1.4rem;
  background: rgba(24, 40, 48, 0.92);
  color: var(--cream);
  border-radius: 999px;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  box-shadow: 0 20px 44px -16px rgba(24, 40, 48, 0.5);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  pointer-events: none;
  white-space: nowrap;
}

.paint-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- book modal ---------- */

body.book-modal-open {
  overflow: hidden;
}

.book-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 1100px;
  width: calc(100% - 3rem);
  max-height: 90vh;
  margin: auto;
  outline: none;
  overflow: visible;
}

.book-modal::backdrop {
  background: rgba(24, 40, 48, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-modal[open]::backdrop {
  opacity: 1;
}

.book-modal-container {
  position: relative;
  background: var(--cream);
  border: 1px solid rgba(24, 40, 48, 0.1);
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(24, 40, 48, 0.4);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.book-modal[open] .book-modal-container {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.book-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(24, 40, 48, 0.1);
  background: var(--cream);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s, transform 0.3s, color 0.3s;
}

.book-modal-close:hover {
  background: var(--ink);
  color: var(--cream);
  transform: rotate(90deg);
}

.book-modal-content {
  overflow-y: auto;
  padding: 3rem;
  max-height: 100%;
}

.book-modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.book-modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.book-modal-img-wrap {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(24, 40, 48, 0.08);
}

.book-modal-img-wrap img,
.book-modal-img-wrap video {
  width: 100%;
  height: auto;
  display: block;
}

.book-modal-copy {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.book-modal-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}

.book-modal-header h2 {
  font-family: var(--syne);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0.4rem 0;
}

.book-modal-subtitle {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: normal;
  color: var(--wash-deep);
  margin: 0;
}

.book-modal-section h3 {
  font-family: var(--syne);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 1rem 0;
  color: var(--ink);
}

.book-modal-section p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 1rem 0;
}

.book-modal-section p strong {
  color: var(--ink);
}

.book-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.book-steps li {
  display: flex;
  gap: 1.2rem;
  align-items: start;
}

.step-num {
  font-family: var(--syne);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--wash-deep);
  background: rgba(46, 77, 94, 0.08);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.book-steps li strong {
  display: block;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.book-steps li p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}

.book-modal-buy {
  background: rgba(24, 40, 48, 0.03);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid rgba(24, 40, 48, 0.06);
}

.book-modal-buy h3 {
  font-family: var(--syne);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.8rem 0;
}

.book-modal-buy p {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 1.5rem 0;
}

.book-modal-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ---------- responsive ---------- */

@media (max-width: 1023px) {
  html, body {
    overflow-x: hidden;
  }
  .hero {
    overflow: hidden;
    padding-top: calc(var(--head-h) + 0.1rem); /* Reduced space before hero image */
    padding-bottom: 2rem;
  }
  .book-modal-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .book-modal-content {
    padding: 2.2rem;
  }
  .book-modal-close {
    top: 1rem;
    right: 1rem;
  }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 0; margin-top: 1.5rem; }
  .hero-frame { margin: 0; }
  .hero-polaroid { width: 28%; right: 2%; bottom: -6%; }
  .section-head { gap: 0.6rem; }

  .svc-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 0;
  }
  .svc-item {
    padding-top: 1.5rem;
  }
  .svc-num {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
  }

  .work-split {
    gap: 4rem;
  }
  .project-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
    min-height: auto;
    padding-block: 0;
  }
  .project-text {
    position: static;
    padding-block: 0;
  }
  .project-media {
    gap: 1.5rem;
  }
  .project-media-track {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .project-image-wrapper {
    aspect-ratio: 1.35;
  }

  .about { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-card:nth-child(2),
  .quote-card:nth-child(3) { margin-top: 0; }

  .contact { grid-template-columns: 1fr; }
  .foot-grid { flex-direction: column; gap: 2.5rem; }
  .foot-meta { text-align: left; }

  .maker-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (max-width: 720px) {
  .book-modal {
    width: calc(100% - 1.5rem);
    max-height: 85vh; /* Center the dialog and pull it down from top screen notch */
  }
  .book-modal-container {
    max-height: 85vh;
    border-radius: 8px;
  }
  .book-modal-content {
    padding: 1.5rem 1.5rem 4rem 1.5rem; /* Extra bottom padding for scroll whitespace */
  }
  .book-modal-buy {
    padding: 1.2rem; /* Add back padding all around for nice container inset spacing */
  }
  .book-modal-gallery {
    display: contents; /* Let child images participate directly in grid ordering */
  }
  .book-modal-grid .book-modal-img-wrap:nth-of-type(1) {
    order: 1; /* Cover image at the very top */
  }
  .book-modal-copy {
    order: 2; /* Text description in the middle */
  }
  .book-modal-grid .book-modal-img-wrap:nth-of-type(2) {
    order: 3; /* Video/detail images at the bottom */
  }
  .book-modal-grid .book-modal-img-wrap:nth-of-type(3) {
    order: 4; /* Detail images at the bottom */
  }
  .section-head {
    margin-bottom: 3.5rem; /* More spacing before projects start on mobile */
  }
  .project-text h3 {
    font-size: 1.45rem; /* Slightly smaller project headings for better mobile balance */
    margin-bottom: 0.7rem;
  }

  :root { --head-h: 64px; }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .hero-copy {
    display: contents;
  }
  .hero-stage {
    order: 1;
    min-height: 0;
    margin-top: 0;
    margin-bottom: 3.5rem; /* Increased whitespace between image and heading further */
  }
  .hero-grid .hero-title {
    order: 2;
    margin-top: 0;
    margin-bottom: 1.2rem;
  }
  .hero-grid .hero-lede {
    order: 3;
    margin-top: 0;
    margin-bottom: 1.6rem;
  }
  .hero-grid .hero-actions {
    order: 4;
    margin-top: 0;
  }

  .site-head {
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-block: 0.8rem;
  }

  .head-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(250, 246, 238, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 45;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    padding: 2rem;
    margin: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    overflow-x: visible;
  }

  .site-nav a {
    font-size: 1.5rem;
    font-weight: 500;
  }

  .menu-open {
    overflow: hidden;
  }

  .menu-open .site-nav {
    transform: translateX(0);
  }

  .menu-open .menu-toggle-line.line-1 {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-open .menu-toggle-line.line-2 {
    opacity: 0;
  }

  .menu-open .menu-toggle-line.line-3 {
    transform: translateY(-8px) rotate(-45deg);
  }

  html { scroll-padding-top: 80px; }

  .hero { padding-top: 9rem; }
  .hero-actions { gap: 1.2rem; }
  .hero-polaroid { bottom: -4%; width: 38%; }
  .orbit-badge { top: -8%; right: 0; }
  .contact-details { grid-template-columns: 1fr; gap: 1.4rem; }
  .facts { gap: 1.2rem; }

  .trust-logos {
    justify-content: center;
    gap: 2.8rem 2.2rem; /* Increased vertical space between wrapped logos on mobile */
  }
}

/* ---------- horizontal project scrolling (desktop) ---------- */
@media (min-width: 1024px) {
  .hero-copy {
    padding-top: 3.5rem;
  }

  /* Show line breaks in hero text on desktop to achieve the desired wrap */
  .hero-lede br {
    display: inline;
  }

  .project-media {
    padding: 2.2rem 1.8rem; /* Inset single-media projects so their images match horizontal stack sizes */
  }

  .project-item.has-horizontal {
    height: 150vh; /* Scroll container depth for 2 images */
  }
  
  .project-item.has-horizontal.four-images {
    height: 210vh; /* Scroll container depth for 4 images */
  }
  
  .project-item.has-horizontal.three-images {
    height: 165vh; /* Scroll container depth for 3 images */
  }
  
  .project-item.has-horizontal .project-text {
    height: calc(100vh - var(--head-h) - 3.8rem) !important;
  }

  .project-item.has-horizontal .project-media {
    position: sticky;
    top: calc(var(--head-h) + 2rem); /* Locked higher up on screen to reduce whitespace above */
    align-self: start; /* Prevent grid item stretch to ensure sticky locks correctly in all browsers */
    width: 100%;
    height: calc(100vh - var(--head-h) - 3.8rem) !important;
    overflow: hidden;
    padding: 2.2rem 1.8rem; /* Spacing inset to fully display shadows and rounded corners */
  }
  
  .project-item.has-horizontal .project-media-track {
    position: relative;
    width: 100%;
    aspect-ratio: 1.5; /* Lock aspect ratio of the card stack */
  }
  
  .project-item.has-horizontal .project-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    will-change: transform, opacity;
    box-shadow: var(--shadow-soft);
  }

  .project-item.has-horizontal .project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}


/* ---------- brand fullwidth project styling ---------- */
@media (min-width: 1024px) {
  .project-item.brand-fullwidth {
    min-height: auto;
    padding-block: 8vh;
    grid-template-columns: 1fr; /* Single column container */
  }
  .project-item.brand-fullwidth .project-text {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: clamp(2.5rem, 6vw, 5.5rem);
    width: 100%;
  }
  .project-item.brand-fullwidth .project-text-left {
    grid-column: 1;
  }
  .project-item.brand-fullwidth .project-text-right {
    grid-column: 2;
    padding-top: 2.6rem; /* Align top border line precisely with the top of the main H3 heading */
  }
  .project-item.brand-fullwidth .project-case {
    margin-top: 0; /* Position the border-top exactly at the container top boundary */
  }
  .project-item.brand-fullwidth .project-desc,
  .project-item.brand-fullwidth .project-case,
  .project-item.brand-fullwidth .project-deliverables {
    max-width: 58ch; /* Expand readability bounds since no media block occupies the right side */
  }
}

@media (max-width: 1023px) {
  .project-item.brand-fullwidth {
    min-height: auto;
    padding-block: 4rem 2rem;
  }
  .project-item.brand-fullwidth .project-text {
    display: block; /* Let inner elements stack naturally to inherit standard spacing collapse */
  }
  .project-item.brand-fullwidth .project-text-right {
    margin-top: 1.5rem; /* Clean, compact whitespace before the divider line */
  }
  .project-item.brand-fullwidth .project-case {
    margin-top: 0; /* Clear extra margin so text is tightly bound below the divider line */
  }
}


/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-title .line-inner { transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .svc-preview { display: none; }
}
