/* ==========================================================================
   Section Styles — Hero, About, Projects, Approach, Contact
   ========================================================================== */

/* --- Hero --- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: var(--space-3xl) 0;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero__pre {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin-bottom: var(--space-md);
}

.hero__name {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  color: var(--color-charcoal);
  line-height: 1.05;
  margin-bottom: var(--space-md);
}

.hero__name .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.hero__name .word-inner {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

.hero__statement {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--color-deep-clay);
  font-weight: 500;
  line-height: 1.4;
}

.hero__blob {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(300px, 40vw, 600px);
  height: clamp(300px, 40vw, 600px);
  opacity: 0.08;
  z-index: 1;
  animation: blob-rotate 60s linear infinite;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  z-index: 2;
}

.hero__scroll-text {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-stone);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  position: relative;
  overflow: hidden;
  background-color: rgba(107, 101, 96, 0.2);
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-terracotta);
  animation: scroll-line 2s ease infinite;
}

/* --- Grain Overlay --- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* --- About --- */
.about {
  background-color: var(--color-ivory);
}

.about__image-wrap {
  position: relative;
  border-radius: var(--radius-sm) var(--radius-lg) var(--radius-sm) var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background-color: var(--color-parchment);
}

.about__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-parchment), var(--color-blush));
  color: var(--color-stone);
  font-size: var(--text-small);
}

.about__text h2 {
  margin-bottom: var(--space-lg);
  color: var(--color-charcoal);
}

.about__text p {
  color: var(--color-stone);
  margin-bottom: var(--space-sm);
}

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

/* --- Projects --- */
.projects {
  background-color: var(--color-ivory);
}

.projects__grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1.7fr 1fr;
  grid-auto-rows: auto;
}

.projects__grid .project-card:nth-child(3),
.projects__grid .project-card:nth-child(4),
.projects__grid .project-card:nth-child(5) {
  grid-column: auto;
}

.projects__grid--row2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.projects__grid--row3 {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

/* --- Approach --- */
.approach {
  background-color: var(--color-parchment);
}

.approach__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.approach__header h2 {
  margin-bottom: var(--space-sm);
}

.approach__header p {
  color: var(--color-stone);
  max-width: 550px;
  margin: 0 auto;
}

.approach__steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: var(--space-xl) 0;
}

.approach__line {
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  z-index: 0;
}

.approach__line line {
  stroke: var(--color-terracotta);
  stroke-width: 2;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.5s var(--ease-out-expo);
}

.approach__line.is-drawn line {
  stroke-dashoffset: 0;
}

.approach__step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 0 0 18%;
}

.approach__step-number {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 5rem);
  color: var(--color-terracotta);
  opacity: 0.12;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.approach__step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-ivory);
  border: 2px solid var(--color-terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  font-size: 1.25rem;
}

.approach__step-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.35em;
}

.approach__step-desc {
  font-size: var(--text-small);
  color: var(--color-stone);
  line-height: 1.5;
}

/* --- Contact --- */
.contact {
  background-color: var(--color-ivory);
  text-align: center;
  padding: var(--space-3xl) 0;
}

.contact h2 {
  margin-bottom: var(--space-md);
}

.contact__sub {
  color: var(--color-stone);
  max-width: 480px;
  margin: 0 auto var(--space-xl);
}

.contact__email {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--color-terracotta);
  border-bottom: 2px solid transparent;
  transition: border-color var(--duration-fast);
  will-change: transform;
}

.contact__email:hover {
  border-color: var(--color-terracotta);
}

.contact__socials {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.contact__social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(44, 40, 37, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--duration-fast),
              background-color var(--duration-fast);
}

.contact__social-link:hover {
  border-color: var(--color-terracotta);
  background-color: var(--color-blush);
}

.contact__social-link svg {
  width: 18px;
  height: 18px;
}

/* --- Footer --- */
.footer {
  padding: var(--space-lg) 0;
  text-align: center;
  font-size: var(--text-small);
  color: var(--color-stone);
  border-top: 1px solid rgba(44, 40, 37, 0.08);
}
