:root {
  --bg: #111111;
  --panel: #151515;
  --text: #f3eee5;
  --muted: #b6ad9f;
  --line: rgba(243, 238, 229, 0.14);
  --accent: #e6dcc8;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #1a1a1a 0%, var(--bg) 55%);
  color: var(--text);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
}

body.is-loading {
  overflow: hidden;
}

body::selection {
  background: rgba(230, 220, 200, 0.22);
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 35%, #1f1f1f 0%, #131313 48%, #101010 100%);
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

body.is-ready .intro-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transform: translateY(-10px);
  animation: introFloat 3s ease-in-out infinite alternate;
}

.intro-logo {
  width: clamp(138px, 20vw, 210px);
  color: var(--accent);
  filter: drop-shadow(0 12px 42px rgba(0, 0, 0, 0.42));
}

.intro-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  padding-left: 0.52em;
}

.page {
  width: min(760px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 72px 0 96px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.95s ease, transform 0.95s ease;
}

body.is-ready .page {
  opacity: 1;
  transform: none;
}

.hero,
.section {
  border-top: 1px solid var(--line);
  padding: 28px 0 34px;
}

.hero {
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  color: var(--accent);
  flex: 0 0 auto;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.type-wrap {
  margin: 0;
  min-height: 1.2em;
  font-size: clamp(2.7rem, 8vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.cursor {
  display: inline-block;
  width: 0.09em;
  height: 0.9em;
  margin-left: 0.08em;
  background: var(--accent);
  vertical-align: -0.08em;
  animation: blink 1.05s steps(1) infinite;
}

.lede,
.section p,
.section li {
  max-width: 38rem;
  font-size: 1.16rem;
  line-height: 1.75;
  color: var(--text);
}

.lede {
  margin: 24px 0 0;
}

h2 {
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.section p {
  margin: 0 0 16px;
}

.philosophy {
  margin: 0;
  padding-left: 1.15rem;
}

.philosophy li {
  margin-bottom: 0.6rem;
}

.project-placeholder {
  width: fit-content;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
}

.contact a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(230, 220, 200, 0.35);
}

.contact a:hover {
  border-bottom-color: rgba(230, 220, 200, 0.8);
}

@keyframes blink {
  0%,
  48% {
    opacity: 1;
  }
  49%,
  100% {
    opacity: 0;
  }
}

@keyframes introFloat {
  from {
    transform: translateY(-8px) scale(0.992);
  }
  to {
    transform: translateY(8px) scale(1.008);
  }
}

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

  .intro-overlay,
  .page,
  .cursor,
  .intro-inner {
    animation: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100vw - 32px, 760px);
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .hero,
  .section {
    padding: 24px 0 28px;
  }

  .lede,
  .section p,
  .section li {
    font-size: 1.04rem;
    line-height: 1.68;
  }
}
