* { box-sizing: border-box; }

:root {
  --paper: #f6f0e6;
  --paper-soft: #fbf7ef;
  --ink: #151411;
  --muted: #5f584e;
  --faint: #8b8173;
  --line: rgba(21, 20, 17, .18);
  --line-strong: rgba(21, 20, 17, .34);
  --accent: #7a4d2d;
  --accent-soft: #d7c0a8;
  --max: 1120px;
}

/* SMOKE:DW_CSS_EDITORIAL_V0_4 */

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 5.75rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: .75rem 1rem;
}

.skip-link:focus { left: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 3rem);
  background: rgba(246, 240, 230, .94);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(8.5rem, 16vw, 12rem);
  height: auto;
}

nav {
  display: flex;
  gap: clamp(.85rem, 2vw, 1.5rem);
  color: var(--muted);
  font-size: .9rem;
}

nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

nav a:hover { color: var(--ink); }

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.hero,
.section {
  border-bottom: 1px solid var(--line);
}

.hero {
  min-height: min(86svh, 760px);
  display: grid;
  align-items: end;
  padding: clamp(6rem, 12vw, 9rem) 0 clamp(3.4rem, 7vw, 6rem);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .92fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: stretch;
}

.hero-copy-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.section { padding: clamp(3.4rem, 7.5vw, 6rem) 0; }

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .16em;
  font: 700 .74rem/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
}

h1,
h2,
h3,
p { margin: 0; }

p,
a,
li { overflow-wrap: break-word; }

.hero-copy-block,
.hero-note,
.module-row > *,
.module-head > *,
.ai-layout > *,
.lede { min-width: 0; }

h1,
h2 {
  font-family: Georgia, Cambria, "Times New Roman", Times, serif;
  font-weight: 400;
  letter-spacing: -.035em;
}

/* One large serif moment only: the hero. */
h1 {
  max-width: 10ch;
  line-height: .96;
  letter-spacing: -.045em;
  font-size: clamp(3.25rem, 12vw, 8.5rem);
}

.hero-title-line { display: block; }

/* Section headings are quiet, not broadsheet. */
.h-quiet {
  max-width: 22ch;
  line-height: 1.06;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}

h3 {
  font-size: 1.12rem;
  line-height: 1.18;
  letter-spacing: -.015em;
}

.hero-copy,
.hero-note p:not(.mono),
.lede,
.world-index p,
.route-index p,
.ai-points,
.slot-note,
.fine-print,
.disclosure {
  color: var(--muted);
}

.hero-copy {
  max-width: 56ch;
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin-top: 2rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
  color: var(--muted);
}

.text-link.strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-note,
.boundary-note {
  border-top: 1px solid var(--line-strong);
  padding-top: 1rem;
}

.hero-logo {
  display: block;
  width: min(100%, 16rem);
  height: auto;
  margin: 0 0 1.4rem;
}

.status-chip,
.pending,
.fine-print,
.slot-status {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent) !important;
  font-weight: 700;
}

/* Light editorial modules: stacked, generous spacing, thin rules. */
.module-row {
  display: grid;
  gap: 1.15rem;
  max-width: 70ch;
}

.module-head {
  display: grid;
  gap: 1rem;
  max-width: 64ch;
  margin-bottom: 2.4rem;
}

.lede {
  max-width: 60ch;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.timeline-list,
.tag-list,
.brief-list {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  list-style: none;
  margin: .25rem 0 0;
  padding: 0;
}

.timeline-list li,
.tag-list li,
.brief-list li,
.social-pending {
  border: 1px solid var(--line);
  padding: .55rem .7rem;
  color: var(--muted);
  font: 700 .72rem/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.card-number,
.mono {
  font: 700 .74rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  color: var(--accent);
}

/* Four worlds as a quiet thin-rule index, not cards. */
.world-index,
.route-index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.world-index li,
.route-index li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: .3rem 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.world-index .card-number,
.route-index .card-number { grid-row: span 3; }

.world-index h3,
.route-index h3 { align-self: center; }

.world-link {
  grid-column: 2;
  color: var(--accent);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}

/* Photography proof strip: three image/caption panels. */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.photo-slot {
  margin: 0;
  display: grid;
  gap: .85rem;
}

.photo-frame {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(251,247,239,.9), rgba(215,192,168,.32)),
    repeating-linear-gradient(-45deg, rgba(21,20,17,.07) 0 1px, transparent 1px 18px);
}

.slot-kind {
  font-weight: 700;
  letter-spacing: -.01em;
}

.slot-note {
  font-size: .95rem;
}

.slot-status {
  margin-top: .35rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .68rem;
}

/* Quiet AI Lab. */
.ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

.ai-points {
  display: grid;
  gap: .9rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.ai-points li {
  padding-left: 1.1rem;
  border-left: 2px solid var(--accent-soft);
  font-size: 1rem;
}

.ai-points strong { color: var(--ink); }

.ai-diagram {
  margin: 0;
  border: 1px solid var(--line-strong);
  background: rgba(251, 247, 239, .5);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.diagram-label {
  margin-bottom: 1.1rem;
  letter-spacing: .2em;
}

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .65rem;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: .95rem;
}

.flow-step + .flow-step { position: relative; }

.flow-tag {
  flex: none;
  min-width: 2.6rem;
  text-align: center;
  padding: .25rem .35rem;
  border: 1px solid var(--line-strong);
  font: 700 .64rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
  color: var(--accent);
}

.flow-gate {
  border-color: var(--accent);
  border-width: 1.5px;
}

.redacted {
  display: inline-block;
  width: 3.5rem;
  height: .85em;
  margin-left: .35rem;
  vertical-align: -.1em;
  background: var(--ink);
  opacity: .82;
  border-radius: 1px;
}

.diagram-note {
  margin-top: 1.1rem;
  color: var(--muted);
  letter-spacing: .08em;
  font-size: .7rem;
}

.video-placeholder {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(251,247,239,.88), rgba(215,192,168,.3)),
    repeating-linear-gradient(-45deg, rgba(21,20,17,.08) 0 1px, transparent 1px 18px);
  color: var(--paper-soft);
  text-decoration: none;
}

.video-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  filter: saturate(.84) contrast(.9) brightness(.82);
}

.video-placeholder::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(251, 247, 239, .55);
  z-index: 1;
  pointer-events: none;
}

.video-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21,20,17,.06), rgba(21,20,17,.58));
  z-index: 1;
  pointer-events: none;
}

.video-placeholder span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  width: min(320px, calc(100% - 2rem));
  padding: .55rem .65rem;
  background: rgba(21, 20, 17, .58);
  font: 700 .74rem/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.video-link:focus-visible,
.social-pending:focus-visible,
.pending a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.video-link:hover span,
.social-pending:hover,
.pending a:hover {
  color: var(--ink);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.site-footer {
  padding: 2.5rem 0;
  color: var(--muted);
}

.footer-inner {
  display: grid;
  gap: 1rem;
  font-size: .9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
}

.footer-links a { min-height: 36px; }

/* ---- V0.4 editorial imagery ---- */

/* Shared framed image: thin rule, paper mat, muted coastal cover crop. */
.hero-figure,
.about-figure,
.water-figure,
.ai-figure,
.photo-slot {
  margin: 0;
  position: relative;
}

.hero-figure img,
.about-figure img,
.water-figure img,
.ai-figure img,
.photo-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: var(--paper-soft);
}

.figure-caption {
  margin-top: .6rem;
  color: var(--faint);
  letter-spacing: .14em;
  font-size: .66rem;
  text-transform: uppercase;
}

/* Hero frame fills the column height beside the headline. */
.hero-figure {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-figure img {
  aspect-ratio: 4 / 5;
  min-height: clamp(20rem, 40vw, 30rem);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  margin: 2.25rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.hero-meta dt {
  margin-bottom: .3rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-meta dd {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  max-width: 28ch;
}

/* About: portrait offset against the copy, image dropped slightly for rhythm. */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}

.about-figure img { aspect-ratio: 3 / 2; }

.about-figure { margin-top: clamp(0rem, 3vw, 2.5rem); }

/* Water: overlapping tall + wide frames, asymmetric. */
.water-media {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: clamp(1rem, 3vw, 2rem);
}

.water-figure--tall img {
  aspect-ratio: 3 / 4;
  min-height: clamp(18rem, 34vw, 28rem);
}

.water-figure--wide {
  margin-bottom: clamp(1.5rem, 4vw, 3.5rem);
}

.water-figure--wide img { aspect-ratio: 4 / 3; }

/* Photography board: three selects, first one wide. */
.photo-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.photo-slot {
  display: grid;
  gap: .75rem;
  align-content: start;
}

.photo-slot img { aspect-ratio: 4 / 5; }

.photo-slot--ocean {
  grid-column: 1 / -1;
}

.photo-slot--ocean img { aspect-ratio: 16 / 9; }

.photo-slot .slot-note {
  color: var(--faint);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .66rem;
}

/* AI: coastal frame stacked above the redacted flow. */
.ai-media {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.ai-figure img { aspect-ratio: 4 / 3; }

@media (max-width: 960px) {
  .photo-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 1.25rem);
    max-width: var(--max);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: .75rem 1rem;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .hero {
    min-height: auto;
    padding-top: 4.5rem;
  }

  .hero-layout,
  .about-layout,
  .ai-layout,
  .water-media,
  .photo-board,
  .hero-meta {
    grid-template-columns: 1fr;
  }

  .water-figure--wide { margin-bottom: 0; }

  .about-figure { margin-top: 0; }

  .hero-figure img { aspect-ratio: 4 / 3; }

  h1 {
    max-width: 100%;
    font-size: clamp(3rem, 13vw, 4rem);
    letter-spacing: -.055em;
  }

  .hero-copy {
    width: 100%;
    max-width: 21rem;
    font-size: clamp(1rem, 4.2vw, 1.12rem);
    overflow-wrap: anywhere;
  }

  .lede,
  .hero-copy-block p,
  .module-row p {
    max-width: calc(100vw - 1.25rem);
    overflow-wrap: anywhere;
  }

  .hero-copy-block,
  .hero-note,
  .cta-row {
    max-width: calc(100vw - 1.25rem);
  }

  .cta-row {
    display: grid;
    justify-items: start;
    gap: .2rem;
  }

  .eyebrow {
    letter-spacing: .11em;
    overflow-wrap: anywhere;
  }

  .text-link {
    max-width: 100%;
    white-space: normal;
  }

  .world-index li,
  .route-index li {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: .3rem 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
/* Mobile hard guard: force hero prose to wrap inside narrow screenshot/browser viewports. */
@media (max-width: 760px) {
  .hero-copy {
    max-width: 18rem !important;
    width: 18rem !important;
  }
}
