:root {
  --bg-0: #070b10;
  --bg-1: #0e161d;
  --bg-2: #16222c;
  --ink: #f3eee4;
  --ink-soft: #c8c2b6;
  --muted: #8a939c;
  --line: rgba(243, 238, 228, 0.11);
  --line-strong: rgba(243, 238, 228, 0.22);
  --accent: #7eb8b0;
  --accent-bright: #9fd0c8;
  --accent-deep: #3f6f6a;
  --sand: #d6c7a3;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3.25rem;
  --space-xl: 7.5rem;
  --max: 72rem;
  --radius: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  background: var(--bg-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-bright);
}

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(95% 70% at 8% 0%, rgba(126, 184, 176, 0.18), transparent 52%),
    radial-gradient(80% 55% at 92% 12%, rgba(214, 199, 163, 0.1), transparent 48%),
    linear-gradient(168deg, #060a0e 0%, var(--bg-1) 42%, #101920 100%);
}

.atmosphere__wash {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(ellipse 48% 36% at 42% 8%, rgba(63, 111, 106, 0.34), transparent 70%),
    radial-gradient(ellipse 40% 30% at 70% 60%, rgba(126, 184, 176, 0.08), transparent 65%);
  animation: wash-drift 20s var(--ease-soft) infinite alternate;
}

.atmosphere__beam {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(126, 184, 176, 0.05) 48%,
    transparent 62%
  );
  animation: beam-sweep 14s var(--ease-soft) infinite alternate;
}

.atmosphere__grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(243, 238, 228, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 238, 228, 0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 88%);
}

.atmosphere__glow {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  left: 58%;
  top: 32%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(126, 184, 176, 0.14), transparent 66%);
  filter: blur(10px);
  animation: glow-breathe 13s var(--ease-soft) infinite alternate;
}

.atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

@keyframes wash-drift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 2.5%, 0) scale(1.06);
  }
}

@keyframes beam-sweep {
  from {
    transform: translateX(-4%) rotate(0.2deg);
    opacity: 0.55;
  }
  to {
    transform: translateX(5%) rotate(-0.4deg);
    opacity: 1;
  }
}

@keyframes glow-breathe {
  from {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate(-46%, -44%) scale(1.1);
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 1rem clamp(1.25rem, 4vw, 2.75rem);
  backdrop-filter: blur(14px) saturate(1.1);
  background: rgba(7, 11, 16, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 11, 16, 0.78);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1.15rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  transform: scaleX(1);
}

/* Hero — text left, portrait right, full-bleed composition */
.hero {
  --hero-pad-x: clamp(1.25rem, 5vw, 3rem);
  min-height: calc(100vh - 4rem);
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0;
  padding: 0;
  max-width: none;
  overflow: hidden;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 8vh, 5.5rem) var(--hero-pad-x) clamp(2.75rem, 8vh, 5rem);
  max-width: 40rem;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.15rem;
  color: var(--sand);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__index,
.section__index {
  color: var(--accent);
  letter-spacing: 0.12em;
}

.hero__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.15rem, 4.6vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  white-space: nowrap;
}

.hero__headline {
  margin: 1.15rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  color: var(--accent);
  letter-spacing: -0.015em;
  max-width: 22ch;
}

.hero__lede {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: clamp(1.02rem, 1.55vw, 1.12rem);
  line-height: 1.7;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: min(58vh, 32rem);
  margin: 0;
  padding: 0 var(--hero-pad-x);
  background: transparent;
}

.hero__photo {
  display: block;
  width: 75%;
  max-width: 22rem;
  height: auto;
  aspect-ratio: 477 / 716;
  object-fit: cover;
  object-position: center 18%;
  /* Soft dissolve into page bg on all four sides */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
  }

  .hero__copy {
    max-width: none;
    padding: clamp(3rem, 10vh, 6.5rem) clamp(1.5rem, 4vw, 3.25rem)
      clamp(3.5rem, 10vh, 6.5rem) clamp(1.75rem, 5vw, 3.5rem);
    justify-self: end;
    width: min(100%, 38rem);
  }

  .hero__visual {
    /* Center portrait in the right gutter (text end → viewport edge) */
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 4rem);
    margin: 0;
    padding: clamp(2rem, 5vh, 3.75rem) clamp(1.5rem, 3.5vw, 2.75rem);
    background: transparent;
  }

  .hero__photo {
    width: 75%;
    max-width: none;
    height: auto;
    max-height: calc(100vh - 8rem);
    aspect-ratio: 477 / 716;
    object-fit: cover;
    /* Four-sided soft mask — edges dissolve into --bg-0, no dark rim */
    -webkit-mask-image:
      linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image:
      linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%),
      linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.4rem;
}

.cta-group--contact {
  margin-top: 2.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.3s var(--ease-out), color 0.3s ease, border-color 0.3s ease,
    transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: #071015;
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 0 0 0 rgba(126, 184, 176, 0);
}

.btn--primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: #071015;
  box-shadow: 0 10px 30px rgba(126, 184, 176, 0.18);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.025);
}

.btn--ghost:hover {
  border-color: rgba(126, 184, 176, 0.6);
  color: var(--accent-bright);
}

/* Sections */
.section {
  padding: var(--space-xl) clamp(1.25rem, 5vw, 3rem);
}

.section--alt {
  background: linear-gradient(180deg, rgba(22, 34, 44, 0.55), rgba(7, 11, 16, 0.15));
  border-block: 1px solid var(--line);
}

.section--notes {
  padding-top: calc(var(--space-xl) - 1rem);
}

.section--contact {
  padding-bottom: calc(var(--space-xl) + 0.5rem);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__head {
  max-width: 44rem;
  margin-bottom: 0.5rem;
}

.section__head--row {
  display: grid;
  gap: 1.25rem 3rem;
  max-width: none;
  margin-bottom: 2rem;
}

@media (min-width: 860px) {
  .section__head--row {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
  }
}

.section__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  color: var(--sand);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section__lede {
  margin: 1.1rem 0 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-weight: 300;
}

.section__lede--narrow {
  margin-top: 0;
  max-width: 28rem;
  font-size: 0.98rem;
}

.focus-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.75rem;
}

@media (min-width: 720px) {
  .focus-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.75rem;
  }
}

.focus-block {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  transition: border-color 0.35s ease, transform 0.35s var(--ease-out);
}

.focus-block:hover {
  border-top-color: rgba(126, 184, 176, 0.55);
  transform: translateY(-3px);
}

.focus-block h3 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.focus-block ul,
.proof-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.focus-block li,
.proof-lines li {
  position: relative;
  padding: 0.38rem 0 0.38rem 1rem;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 0.97rem;
}

.focus-block li::before,
.proof-lines li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 0.4rem;
  height: 1px;
  background: var(--accent-deep);
}

.focus-note {
  margin: 2.75rem 0 0;
  max-width: 46rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 300;
}

/* Editorial list — potodesign #blog spirit */
.editorial-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.editorial-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 1rem 1.5rem;
  align-items: baseline;
  padding: 1.35rem 0.35rem 1.35rem 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: background 0.35s var(--ease-out), padding 0.35s var(--ease-out),
    border-color 0.35s ease;
}

.editorial-row:hover {
  background: linear-gradient(90deg, rgba(126, 184, 176, 0.07), transparent 70%);
  padding-left: 0.65rem;
  border-bottom-color: rgba(126, 184, 176, 0.35);
}

.editorial-row__meta {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.editorial-row__body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  transition: color 0.3s ease, transform 0.35s var(--ease-out);
}

.editorial-row:hover .editorial-row__body h3 {
  color: var(--accent-bright);
  transform: translateX(4px);
}

.editorial-row__body p {
  margin: 0.4rem 0 0;
  max-width: 36rem;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 0.95rem;
}

.editorial-row__tag {
  align-self: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}

.editorial-row:hover .editorial-row__tag {
  color: var(--sand);
}

@media (max-width: 700px) {
  .editorial-row {
    grid-template-columns: 3.5rem 1fr;
  }

  .editorial-row__tag {
    grid-column: 2;
    margin-top: -0.35rem;
  }
}

.proof-groups {
  display: grid;
  gap: 2.25rem;
  margin-top: 2.75rem;
}

@media (min-width: 900px) {
  .proof-groups {
    grid-template-columns: 1.2fr 1fr;
  }

  .proof-group:last-child {
    grid-column: 1 / -1;
    max-width: 42rem;
  }
}

.proof-group {
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  transition: border-color 0.35s ease, transform 0.35s var(--ease-out);
}

.proof-group:hover {
  border-top-color: rgba(126, 184, 176, 0.5);
  transform: translateY(-2px);
}

.proof-group h3 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.proof-lines li {
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease, padding-left 0.3s var(--ease-out);
}

.proof-lines li:hover {
  color: var(--ink);
  border-bottom-color: var(--line);
  padding-left: 1.25rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.5rem clamp(1.25rem, 5vw, 3rem) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

.footer-link {
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-link:hover {
  color: var(--accent-bright);
}

/* Motion system */
.reveal {
  opacity: 0;
  will-change: opacity, transform, clip-path;
}

.reveal[data-reveal="up"] {
  transform: translateY(1.35rem);
  transition: opacity 0.53s var(--ease-out), transform 0.53s var(--ease-out);
}

.reveal[data-reveal="title"] {
  transform: translateY(1.75rem);
  letter-spacing: -0.01em;
  transition: opacity 0.63s var(--ease-out), transform 0.63s var(--ease-out),
    letter-spacing 0.63s var(--ease-out);
}

/* Clip the inner text, not the observed .reveal box — a fully clipped
   target reports 0 intersection, so replay hide() would stick forever. */
.reveal[data-reveal="clip"] {
  transform: translateY(0.6rem);
  transition: opacity 0.13s linear, transform 0.7s var(--ease-out);
}

.reveal[data-reveal="clip"] > * {
  display: block;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-out);
}

.reveal[data-reveal="clip"].is-visible > * {
  clip-path: inset(0 0 0 0);
}

.reveal[data-reveal="row"] {
  transform: translateY(1.1rem);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal[data-reveal="photo"] {
  opacity: 0;
  transform: translateX(1.25rem) scale(1.02);
  transition: opacity 0.77s var(--ease-out), transform 0.77s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
  letter-spacing: -0.03em;
}

.reveal[data-reveal="up"].is-visible,
.reveal[data-reveal="row"].is-visible,
.reveal[data-reveal="photo"].is-visible {
  letter-spacing: inherit;
}

[data-stagger] .reveal.is-visible:nth-child(1) {
  transition-delay: 0.027s;
}
[data-stagger] .reveal.is-visible:nth-child(2) {
  transition-delay: 0.08s;
}
[data-stagger] .reveal.is-visible:nth-child(3) {
  transition-delay: 0.133s;
}
[data-stagger] .reveal.is-visible:nth-child(4) {
  transition-delay: 0.187s;
}
[data-stagger] .reveal.is-visible:nth-child(5) {
  transition-delay: 0.24s;
}
[data-stagger] .reveal.is-visible:nth-child(6) {
  transition-delay: 0.293s;
}

.hero__copy .reveal:nth-child(1) {
  transition-delay: 0.033s;
}
.hero__copy .reveal:nth-child(2) {
  transition-delay: 0.093s;
}
.hero__copy .reveal:nth-child(3) {
  transition-delay: 0.16s;
}
.hero__copy .reveal:nth-child(4) {
  transition-delay: 0.227s;
}
.hero__copy .reveal:nth-child(5) {
  transition-delay: 0.293s;
}
.hero__visual.reveal {
  transition-delay: 0.147s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .atmosphere__wash,
  .atmosphere__beam,
  .atmosphere__glow {
    animation: none;
  }

  .reveal,
  .reveal.is-visible,
  .reveal[data-reveal="clip"] > * {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
    letter-spacing: inherit !important;
  }

  .btn:hover,
  .focus-block:hover,
  .proof-group:hover,
  .editorial-row:hover .editorial-row__body h3 {
    transform: none;
  }
}

@media (max-width: 899px) {
  .hero {
    min-height: auto;
  }

  .hero__name {
    white-space: normal;
    font-size: clamp(2rem, 8.2vw, 2.65rem);
  }

  .hero__visual {
    min-height: min(52vh, 26rem);
    padding-inline: var(--hero-pad-x);
  }

  .hero__photo {
    object-position: center 12%;
    width: 72%;
    max-width: 18rem;
  }

  .hero__copy {
    padding-top: 1.75rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
    gap: 0.6rem 0.95rem;
  }

  .btn {
    width: 100%;
  }
}
