/* ==========================================================================
   DEBBIE DÁVILA — EDITORIAL
   Base stylesheet. Palette: pure black / soft white / brand red accent.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;0,6..96,600&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root{
  --c-black: #000000;
  --c-white: #fbfbf8;
  --c-ivory: #000000;
  --c-ivory-2: #000000;
  --c-line: rgba(251,251,248,0.25);
  --c-line-invert: rgba(251,251,248,0.25);
  --c-brand-red: #b31217;

  --font-serif: 'Fraunces', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-masthead: 'Bodoni Moda', 'Times New Roman', serif;

  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.16,.84,.28,1);
}

*, *::before, *::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  background: var(--c-ivory);
  color: var(--c-white);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg{ display:block; max-width:100%; }

a{ color: inherit; text-decoration: none; }

.visually-hidden{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap;
}

/* ---------------------------------------------------------------------- */
/* Brand accent — reserved for the large cover masthead only. Everywhere   */
/* else the name is plain typed text with its normal accent (Dávila).     */
/* The base letter stays the surrounding text color; only the mark above  */
/* it is red.                                                              */
/* ---------------------------------------------------------------------- */

.dv-a{
  display: inline-block;
  position: relative;
}

/* a fuller brush-swipe shape (thick near the letter, flicking off to the
   right), applied as a mask so it always renders in the brand red */
.dv-a::before{
  content: '';
  position: absolute;
  background: var(--c-brand-red);
  -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20120%2054'%3E%3Cpath%20d='M8%2038%20C16%2028%2030%2018%2050%2011%20C68%205%2090%202%20118%201%20C106%207%2088%2014%2068%2022%20C48%2030%2028%2038%2014%2046%20C9%2049%205%2044%208%2038%20Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20120%2054'%3E%3Cpath%20d='M8%2038%20C16%2028%2030%2018%2050%2011%20C68%205%2090%202%20118%201%20C106%207%2088%2014%2068%2022%20C48%2030%2028%2038%2014%2046%20C9%2049%205%2044%208%2038%20Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  pointer-events: none;
}

/* sized and lifted clear of the tall Bodoni cap, sweeping up and right */
.cover-masthead .dv-a::before{
  top: -0.2em;
  left: 0.2em;
  width: 0.68em;
  height: 0.32em;
  transform: rotate(-6deg);
  transform-origin: left center;
}

/* ---------------------------------------------------------------------- */
/* Type helpers                                                            */
/* ---------------------------------------------------------------------- */

.label{
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}

.eyebrow{
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.6;
}

.magazine-editorial :is(h1, h2, h3),
.fashion-dark .page-hero h1.display,
.fashion-dark .editorial-gallery > .section-tight > h2.display,
.spread-quote p,
.quote-interlude blockquote{
  font-family: var(--font-masthead);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.035em;
}

.display{
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.01em;
}

.serif-italic{
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* ---------------------------------------------------------------------- */
/* Header / Nav                                                           */
/* ---------------------------------------------------------------------- */

.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  mix-blend-mode: difference;
  pointer-events: none;
}

.site-header a, .site-header button{
  pointer-events: auto;
}

.brand{
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-white);
  white-space: nowrap;
}

.menu-btn{
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-white);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-btn .bars{
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
}
.menu-btn .bars span{
  height: 1px;
  background: var(--c-white);
  display: block;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.menu-open .menu-btn .bars span:nth-child(1){ transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn .bars span:nth-child(2){ opacity: 0; }
.menu-open .menu-btn .bars span:nth-child(3){ transform: translateY(-5px) rotate(-45deg); }

/* ---------------------------------------------------------------------- */
/* Fullscreen nav overlay                                                  */
/* ---------------------------------------------------------------------- */

.menu-overlay{
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--c-black);
  color: var(--c-white);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--gutter) * 2) var(--gutter);
}

.menu-open .menu-overlay{
  clip-path: inset(0 0 0% 0);
}

.menu-list{
  list-style: none;
  margin: 0; padding: 0;
}

.menu-list li{
  overflow: hidden;
}

.menu-list a{
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(34px, 8vw, 84px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  transform: translateY(110%);
  transition: transform .6s var(--ease), opacity .3s;
  opacity: 0.94;
}

.menu-open .menu-list a{ transform: translateY(0); }

.menu-list li:nth-child(1) a{ transition-delay: .05s; }
.menu-list li:nth-child(2) a{ transition-delay: .09s; }
.menu-list li:nth-child(3) a{ transition-delay: .13s; }
.menu-list li:nth-child(4) a{ transition-delay: .17s; }
.menu-list li:nth-child(5) a{ transition-delay: .21s; }
.menu-list li:nth-child(6) a{ transition-delay: .25s; }
.menu-list li:nth-child(7) a{ transition-delay: .29s; }
.menu-list li:nth-child(8) a{ transition-delay: .33s; }

.menu-list a:hover{ opacity: 0.55; }

.menu-foot{
  margin-top: clamp(28px, 6vw, 64px);
  display: flex;
  gap: clamp(24px, 6vw, 64px);
  flex-wrap: wrap;
}

.menu-foot a{
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--c-line-invert);
  padding-bottom: 3px;
}

/* ---------------------------------------------------------------------- */
/* Placeholder image component                                            */
/* ---------------------------------------------------------------------- */

.ph{
  position: relative;
  width: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(11,11,10,0.05) 0 1px, transparent 1px 34px),
    linear-gradient(155deg, #d9d2c2 0%, #c9c0ad 45%, #b9b09c 100%);
  overflow: hidden;
}

.ph::after{
  content: attr(data-label);
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(11,11,10,0.55);
}

.ph::before{
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(11,11,10,0.08);
}

.ph--dark{
  background:
    repeating-linear-gradient(135deg, rgba(251,251,248,0.06) 0 1px, transparent 1px 34px),
    linear-gradient(155deg, #23221f 0%, #171614 60%, #0b0b0a 100%);
}
.ph--dark::after{ color: rgba(251,251,248,0.55); }
.ph--dark::before{ border-color: rgba(251,251,248,0.1); }

.ph--square{ aspect-ratio: 1 / 1; }
.ph--portrait{ aspect-ratio: 3 / 4; }
.ph--tall{ aspect-ratio: 2 / 3; }
.ph--wide{ aspect-ratio: 16 / 9; }
.ph--full{ aspect-ratio: 4 / 5; }

@media (min-width: 900px){
  .ph--full{ aspect-ratio: 16 / 10; }
}

/* ---------------------------------------------------------------------- */
/* Reveal-on-scroll                                                        */
/* ---------------------------------------------------------------------- */

.reveal{
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
.reveal-img{
  clip-path: inset(0 0 0 0);
}
.reveal-img .ph{
  transform: scale(1.08);
  transition: transform 1.4s var(--ease);
}
.reveal-img.is-visible .ph{ transform: scale(1); }

/* ---------------------------------------------------------------------- */
/* Section shell                                                          */
/* ---------------------------------------------------------------------- */

section{
  position: relative;
  padding: clamp(70px, 12vw, 140px) var(--gutter);
}

.section-black{
  background: var(--c-black);
  color: var(--c-white);
}

.section-tight{
  padding-top: clamp(40px, 6vw, 70px);
  padding-bottom: clamp(40px, 6vw, 70px);
}

/* ---------------------------------------------------------------------- */
/* 1. Cover                                                                */
/* ---------------------------------------------------------------------- */

.cover{
  height: 100svh;
  min-height: 560px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--c-white);
  background: var(--c-black);
}

.cover .ph{
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.82;
}

.cover-content{
  position: relative;
  z-index: 2;
  padding: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateY(5.5vh);
}

.cover-masthead{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  row-gap: 0.42em;
  column-gap: 0.32em;
  font-family: var(--font-masthead);
  font-weight: 500;
  font-size: clamp(46px, 10.2vw, 168px);
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--c-white);
  mix-blend-mode: difference;
}

.mh-word{
  display: inline-block;
  transform: scaleY(1.12);
  transform-origin: bottom center;
}

.mh-surname{
  position: relative;
}

.cover-sub{
  text-align: center;
  color: var(--c-white);
  font-size: 11px;
  letter-spacing: 0.4em;
  padding: 0 var(--gutter);
}

.cover-issue{
  position: absolute;
  top: calc(var(--gutter) + 46px);
  left: var(--gutter);
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-white);
}

.cover-issue span{ display:block; opacity: .6; margin-top: 4px;}

.scroll-cue{
  position: absolute;
  right: var(--gutter);
  bottom: 26px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-white);
}

.scroll-cue .line{
  width: 1px;
  height: 34px;
  background: rgba(251,251,248,0.5);
  overflow: hidden;
  position: relative;
}
.scroll-cue .line::after{
  content:'';
  position:absolute;
  top:-100%; left:0; width:100%; height:100%;
  background: var(--c-white);
  animation: scrollDrip 2.4s ease-in-out infinite;
}
@keyframes scrollDrip{
  0%{ top:-100%; }
  60%{ top:100%; }
  100%{ top:100%; }
}

/* ---------------------------------------------------------------------- */
/* 2. Opening spread                                                       */
/* ---------------------------------------------------------------------- */

.spread{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: end;
}

.spread-lead{
  align-self: start;
  grid-column: 1 / 8;
}
.spread-support{
  grid-column: 9 / 13;
  align-self: start;
  margin-top: clamp(84px, 13vw, 200px);
}
.magazine-editorial .issue,
.spread-signature {
  font: 500 10px/1.5 Inter, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.spread-signature {
  display: block;
  margin-top: .65em;
  text-align: right;
}
.spread-text{
  grid-column: 1 / 6;
  margin-top: clamp(24px, 5vw, 40px);
}
.spread-quote{
  grid-column: 7 / 13;
  margin-top: clamp(24px, 5vw, 40px);
  text-align: right;
}
.spread-quote p{
  font-size: clamp(22px, 2.65vw, 34px);
  line-height: 1.3;
  margin: 0;
}

/* ---------------------------------------------------------------------- */
/* 3. Contents / index                                                    */
/* ---------------------------------------------------------------------- */

.contents{
  background: var(--c-ivory-2);
}

.contents-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 20px;
  margin-bottom: 10px;
}

.contents-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.contents-item{
  border-bottom: 1px solid var(--c-line);
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  padding: clamp(14px, 2.6vw, 26px) 0;
  position: relative;
}

.contents-num{
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 34px);
  opacity: 0.45;
}

.contents-title{
  font-family: var(--font-serif);
  font-size: clamp(30px, 7vw, 96px);
  line-height: 0.95;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
  display: inline-block;
}

.contents-item a{
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: inherit;
  width: 100%;
}

.contents-frag{
  width: clamp(50px, 8vw, 96px);
  aspect-ratio: 3/4;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}

.contents-item:hover .contents-frag{
  opacity: 1;
  transform: translateX(0);
}
.contents-item:hover .contents-title{
  transform: translateX(14px);
  opacity: 0.7;
}

/* ---------------------------------------------------------------------- */
/* 4 & 6. Editorial feature sequences                                      */
/* ---------------------------------------------------------------------- */

.feature-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: clamp(28px, 5vw, 56px);
}

.feature-head .display{
  font-size: clamp(32px, 5vw, 64px);
}

.sequence{
  display: grid;
  gap: clamp(16px, 3vw, 32px);
}

/* feature one: scroll-driven horizontal track on wide screens */
.sequence--drag{
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  cursor: grab;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter);
  scrollbar-width: none;
  user-select: none;
}
.sequence--drag::-webkit-scrollbar{ display:none; }
.sequence--drag.is-dragging{ cursor: grabbing; scroll-snap-type: none; }

.seq-item{
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.seq-item.full{ width: min(78vw, 760px); }
.seq-item.vertical{ width: min(40vw, 340px); }
.seq-item.diptych{ width: min(58vw, 520px); display: flex; gap: 10px; }
.seq-item.diptych .ph{ flex: 1; }
.seq-item.airy{
  width: min(60vw, 480px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px,4vw,60px);
}
.seq-item.airy .ph{ width: 55%; }

.seq-caption{
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* feature two: split layout, different rhythm */
.feature-split{
  display: grid;
  grid-template-columns: repeat(12,1fr);
  gap: clamp(16px, 3vw, 32px);
}
.split-copy{
  grid-column: 1 / 5;
  align-self: center;
}
.split-img-a{
  grid-column: 5 / 13;
}
.split-img-b{
  grid-column: 2 / 8;
  margin-top: clamp(-40px, -6vw, -20px);
}
.split-img-c{
  grid-column: 8 / 13;
  margin-top: clamp(24px, 5vw, 60px);
}

/* ---------------------------------------------------------------------- */
/* 5. Quote interlude                                                      */
/* ---------------------------------------------------------------------- */

.quote-interlude{
  min-height: 70svh;
  display: flex;
  align-items: center;
}
.quote-interlude blockquote{
  margin: 0 0 0 auto;
  max-width: 720px;
  font-size: clamp(26px, 4.4vw, 52px);
  line-height: 1.28;
  text-align: right;
}

/* ---------------------------------------------------------------------- */
/* 7 & 8. About / Contact preview                                          */
/* ---------------------------------------------------------------------- */

.preview{
  display: grid;
  grid-template-columns: repeat(12,1fr);
  gap: clamp(16px,3vw,32px);
  align-items: center;
}
.preview-img{ grid-column: 1 / 6; }
.preview-copy{ grid-column: 7 / 13; }
.preview-copy .eyebrow{ margin-bottom: 14px; display:block; }
.preview-copy .display{ font-size: clamp(30px, 5vw, 58px); margin: 0 0 20px; }
.preview-copy p{
  max-width: 46ch;
  line-height: 1.6;
  font-size: 15px;
  opacity: 0.75;
}
.text-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}
.text-link:hover{ opacity: 0.6; }

.contact-preview{
  background: var(--c-black);
  color: var(--c-white);
  text-align: center;
  padding-top: clamp(90px, 14vw, 160px);
  padding-bottom: clamp(90px, 14vw, 160px);
}
.contact-preview .eyebrow{ opacity: 0.55; }
.contact-preview .display{
  font-size: clamp(38px, 8vw, 100px);
  margin: 18px 0 30px;
}
.contact-preview .btn{
  display: inline-block;
  padding: 16px 38px;
  border: 1px solid var(--c-line-invert);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.contact-preview .btn:hover{
  background: var(--c-white);
  color: var(--c-black);
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

.site-footer{
  background: var(--c-black);
  color: var(--c-white);
  padding: 26px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.site-footer .foot-links{ display:flex; flex-wrap:wrap; justify-content:flex-end; gap: 12px 22px; }
.site-footer .foot-links a{ white-space:nowrap; }
@media (max-width: 560px){
  .site-footer{ flex-direction:column; align-items:flex-start; gap:14px; }
  .site-footer .foot-links{ justify-content:flex-start; }
}
.site-footer a:hover{ opacity: 0.6; }

/* ---------------------------------------------------------------------- */
/* Subpage shell (fashion, beauty, etc.)                                   */
/* ---------------------------------------------------------------------- */

.page-hero{
  min-height: 62svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--c-black);
  color: var(--c-white);
  position: relative;
}
.page-hero .ph{ position:absolute; inset:0; opacity:0.7; }
.page-hero-inner{
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.page-hero .display{ font-size: clamp(48px, 11vw, 150px); }
.page-hero-num{
  font-family: var(--font-serif);
  font-size: clamp(20px,3vw,28px);
  opacity: 0.6;
}

.page-intro{
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.75;
}

.contact-sheet{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 2vw, 20px);
}
@media (max-width: 720px){
  .contact-sheet{ grid-template-columns: repeat(2, 1fr); }
}

.coming-soon{
  margin-top: 30px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  opacity: 0.55;
}

.about-page .preview-img{ grid-column: 1/6; }
.contact-page .contact-block{ max-width: 560px; }
.contact-block .display{ font-size: clamp(30px,5vw,54px); margin: 0 0 20px; }
.contact-block a.text-link{ font-size: 13px; }
.contact-block .contact-phone{ display:table; margin:18px auto 0; }
.contact-location{ margin:24px 0 0; opacity:.7; }
@media (max-width: 360px){
  .contact-block .btn{ padding-inline:20px; letter-spacing:.16em; }
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */

@media (max-width: 900px){
  .spread-lead{ grid-column: 1 / 13; }
  .spread-support{ grid-column: 6 / 13; margin-top: 14px; }
  .spread-text{ grid-column: 1 / 13; }
  .spread-quote{ grid-column: 1 / 13; text-align: left; margin-top: 20px; }

  .contents-item, .contents-item a{ grid-template-columns: 50px 1fr auto; }
  .contents-frag{ display: none; }

  .feature-split{ display: flex; flex-direction: column; }
  .split-copy, .split-img-a, .split-img-b, .split-img-c{ grid-column: auto; margin-top: 0; }
  .split-img-b{ margin-top: 0; }

  .preview{ display: flex; flex-direction: column; align-items: flex-start; }
  .preview-img, .preview-copy{ width: 100%; }
  .preview-img{ order: 1; }
  .preview-copy{ order: 2; margin-top: 22px; }

  .quote-interlude blockquote{ max-width: 88%; margin-left: auto; }

  .seq-item.full{ width: 88vw; }
  .seq-item.vertical{ width: 60vw; }
  .seq-item.diptych{ width: 82vw; }
  .seq-item.airy{ width: 82vw; }
}

@media (max-width: 560px){
  .cover-masthead{ font-size: 18vw; letter-spacing: -0.02em; }
  .cover-sub{ font-size: 10px; letter-spacing: 0.14em; }
  .cover-content{ padding-bottom: 70px; }
  .scroll-cue{ display: none; }
  .menu-list a{ font-size: 13vw; }
  section{ padding-left: 18px; padding-right: 18px; }
  .contents-title{ font-size: 11vw; }
}

/* Underwater / Undertow gallery */
.underwater-hero{
  min-height: 78svh;
  overflow: hidden;
}
.page-hero-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.page-hero-shade{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.34));
}
.underwater-sheet{
  align-items:start;
}
.underwater-frame{
  margin:0;
  background:#000;
  overflow:hidden;
}
.underwater-frame img{
  display:block;
  width:100%;
  height:auto;
}
@media (min-width: 900px){
  .underwater-sheet{
    grid-template-columns:repeat(12,1fr);
    gap:clamp(14px,2vw,28px);
  }
  .underwater-frame:nth-child(1){ grid-column:1 / 13; }
  .underwater-frame:nth-child(2){ grid-column:1 / 7; }
  .underwater-frame:nth-child(3){ grid-column:7 / 13; }
  .underwater-frame:nth-child(4){ grid-column:1 / 5; }
  .underwater-frame:nth-child(5){ grid-column:5 / 9; }
  .underwater-frame:nth-child(6){ grid-column:9 / 13; }
  .underwater-frame:nth-child(7){ grid-column:1 / 7; }
  .underwater-frame:nth-child(8){ grid-column:7 / 13; }
}

/* Homepage Undertow story images */
.seq-photo{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.seq-photo--full{ aspect-ratio:4 / 5; }
.seq-photo--vertical{ aspect-ratio:2 / 3; }
.seq-photo--portrait{ aspect-ratio:3 / 4; }
.seq-photo--square{ aspect-ratio:1 / 1; }
.seq-item.diptych .seq-photo{
  flex:1 1 0;
  min-width:0;
}
.seq-item.airy .seq-photo{
  width:55%;
  height:auto;
}
@media (min-width:900px){
  .seq-photo--full{ aspect-ratio:16 / 10; }
}

/* Undertow second frame: horizontal presentation without cropping */
.seq-item.wide-second{
  width:min(72vw,720px);
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--c-black);
}
.seq-photo--wide-second{
  width:100%;
  height:auto;
  max-height:560px;
  object-fit:contain;
  aspect-ratio:auto;
}

/* Clean four-image Undertow sequence */
.seq-item.portrait-clean{
  width:min(38vw,360px);
  display:flex;
  align-items:center;
  justify-content:center;
}
.seq-photo--portrait-clean{
  width:100%;
  height:auto;
  object-fit:contain;
  aspect-ratio:auto;
}

/* Small closing Undertow frame */
.seq-item.undertow-small-end{
  width:min(26vw,240px);
  padding:clamp(18px,3vw,36px);
}
.seq-photo--small-end{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
}
@media (max-width:700px){
  .seq-item.undertow-small-end{ width:42vw; }
}

/* Reserved Undertow frames for upcoming images */
.seq-item.undertow-slot{
  display:flex;
  align-items:center;
  justify-content:center;
}
.undertow-slot--wide{ width:min(64vw,640px); }
.undertow-slot--portrait{ width:min(34vw,320px); }
.undertow-slot-placeholder{
  width:100%;
  display:flex;
  align-items:flex-end;
  justify-content:flex-start;
  padding:14px;
  border:1px solid rgba(20,20,20,.12);
  background:
    repeating-linear-gradient(135deg, rgba(20,20,20,.035) 0 1px, transparent 1px 28px),
    rgba(20,20,20,.035);
  color:rgba(20,20,20,.35);
  font-size:10px;
  letter-spacing:.18em;
}
.undertow-slot--wide .undertow-slot-placeholder{ aspect-ratio:16 / 10; }
.undertow-slot--portrait .undertow-slot-placeholder{ aspect-ratio:3 / 4; }

/* Undertow expanded story frames */
.seq-item.undertow-wide{
  width:min(68vw,700px);
  display:flex;
  align-items:center;
  justify-content:center;
}
.seq-photo--undertow-wide{
  width:100%;
  height:auto;
  object-fit:contain;
  aspect-ratio:auto;
}
.seq-item.undertow-accent{
  width:min(34vw,320px);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:clamp(24px,4vw,56px) clamp(12px,2vw,22px) clamp(10px,2vw,18px);
}
.seq-photo--accent{
  width:100%;
  height:auto;
  object-fit:contain;
}
@media (max-width:700px){
  .seq-item.undertow-wide{ width:82vw; }
  .seq-item.undertow-accent{ width:56vw; }
}


/* Homepage Story 02 — Deco Dream */
.deco-dream{
  overflow:hidden;
}
.deco-cover{
  width:min(76vw,760px);
  margin:clamp(26px,4vw,54px) auto clamp(40px,6vw,82px);
}
.deco-cover img{
  display:block;
  width:100%;
  height:auto;
}
.deco-sequence{
  align-items:center;
}
.seq-item.deco-tall{
  width:min(38vw,360px);
  display:flex;
  align-items:center;
  justify-content:center;
}
.seq-item.deco-finale{
  width:min(44vw,430px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(18px,3vw,38px);
}
.deco-photo{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
}
@media (max-width:700px){
  .deco-cover{ width:88vw; }
  .seq-item.deco-tall{ width:64vw; }
  .seq-item.deco-finale{ width:72vw; }
}


/* Homepage hero carousel */
.hero-carousel{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  background:var(--c-black);
}
.hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity .6s ease;
}
.hero-slide.is-active{ opacity:1; }
.hero-slide img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.hero-shade{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(0,0,0,.10) 0%,rgba(0,0,0,.04) 42%,rgba(0,0,0,.28) 100%);
}
.hero-dots{
  position:absolute;
  left:var(--gutter);
  bottom:28px;
  z-index:3;
  display:flex;
  gap:9px;
}
.hero-dot{
  width:28px;
  height:2px;
  padding:0;
  border:0;
  background:rgba(255,255,255,.38);
  cursor:pointer;
  transition:background .25s ease,transform .25s ease;
}
.hero-dot.is-active{
  background:#fff;
  transform:scaleX(1.15);
}
@media (max-width:700px){
  .hero-slide img{ object-position:center center; }
  .hero-dots{ bottom:22px; }
  .hero-dot{ width:22px; }
}


/* Launch-safe real image replacements */
.spread-lead,
.spread-support,
.preview-img {
  overflow: hidden;
}
.spread-photo,
.about-work-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spread-lead .spread-photo { min-height: 100%; }
.spread-support .spread-photo { min-height: 100%; }
.about-work-photo { aspect-ratio: 3 / 4; }

/* Preserve the contact-sheet proportions and show each select in full. */
.gallery-select { margin: 0; }
.gallery-select img { display: block; width: 100%; height: 100%; object-fit: contain; }

.spread .spread-photo, .preview-img .about-work-photo {
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
}
@media (max-width: 700px) {
  .parachute-slide img { object-position: 83% center; }
  .underwater-slide img { object-position: 68% center; }
  .desert-slide img { object-position: 69% center; }
}

/* Site-wide dark editorial palette; no changes to image geometry or intro. */
html { background: #000; }
.ph { background: #000; }
.ph::after { color: rgba(251,251,248,.65); }
.ph::before { border-color: rgba(251,251,248,.16); }
.undertow-slot-placeholder { background: #000; color: rgba(251,251,248,.65); border-color: var(--c-line); }
body .swim-story-dot { color: var(--c-white); border-color: var(--c-line); }
body .swim-story-dot[aria-expanded="true"], body .swim-story-dot:focus-visible { border-color: var(--c-white); }
body .swim-story-tip { border: 1px solid var(--c-line); }
@media (max-width: 580px) {
  body .swim-story-dot::before { border-color: var(--c-line); }
  body .swim-story-dot[aria-expanded="true"]::before, body .swim-story-dot:focus-visible::before { border-color: var(--c-white); }
}
