:root {
  --bg: #f4f1ec;
  --text-primary: #1a1a1a;
  --text-secondary: #888;
  --text-tertiary: #bbb;
  --text-muted: #aaa;
  --text-soft: #666;
  --text-mid: #444;
  --border: #ddd;
  --border-light: #eee;
  --font-serif: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container-max: 900px;
  --gutter-desktop: 64px;
  --gutter-mobile: 28px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and legacy Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--text-primary);
  color: var(--bg);
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 300;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter-desktop);
}

.hero__inner {
  text-align: center;
  max-width: 900px;
}

.hero__brand {
  position: relative;
  display: inline-block;
}

.hero__brand::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  width: 520px;
  max-width: 92vw;
  height: 130px;
}

.hero__nav {
  position: absolute;
  bottom: calc(100% + 110px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 88px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
  white-space: nowrap;
}

.hero__brand:hover .hero__nav,
.hero__nav:focus-within {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.hero__nav a {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.hero__nav a:hover {
  color: var(--text-primary);
}

@media (hover: none) {
  .hero__nav {
    pointer-events: auto;
    animation: heroNavReveal 0.8s ease 1s forwards;
  }
}

@keyframes heroNavReveal {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.hero__title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(32px, 5.5vw, 56px);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero__subtitle {
  margin-top: 28px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  word-spacing: 0.4em;
  text-transform: lowercase;
  color: #999;
}

.hero__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  animation: heroWord 2s ease forwards;
}

.hero__word:nth-child(1) { animation-delay: 0.3s; }
.hero__word:nth-child(2) { animation-delay: 0.55s; }
.hero__word:nth-child(3) { animation-delay: 0.8s; }

@keyframes heroWord {
  0% { opacity: 0; transform: translateY(8px); }
  25% { opacity: 1; transform: translateY(0); }
  65% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================================
   SECTION LABELS
   ============================================================ */

.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: #999;
  margin-bottom: 56px;
}

/* ============================================================
   WORK SECTION
   ============================================================ */

.work {
  padding: 180px 0 120px;
}

.work__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter-desktop);
}

.work .section-label {
  margin-bottom: 18px;
}

.work__nda {
  font-family: var(--font-sans);
  font-size: 12px;
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 0 56px 0;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.work-item__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 8px 0;
}

.work-item__name {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.35;
  letter-spacing: 0.005em;
  color: var(--text-soft);
  flex: 1 1 auto;
  max-width: 760px;
  transition: color 0.3s ease;
}

.work-item__row:hover .work-item__name,
.work-item.is-open .work-item__name {
  color: var(--text-primary);
}

.work-item__toggle {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 14px;
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.4s ease;
}

.work-item__toggle::before,
.work-item__toggle::after {
  content: "";
  position: absolute;
  background-color: currentColor;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.work-item__toggle::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  margin-top: -0.5px;
}

.work-item__toggle::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  margin-left: -0.5px;
  transform-origin: center;
}

.work-item__row:hover .work-item__toggle {
  color: var(--text-primary);
}

.work-item.is-open .work-item__toggle::after {
  transform: scaleY(0);
}

.work-item__detail {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.55s ease, opacity 0.4s ease;
}

.work-item.is-open .work-item__detail {
  grid-template-rows: 1fr;
  opacity: 1;
}

.work-item__detail-inner {
  overflow: hidden;
  min-height: 0;
  padding: 8px 0 56px 0;
  max-width: 720px;
}

.work-item__intro {
  font-family: var(--font-sans);
  font-size: 13px;
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 0 40px 0;
}

.work-item__projects {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.work-item__project-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin: 0 0 16px 0;
}

.work-item__summary {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-primary);
  max-width: 640px;
  margin-bottom: 28px;
}

.work-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.work-item__tags li {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--text-soft);
  border: 1px solid #ccc;
  padding: 5px 14px;
  border-radius: 999px;
}

.work-item__deliverables {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work-item__deliverables li {
  position: relative;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.5;
  padding-left: 18px;
}

.work-item__deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background-color: var(--text-muted);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

.about {
  padding: 120px 0 200px;
}

.about__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter-desktop);
}

.about__prose {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about__prose p {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.7;
  color: var(--text-primary);
}

.about__columns {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  max-width: 640px;
}

.about__column .section-label {
  margin-bottom: 24px;
}

.about__column ul li {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.9;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 720px) {
  .hero {
    padding: 0 var(--gutter-mobile);
    min-height: 520px;
  }

  .hero__nav {
    gap: 56px;
    bottom: calc(100% + 84px);
  }

  .hero__nav a {
    font-size: 15px;
  }

  .hero__brand::before {
    width: 360px;
    height: 100px;
  }

  .hero__subtitle {
    margin-top: 20px;
    font-size: 11px;
  }

  .positioning {
    padding: 100px var(--gutter-mobile) 80px;
  }

  .work {
    padding: 80px 0;
  }

  .about {
    padding: 80px 0 140px;
  }

  .work__inner,
  .about__inner {
    padding: 0 var(--gutter-mobile);
  }

  .section-label {
    margin-bottom: 40px;
  }

  .work-list {
    gap: 44px;
  }

  .work-item__row {
    gap: 20px;
    padding: 6px 0;
  }

  .work-item__toggle {
    margin-top: 10px;
  }

  .work-item__tags {
    gap: 6px;
  }

  .about__columns {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 60px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__title,
  .hero__subtitle {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero__nav {
    opacity: 1;
    transform: translateX(-50%);
    animation: none;
    pointer-events: auto;
  }

  html {
    scroll-behavior: auto;
  }
}
