:root {
  --ink: #243c3a;
  --ink-soft: #5d6966;
  --paper: #fbf8f4;
  --petal: #f7efe9;
  --rose: #9f6d62;
  --rose-dark: #744d48;
  --gold: #d8b86a;
  --sage: #b9c7b4;
  --line: rgba(36, 60, 58, 0.14);
  --shadow: 0 24px 70px rgba(87, 61, 50, 0.13);
  --radius: 8px;
  --container: min(1160px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(216, 184, 106, 0.18), transparent 28%),
    linear-gradient(140deg, #fbf8f4 0%, #f6eee8 46%, #edf2ec 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(34px);
  opacity: 0.26;
  pointer-events: none;
  z-index: -1;
  animation: drift 14s ease-in-out infinite alternate;
}

.ambient-one {
  top: 12%;
  right: 7%;
  background: #d8b86a;
}

.ambient-two {
  bottom: 2%;
  left: 4%;
  background: #b9c7b4;
  animation-delay: -4s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: var(--container);
  margin: 18px auto 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(251, 248, 244, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(87, 61, 50, 0.08);
  border-radius: var(--radius);
}

.brand,
.nav,
.hero-actions,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-family: "Playfair Display", serif;
}

.nav {
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--rose-dark);
}

.nav-action,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-action {
  padding: 0 18px;
  color: #fff;
  background: var(--rose-dark);
}

.button {
  padding: 0 22px;
  border: 1px solid var(--line);
}

.button:hover,
.nav-action:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 16px 34px rgba(36, 60, 58, 0.18);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.42);
}

.section-grid,
.section,
.system-section,
.contact-section {
  width: var(--container);
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 82px);
  padding: 86px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.94fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.98;
  overflow-wrap: normal;
}

h1 {
  max-width: 690px;
  font-size: clamp(46px, 5.8vw, 86px);
}

h2 {
  font-size: clamp(34px, 5vw, 64px);
}

h3 {
  margin: 0;
  font-size: 22px;
  overflow-wrap: normal;
}

p {
  overflow-wrap: break-word;
}

.hero-text {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-media {
  position: relative;
  min-height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(36, 60, 58, 0.36));
  z-index: 1;
}

.floating-note {
  position: absolute;
  z-index: 2;
  width: 156px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(251, 248, 244, 0.76);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  animation: float 5s ease-in-out infinite;
}

.floating-note span {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 34px;
  line-height: 1;
}

.floating-note p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.note-top {
  top: 24px;
  left: 24px;
}

.note-bottom {
  right: 24px;
  bottom: 24px;
  animation-delay: -2s;
}

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 36px;
  padding: 18px 0;
  animation: marquee 26s linear infinite;
}

.marquee span {
  color: rgba(36, 60, 58, 0.62);
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 3vw, 42px);
  white-space: nowrap;
}

.section {
  padding: 106px 0;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 36px;
}

.section-heading p:last-child,
.system-copy p,
.contact-section p {
  color: var(--ink-soft);
  font-size: 18px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 340px;
  gap: 18px;
}

.work-card {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #ddd;
}

.work-card.large {
  grid-column: span 2;
}

.work-card.wide {
  grid-column: span 2;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 18, 17, 0.04), rgba(14, 18, 17, 0.68));
}

.work-card img {
  transition: transform 0.7s ease;
}

.work-card:hover img {
  transform: scale(1.045);
}

.work-card-content {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: #fff;
}

.work-card-content p {
  max-width: 560px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 10px;
  color: var(--ink);
  background: rgba(251, 248, 244, 0.82);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.system-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 34px;
  align-items: center;
  padding: 76px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.38);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(87, 61, 50, 0.08);
}

.system-copy .button {
  margin-top: 20px;
}

.token-panel {
  display: grid;
  gap: 12px;
}

.token-row {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(251, 248, 244, 0.56);
  border-radius: var(--radius);
}

.token-row span {
  width: 48px;
  height: 48px;
  background: var(--swatch);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(36, 60, 58, 0.1);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.process-grid article {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
}

.process-grid span {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--rose-dark);
  font-family: "Playfair Display", serif;
  font-size: 34px;
}

.process-grid p {
  color: var(--ink-soft);
}

.contact-section {
  margin-bottom: 34px;
  padding: 86px 42px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: -35% 10% auto;
  height: 280px;
  background: radial-gradient(circle, rgba(216, 184, 106, 0.28), transparent 70%);
}

.contact-section > * {
  position: relative;
}

.contact-section p {
  max-width: 620px;
  margin: 18px auto 28px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-section .button-primary {
  color: var(--ink);
  background: #fff;
}

.footer {
  width: var(--container);
  min-height: 76px;
  margin: 0 auto;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 14px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  from,
  to {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(22px, -18px, 0) scale(1.08);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  :root {
    --container: min(100vw - 28px, 720px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 58px;
  }

  .hero-media {
    min-height: 440px;
  }

  .work-grid,
  .process-grid,
  .system-section {
    grid-template-columns: 1fr;
  }

  .work-card,
  .work-card.large,
  .work-card.wide {
    grid-column: auto;
  }

  .system-section {
    padding: 40px 22px;
  }
}

@media (max-width: 560px) {
  :root {
    --container: calc(100vw - 24px);
  }

  .site-header {
    margin-top: 12px;
    gap: 10px;
  }

  .brand span:last-child,
  .nav-action {
    font-size: 13px;
  }

  .nav-action {
    padding: 0 12px;
  }

  .hero {
    padding: 42px 0 52px;
  }

  h1 {
    font-size: 46px;
  }

  .hero-media {
    min-height: 360px;
  }

  .floating-note {
    width: 132px;
    padding: 12px;
  }

  .note-top {
    top: 12px;
    left: 12px;
  }

  .note-bottom {
    right: 12px;
    bottom: 12px;
  }

  .section {
    padding: 76px 0;
  }

  .work-grid {
    grid-auto-rows: auto;
  }

  .work-card {
    min-height: 360px;
  }

  .contact-section {
    padding: 64px 18px;
  }

  .footer {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}
