:root {
  color-scheme: dark;
  --ink: #080808;
  --paper: #ece9e2;
  --muted: #a09e98;
  --sand: #b8aa91;
  --line: rgba(236, 233, 226, 0.14);
  --shell: min(100% - 40px, 1344px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--sand);
  color: var(--ink);
}

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

img {
  display: block;
  max-width: 100%;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell {
  width: var(--shell);
  max-width: 1344px;
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow,
.form-note {
  margin: 0;
  color: var(--sand);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.body-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.section-space {
  padding-block: 112px;
}

.section-bordered {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 850ms cubic-bezier(0.22, 1, 0.36, 1), transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.reveal-ready .delay-1 {
  transition-delay: 100ms;
}

.reveal-ready .delay-2 {
  transition-delay: 200ms;
}

.reveal-ready .delay-3 {
  transition-delay: 300ms;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}

.header-inner {
  display: flex;
  height: 80px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  position: relative;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(236, 233, 226, 0.3);
  border-radius: 50%;
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.08em;
}

.brand-name {
  display: none;
  color: rgba(236, 233, 226, 0.9);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.desktop-nav {
  display: none;
}

.menu-toggle {
  position: relative;
  z-index: 12;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(236, 233, 226, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.menu-close-icon,
.menu-open .menu-open-icon {
  display: none;
}

.menu-open .menu-close-icon {
  display: block;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 11;
  display: flex;
  visibility: hidden;
  flex-direction: column;
  justify-content: flex-end;
  padding: 112px 20px 40px;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu nav {
  border-top: 1px solid var(--line);
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.07em;
}

.mobile-menu small,
.mobile-menu p {
  color: var(--sand);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mobile-menu p {
  margin: 64px 0 0;
  color: rgba(236, 233, 226, 0.4);
}

.hero {
  position: relative;
  display: flex;
  min-height: 760px;
  align-items: flex-end;
  overflow: hidden;
}

.hero-image,
.hero-image::before,
.hero-image::after {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}

.hero-image::before {
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.94), rgba(8, 8, 8, 0.64) 44%, rgba(8, 8, 8, 0.14)),
    linear-gradient(180deg, rgba(8, 8, 8, 0.18), rgba(8, 8, 8, 0.2) 54%, rgba(8, 8, 8, 0.92));
}

.hero-image::after {
  z-index: 2;
  content: "";
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-block: 160px 32px;
}

.hero h1 {
  margin: 20px 0 0;
  color: var(--paper);
  font-size: clamp(5.2rem, 16vw, 14rem);
  font-weight: 700;
  letter-spacing: -0.11em;
  line-height: 0.78;
}

.hero h1 span {
  color: var(--sand);
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-bottom p {
  max-width: 575px;
  margin: 0;
  color: rgba(236, 233, 226, 0.72);
  font-size: 0.9rem;
  line-height: 1.65;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: 300ms ease;
}

.button-light {
  background: var(--paper);
  color: var(--ink);
}

.button-light:hover {
  background: var(--sand);
}

.button-outline {
  border: 1px solid rgba(236, 233, 226, 0.35);
}

.button-outline:hover {
  border-color: var(--sand);
  color: var(--sand);
}

.about {
  display: grid;
  gap: 40px;
}

.section-intro {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-intro span {
  width: 56px;
  height: 1px;
  background: rgba(184, 170, 145, 0.55);
}

.section-heading,
.projects h2,
.journal h2,
.newsletter h2 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.085em;
  line-height: 1.03;
}

/* Editorial Timeline */
.about-timeline {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.timeline-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 18px;
  border-bottom: 1px solid rgba(236, 233, 226, 0.05);
}

.timeline-num {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--sand);
  letter-spacing: 0.1em;
}

.timeline-label {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: rgba(236, 233, 226, 0.85);
}

/* Minimalism Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.skill-tag {
  padding: 24px;
  border: 1px solid rgba(236, 233, 226, 0.06);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  transition: border-color 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-tag:hover {
  border-color: var(--sand);
}

.about-copy {
  display: grid;
  gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 250ms ease;
}

.text-link:hover {
  color: var(--sand);
}

.text-link svg {
  width: 16px;
  height: 16px;
}

.projects-heading {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.projects h2,
.journal h2 {
  margin-top: 20px;
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 1;
}

.projects-heading > p {
  max-width: 384px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.project-grid {
  display: grid;
  gap: 48px 28px;
  margin-top: 56px;
}

.project-card:hover .project-image img {
  opacity: 1;
  transform: scale(1.045);
}

.project-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(236, 233, 226, 0.05);
}

.project-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(8, 8, 8, 0.65), transparent 45%);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 700ms ease, transform 700ms ease;
}

.project-number,
.project-category {
  position: absolute;
  z-index: 1;
  left: 20px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.project-number {
  top: 20px;
}

.project-category {
  bottom: 20px;
  color: rgba(236, 233, 226, 0.72);
}

.project-details {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.project-details h3 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: -0.075em;
}

.project-details p {
  max-width: 440px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.circle-link {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(236, 233, 226, 0.2);
  border-radius: 50%;
  transition: 300ms ease;
}

.circle-link:hover {
  border-color: var(--sand);
  background: var(--sand);
  color: var(--ink);
}

.circle-link svg {
  width: 16px;
  height: 16px;
}

.journal {
  display: grid;
  gap: 48px;
}

.journal-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(236, 233, 226, 0.05);
}

.journal-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(8, 8, 8, 0.55), transparent 50%);
}

.journal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journal-image p {
  position: absolute;
  z-index: 1;
  bottom: 20px;
  left: 20px;
  margin: 0;
  color: rgba(236, 233, 226, 0.65);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.journal .body-copy {
  max-width: 576px;
  margin-top: 28px;
}

.journal-links {
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.journal-links a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.journal-links small {
  color: var(--sand);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.journal-links svg {
  width: 16px;
  height: 16px;
  color: rgba(236, 233, 226, 0.6);
  transition: 300ms ease;
}

.journal-links .solid-icon {
  fill: currentColor;
  stroke: none;
}

.journal-links strong {
  flex: 1;
  font-size: 1.3rem;
  letter-spacing: -0.06em;
}

.journal-links span {
  display: none;
  color: rgba(236, 233, 226, 0.4);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.journal-links a:hover svg {
  color: var(--sand);
  transform: translate(2px, -2px);
}

.newsletter {
  position: relative;
  overflow: hidden;
}

.newsletter-inner {
  position: relative;
  display: grid;
  gap: 56px;
  padding-block: 112px;
}

.newsletter-monogram {
  position: absolute;
  top: 0;
  right: -96px;
  color: rgba(236, 233, 226, 0.018);
  font-size: 19rem;
  font-weight: 700;
  letter-spacing: -0.18em;
  line-height: 1;
  user-select: none;
}

.newsletter h2 {
  position: relative;
  max-width: 760px;
  margin-top: 20px;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.095em;
}

/* Contact Form Modifications */
.premium-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: none !important;
}

.premium-form .form-row {
  border-bottom: 1px solid rgba(236, 233, 226, 0.2);
  padding-block-end: 8px;
}

.premium-form input {
  width: 100%;
  padding-block: 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
}

.premium-form input::placeholder {
  color: rgba(236, 233, 226, 0.3);
}

.form-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 16px;
  padding: 16px 24px;
  background: transparent;
  border: 1px solid rgba(236, 233, 226, 0.35);
  border-radius: 999px;
  color: var(--paper);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 300ms ease;
}

.form-submit-btn:hover {
  border-color: var(--sand);
  background: var(--sand);
  color: var(--ink);
}

.form-submit-btn svg {
  width: 18px;
  height: 18px;
}

.newsletter-success {
  margin: 32px 0 0;
  padding-block: 20px;
  border-top: 1px solid rgba(236, 233, 226, 0.3);
  color: var(--sand);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.form-note {
  margin-top: 16px;
  color: rgba(236, 233, 226, 0.35);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer .shell {
  padding-block: 32px;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-main p {
  margin: 20px 0 0;
  color: rgba(236, 233, 226, 0.45);
  font-size: 0.86rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
}

.social-links a {
  color: rgba(236, 233, 226, 0.6);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 250ms ease;
}

.social-links a:hover {
  color: var(--sand);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  color: rgba(236, 233, 226, 0.3);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  :root {
    --shell: min(100% - 64px, 1344px);
  }

  .header-inner {
    height: 96px;
  }

  .brand-name {
    display: inline;
  }

  .hero-content {
    padding-bottom: 40px;
  }

  .hero-bottom {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 48px;
  }

  .about-copy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-heading {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .project-grid {
    margin-top: 80px;
  }

  .journal-links span {
    display: block;
  }

  .newsletter-monogram {
    font-size: 30rem;
  }

  .footer-main,
  .footer-bottom {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .desktop-nav a {
    color: rgba(236, 233, 226, 0.65);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    transition: color 250ms ease;
  }

  .desktop-nav a:hover {
    color: var(--paper);
  }

  .desktop-nav .nav-cta {
    padding: 13px 20px;
    border: 1px solid rgba(236, 233, 226, 0.35);
    border-radius: 999px;
    color: var(--paper);
    transition: 300ms ease;
  }

  .desktop-nav .nav-cta:hover {
    border-color: var(--sand);
    background: var(--sand);
    color: var(--ink);
  }

  /* Two-column Balanced Clean Grid */
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-offset {
    margin-top: 64px; /* Balanced alignment for exactly two items */
  }
}

@media (min-width: 1024px) {
  .section-space {
    padding-block: 160px;
  }

  .hero {
    min-height: 100vh;
  }

  .about {
    grid-template-columns: 0.72fr 1.28fr;
    gap: 64px;
  }

  .about-copy {
    margin-top: 56px;
  }

  .journal {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: end;
    gap: 80px;
  }

  .journal-image {
    aspect-ratio: 4 / 4.6;
  }

  .newsletter-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 80px;
    padding-block: 176px;
  }
}

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