/* ============================================================
   SEAGRAPE — Private Facial Plastic Surgery, Palm Beach
   A design concept by Pointed (fictional practice). v3 — image-first.
   The photography IS the layout; type sits on and beside it.
   Palette: plaster / shell / palm / guava / brass.
   Type: Cormorant (display) + Jost (body/UI).
   ============================================================ */

:root {
  --plaster: #FBF4EA;
  --shell: #F7E4DA;
  --palm: #1F4A36;
  --palm-deep: #132E22;
  --guava: #DE7356;
  --guava-deep: #A84B31;
  --brass: #8E7040;
  --ink-soft: #33413A;
  --on-palm: #E9DFCE;
  --hairline: rgba(142, 112, 64, 0.35);

  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Century Gothic', 'Segoe UI', sans-serif;

  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--plaster);
}
img { max-width: 100%; display: block; }

h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--palm);
  line-height: 1.05;
  font-size: clamp(36px, 4.8vw, 58px);
  margin: 0 0 0.4em;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--guava-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--palm);
  outline-offset: 3px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(64px, 9vw, 110px) 0; }

/* ---------- Skip link (keyboard users) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--palm-deep);
  color: var(--plaster);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Concept notice bar ---------- */
.concept-bar {
  background: var(--palm-deep);
  color: var(--on-palm);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 8px 16px;
}
.concept-bar a { color: #ffffff; font-weight: 500; }

/* ---------- Header (transparent over hero) ---------- */
.sg-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 244, 234, 0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.sg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}
.sg-wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.22em;
  color: var(--palm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.sg-wordmark img { width: 25px; height: 25px; }
.sg-place {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--brass);
  text-transform: uppercase;
}
.sg-header-right { display: flex; align-items: center; gap: 26px; }

/* ---------- Buttons ---------- */
.sg-btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: none;
  text-decoration: none;
  color: #ffffff;
  background: var(--guava-deep);
  border: 0;
  border-radius: 999px;
  padding: 11px 24px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}
.sg-btn:hover { background: var(--palm); }
.sg-btn-onimage {
  background: rgba(251, 244, 234, 0.96);
  color: var(--palm-deep);
}
.sg-btn-onimage:hover { background: #ffffff; color: var(--palm-deep); }
.sg-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--guava-deep);
  text-decoration: none;
}
.sg-link:hover { text-decoration: underline; }

/* ---------- Idioms ---------- */
.sg-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--guava-deep);
  margin: 0 0 22px;
}
.sg-eyebrow-onpalm { color: var(--on-palm); }
.sg-eyebrow-onimage { color: var(--plaster); }

/* Photo toning — one warm world */
.tone-soft { filter: sepia(0.14) saturate(0.92) contrast(0.97) brightness(1.02); }

/* ============================================================
   HERO — full-bleed photograph, type ON the image
   ============================================================ */
.hero-full {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-full > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(19, 46, 34, 0.78) 0%,
    rgba(19, 46, 34, 0.28) 42%,
    rgba(19, 46, 34, 0.05) 70%);
}
.hero-content {
  position: relative;
  width: 100%;
  padding: 0 0 clamp(48px, 7vw, 90px);
}
.hero-content h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.98;
  color: var(--plaster);
  margin: 0 0 22px;
  max-width: 9em;
}
.hero-content h1 em { font-style: italic; color: #F4C7A8; }
.hero-lede {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(251, 244, 234, 0.92);
  max-width: 34em;
  margin-bottom: 34px;
}
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-actions .sg-link { color: var(--plaster); }

/* ---------- Still line (former marquee — luxury holds still) ---------- */
.marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 14px 26px;
  background: var(--plaster);
  text-align: center;
}
.marquee-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  letter-spacing: 0.05em;
  color: var(--palm);
}
.marquee-line i { color: var(--guava-deep); font-style: normal; padding: 0 26px; }

/* ============================================================
   DOCTRINE — staggered lines, leaf watermark
   ============================================================ */
.band-shell { background: var(--shell); }
.doctrine-wrap { position: relative; }
.doctrine-wrap .watermark {
  position: absolute;
  right: 4%;
  top: -34px;
  width: clamp(140px, 22vw, 260px);
  opacity: 0.14;
  pointer-events: none;
}
.doctrine-lines {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--palm);
  line-height: 1.12;
}
.doctrine-lines .l1 { display: block; font-size: clamp(38px, 6vw, 76px); }
.doctrine-lines .l2 {
  display: block;
  font-style: italic;
  font-size: clamp(34px, 5.4vw, 68px);
  margin-left: clamp(24px, 14vw, 190px);
  color: var(--guava-deep);
}
.doctrine-lines .l3 {
  display: block;
  font-size: clamp(38px, 6vw, 76px);
  margin-left: clamp(48px, 26vw, 360px);
}
.doctrine-sub {
  margin-top: 30px;
  margin-left: clamp(48px, 26vw, 360px);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--guava-deep);
}

/* ============================================================
   SPLIT — half-viewport image, half copy. No frames, no cutouts.
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split-img { position: relative; min-height: clamp(420px, 78vh, 760px); overflow: hidden; }
.split-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 96px);
}
.split-copy p { max-width: 30em; }
.photo-caption {
  position: absolute;
  left: 22px;
  bottom: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: rgba(251, 244, 234, 0.95);
  text-shadow: 0 1px 10px rgba(19, 46, 34, 0.5);
}

/* ============================================================
   THE WORK — index rows beside a full-height photograph
   ============================================================ */
.work-wrap {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}
.index-rows { align-self: center; }
.index-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: clamp(14px, 2vw, 30px);
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
}
.index-row:last-of-type { border-bottom: 1px solid var(--hairline); }
.index-no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--guava-deep);
}
.index-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 42px);
  color: var(--palm);
  line-height: 1.05;
  margin: 0 0 6px;
}
.index-desc { font-size: 15.5px; margin: 0; max-width: 30em; }
.work-photo { position: relative; min-height: 560px; overflow: hidden; }
.work-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   APPROACH — full-bleed aerial band, then connected steps
   ============================================================ */
.photo-band {
  position: relative;
  min-height: clamp(380px, 62vh, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.photo-band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-band .band-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(19, 46, 34, 0.72) 0%,
    rgba(19, 46, 34, 0.12) 45%,
    rgba(19, 46, 34, 0.0) 70%);
}
.photo-band .band-title {
  position: relative;
  padding-bottom: clamp(36px, 5vw, 64px);
}
.photo-band h2 { color: var(--plaster); margin: 0; }
.photo-band .band-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(251, 244, 234, 0.85);
  margin-bottom: 14px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: 26px;
}
.step { border-top: 1px solid var(--hairline); padding-top: 22px; position: relative; }
.step-num {
  position: absolute;
  top: -19px;
  left: 0;
  background: var(--plaster);
  padding-right: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  color: var(--guava-deep);
}
.step h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 23px;
  color: var(--palm);
  margin: 16px 0 10px;
}
.step p { font-size: 15.5px; }

/* ---------- Shadow quote band ---------- */
.shadow-band {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--shell);
}
.shadow-band > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.5) saturate(0.65) brightness(1.06) hue-rotate(-6deg);
  opacity: 0.55;
}
.shadow-quote {
  position: relative;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 48px);
  color: var(--palm-deep);
  text-align: center;
  max-width: 18em;
  padding: 70px 26px;
}

/* ---------- Consultation (palm-deep band) ---------- */
.band-deep {
  background: var(--palm-deep);
  position: relative;
  overflow: hidden;
}
.band-deep .container { position: relative; }
.consult-tight { padding: clamp(44px, 6vw, 72px) 0; }
.band-leaf {
  position: absolute;
  pointer-events: none;
}
/* Pronounced motif on the open green, left of the details column */
.leaf-a {
  width: clamp(360px, 38vw, 560px);
  left: -4%;
  top: 50%;
  transform: translateY(-52%) rotate(-14deg);
  opacity: 0.2;
}
.leaf-b {
  width: 200px;
  right: -46px;
  bottom: -44px;
  transform: rotate(150deg);
  opacity: 0.07;
}
.band-deep h2 { color: var(--plaster); }
.band-deep .consult-copy { color: var(--on-palm); max-width: 34em; }
.consult-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  margin-top: 30px;
  align-items: start;
}
.consult-details {
  color: var(--on-palm);
  font-size: 16px;
  line-height: 2.1;
}
.consult-details strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  color: var(--plaster);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.consult-form {
  background: var(--plaster);
  border-radius: 22px;
  padding: 28px 28px 26px;
}
.consult-form .field { margin-bottom: 12px; }
.consult-form label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--palm);
  margin-bottom: 7px;
}
.consult-form input, .consult-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink-soft);
  background: #ffffff;
  border: 1px solid #D9C9B4;
  border-radius: 10px;
  padding: 12px 14px;
}
.form-note { font-size: 13.5px; margin: 6px 0 18px; }
.concept-note {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--guava-deep);
  margin-top: 16px;
}

/* ---------- Footer ---------- */
.sg-footer {
  background: var(--plaster);
  border-top: 1px solid var(--hairline);
  padding: 46px 0 40px;
}
.sg-footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.sg-footer .credit {
  font-size: 13.5px;
  color: var(--ink-soft);
  max-width: 44em;
}
.sg-footer .credit a { color: var(--guava-deep); font-weight: 500; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-img { min-height: 60vh; }
  .work-wrap { grid-template-columns: 1fr; }
  .work-photo { min-height: 420px; order: -1; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .consult-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sg-place { display: none; }
  .sg-btn { font-size: 13px; padding: 12px 22px; }
  .sg-header-right { gap: 14px; }
  .index-row { grid-template-columns: 1fr; }
}
