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

:root {
  color-scheme: only light;
  --background: #f5a700;
  --text: #2b2012;
  --accent: #5d3f1a;
}

html, body {
  margin: 0;
  min-height: 100vh;
  font-family: "Ubuntu", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  background: var(--background);
  color: var(--text);
  overflow-x: hidden;
}

a:hover {
  text-decoration: underline;
}


.hex-layer {
  position: absolute;
  inset: -55vh -45vw;
  z-index: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition: transform 0.2s ease-out;
  perspective: 900px;
  opacity: 0.7;
}

.hex-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--size) * 1px);
  height: calc(var(--size) * 0.86px);
  transform: translate(-50%, -50%)
    translate(
      calc((var(--q) + (var(--r) * 0.5)) * var(--grid-x)),
      calc(var(--r) * var(--grid-y))
    )
    translate(var(--drift-x, 0px), var(--drift-y, 0px))
    rotate(90deg);
  filter: blur(calc(var(--depth) * 9px));
  opacity: 0;
  transition: opacity 0.5s ease;
  transform-style: preserve-3d;
}

.hex-wrap.is-visible {
  opacity: calc(1 - var(--depth));
}

.hex {
  position: absolute;
  inset: 0;
  clip-path: polygon(
    25% 0%,
    75% 0%,
    100% 50%,
    75% 100%,
    25% 100%,
    0% 50%
  );
  background: hsl(var(--hue) var(--sat) var(--light));
  opacity: 1;
  mix-blend-mode: normal;
}

.site-header {
  position: relative;
  z-index: 1;
  padding: 12rem 16px 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 55vh;
  overflow: visible;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(245, 167, 0, 1) 0%, rgba(245, 167, 0, 0) 40%);
  pointer-events: none;
}

.top-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 8vw;
  background: transparent;
  backdrop-filter: none;
}

.top-nav__left {
  justify-self: start;
}

.top-nav__logo {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.top-nav__logo-hex {
  width: 20px;
  height: 18px;
  background: currentColor;
  display: inline-block;
  clip-path: polygon(
    25% 0%,
    75% 0%,
    100% 50%,
    75% 100%,
    25% 100%,
    0% 50%
  );
  transform: rotate(90deg);
}

.top-nav__center {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.top-nav--home {
  grid-template-columns: 1fr;
}

.top-nav--home .top-nav__center {
  justify-content: center;
}

.top-nav__link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.top-nav__link:hover {
  text-decoration: underline;
}

.logo-stack {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 6px;
  text-align: center;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(17rem, 18vw, 23rem);
  letter-spacing: 0.02em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-title {
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.logo-subtitle {
  margin: 0;
  margin-left: .5em;
  font-size: 2.6rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(58, 43, 24, 0.85);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease, letter-spacing 1.5s ease-out;
}

.logo-subtitle.is-visible {
  opacity: 1;
  letter-spacing: 0.8em;
  margin-left: .8em;
  transform: translateY(0);
}

.logo-dot {
  --size: 54px;
  width: calc(var(--size) * 1);
  height: calc(var(--size) * 0.9);
  display: inline-block;
  transform: translateY(3px) rotate(90deg);
  background: currentColor;
  clip-path: polygon(
    25% 0%,
    75% 0%,
    100% 50%,
    75% 100%,
    25% 100%,
    0% 50%
  );
}

.content {
  position: relative;
  z-index: 1;
  width: min(880px, 90vw);
  display: grid;
  gap: 92px;
  margin: 0 auto;
  margin-top: 8rem;
  padding: 56px 0 120px;
}

.content--page {
  margin-top: 4rem;
}

.page-header h1 {
  margin: 0 0 16px;
  font-size: clamp(3.2rem, 6vw, 5rem);
}

.page-header p {
  margin: 0;
  font-size: 1.2rem;
  max-width: 600px;
}

.projects-grid {
  display: grid;
  gap: 32px;
}

.project-card,
.project-detail {
  padding: 20px 0;
  white-space: normal;
}

.project-card,
.project-card:hover {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-card {
  background: rgba(43, 32, 18, 0.1);
  border-radius: 16px;
  padding: 20px 24px;
}

.project-card:hover .project-link {
  text-decoration: underline;
}

.project-card h2 {
  margin: 0 0 12px;
  font-size: 2.4rem;
}

.project-card p,
.project-detail p {
  margin: 0 0 16px;
  font-size: 1.1rem;
  max-width: 640px;
}

.project-status {
  display: grid;
  gap: 28px;
  padding: 28px 0 8px;
}

.status-header h2 {
  margin: 12px 0 10px;
  font-size: 2.2rem;
}

.status-header p {
  margin: 0;
  max-width: 640px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(43, 32, 18, 0.1);
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.status-badge::before {
  content: "";
  width: 10px;
  height: 9px;
  background: currentColor;
  clip-path: polygon(
    25% 0%,
    75% 0%,
    100% 50%,
    75% 100%,
    25% 100%,
    0% 50%
  );
  transform: rotate(90deg);
}

.status-progress {
  display: grid;
  gap: 18px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(43, 32, 18, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-item:first-child {
  justify-self: start;
}

.status-item:last-child {
  justify-self: end;
}

.status-item.is-active {
  color: rgba(43, 32, 18, 0.95);
}

.status-item.is-next {
  color: rgba(43, 32, 18, 0.75);
}

.status-hex {
  width: 18px;
  height: 16px;
  background: currentColor;
  clip-path: polygon(
    25% 0%,
    75% 0%,
    100% 50%,
    75% 100%,
    25% 100%,
    0% 50%
  );
  transform: rotate(90deg);
}

.timeline {
  position: relative;
  height: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(43, 32, 18, 0.15);
}

.timeline__bar {
  position: absolute;
  left: 0;
  top: 50%;
  height: 6px;
  width: var(--progress, 50%);
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, #2b2012 0%, #6b4a1f 60%, #f5a700 100%);
}

.timeline__points {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.timeline__point {
  width: 14px;
  height: 12px;
  background: rgba(43, 32, 18, 0.3);
  clip-path: polygon(
    25% 0%,
    75% 0%,
    100% 50%,
    75% 100%,
    25% 100%,
    0% 50%
  );
  transform: rotate(90deg);
}

.timeline__point.is-active {
  background: rgba(43, 32, 18, 0.95);
}

.timeline__point.is-next {
  background: rgba(43, 32, 18, 0.65);
}

.project-link {
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

.project-detail .project-link {
  margin-top: 5rem;
}

.content-section {
  padding: 6px 0;
}

.content-section h2 {
  margin: 0 0 12px;
  font-size: 3.2rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 14px;
}

.content-section h2::before {
  content: "";
  width: 1em;
  height: 0.86em;
  display: inline-block;
  background: currentColor;
  clip-path: polygon(
    25% 0%,
    75% 0%,
    100% 50%,
    75% 100%,
    25% 100%,
    0% 50%
  );
  transform: rotate(90deg);
}

.content-section p {
  margin: 0;
  line-height: 1.6;
  font-size: 1.15rem;
  max-width: 650px;
  color: black;
}

a {
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 32px 16px 48px;
  font-size: 0.95rem;
  color: rgba(58, 43, 24, 0.8);
  text-align: center;
}

@media (max-width: 700px) {
  .site-header {
    padding-top: 88px;
    padding-bottom: 56px;
  }

  .site-header h1 {
    font-size: clamp(5rem, 14vw, 8.5rem);
  }

  .logo-dot {
    --size: 36px;
  }

  .logo-subtitle {
    font-size: 1.4rem;
    letter-spacing: 0.5em;
  }

  .top-nav {
    padding: 16px 6vw;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .top-nav__center {
    flex-wrap: wrap;
    gap: 16px;
  }

  .page-header h1 {
    font-size: clamp(2.4rem, 10vw, 3.6rem);
  }

  .project-card h2 {
    font-size: 2rem;
  }

  .status-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .status-item {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .status-item:last-child {
    justify-self: start;
  }

  .timeline__points {
    padding: 0;
  }

  .timeline__point {
    width: 12px;
    height: 10px;
  }

  .content-section {
    padding-bottom: 8px;
  }
}

@media (min-width: 701px) and (max-width: 1024px) {
  .site-header h1 {
    font-size: clamp(8rem, 14vw, 14rem);
  }

  .logo-dot {
    --size: 44px;
  }

  .logo-subtitle {
    font-size: 2rem;
    letter-spacing: 0.6em;
  }
}
