/* ================================================================
   WAYNE HEWITT PORTFOLIO — Light Theme
================================================================ */

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

:root {
  --bg:             #F8F6F2;
  --bg-alt:         #F0EDE8;
  --surface:        #ECEAE5;
  --border:         rgba(28, 26, 22, 0.09);
  --border-mid:     rgba(28, 26, 22, 0.16);
  --text-primary:   #1C1A16;
  --text-secondary: #6E6B66;
  --text-tertiary:  #B2ADAA;
  --accent:         #B54827;
  --accent-light:   rgba(181, 72, 39, 0.07);
  --accent-hover:   #913A20;
  --font-display:   'Cormorant', Georgia, serif;
  --font-mono:      'DM Mono', 'Courier New', monospace;
  --font-sans:      'Jost', system-ui, sans-serif;
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --max-w:          1200px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ================================================================
   NAVIGATION
================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4rem;
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled { border-bottom-color: var(--border); }

.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--text-primary);
  font-weight: 400;
  transition: color 0.25s;
}
.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  padding: 0.45rem 1.1rem !important;
  transition: all 0.25s !important;
}
.nav-cta:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

/* ================================================================
   HERO
================================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 4rem 5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fade-up 0.7s var(--ease-out) 0.2s forwards;
}

.hero__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.hero__label-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 860px;
  margin-bottom: 2.5rem;
}

.hero__line { display: block; overflow: hidden; }

.hero__line-inner {
  display: block;
  transform: translateY(105%);
  animation: reveal-line 1s var(--ease-out) forwards;
}

.hero__line:nth-child(1) .hero__line-inner { animation-delay: 0.3s; }
.hero__line:nth-child(2) .hero__line-inner { animation-delay: 0.45s; }
.hero__line:nth-child(3) .hero__line-inner { animation-delay: 0.6s; }

.hero__line--em .hero__line-inner { font-style: italic; color: var(--accent); }

.hero__sub {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.8;
  opacity: 0;
  animation: fade-up 0.7s var(--ease-out) 0.85s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 3.5rem;
  right: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  opacity: 0;
  animation: fade-up 0.7s var(--ease-out) 1.1s forwards;
}

.hero__scroll span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px;
  height: 56px;
  background: var(--border-mid);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: scroll-drop 2s ease-in-out infinite;
}

@keyframes reveal-line   { to { transform: translateY(0); } }
@keyframes fade-up       { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes scroll-drop   { 0%{top:-100%} 100%{top:100%} }

/* ================================================================
   SHARED / UTILITIES
================================================================ */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-mid);
  padding: 0.22rem 0.65rem;
  display: inline-block;
}

/* ================================================================
   WORK / CASE STUDIES
================================================================ */
.work {
  padding: 6rem 4rem;
  border-bottom: 1px solid var(--border);
}

.work__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3.5rem;
}

/* Featured Airbnb card — full width */
.case-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-mid);
  margin-bottom: 2px;
  transition: border-color 0.3s;
  text-decoration: none;
  color: inherit;
}
.case-featured:hover { border-color: var(--text-primary); }

.case-featured__image {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-featured__thumb-text {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 300;
  color: rgba(255,255,255,0.05);
  user-select: none;
  letter-spacing: -0.03em;
  transition: color 0.4s;
}
.case-featured:hover .case-featured__thumb-text { color: rgba(255,255,255,0.09); }

.case-featured__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(181, 72, 39, 0.06);
  transition: opacity 0.3s;
}
.case-featured:hover .case-featured__overlay { opacity: 1; }

.case-featured__cta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 0.65rem 1.375rem;
  transform: translateY(6px);
  transition: transform 0.35s var(--ease-out), background 0.25s, border-color 0.25s;
}
.case-featured:hover .case-featured__cta { transform: translateY(0); }

.case-featured__body {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--border-mid);
}

.case-featured__num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: auto;
}

.case-featured__content { margin-top: auto; }

.case-featured__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.case-featured__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.case-featured__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 380px;
}

.case-featured__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 2rem;
  transition: gap 0.3s;
}
.case-featured:hover .case-featured__arrow { gap: 1rem; }

/* NDA cards row */
.nda-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
}

.nda-card {
  background: var(--bg);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
}

a.nda-card {
  display: block;
  text-decoration: none;
  transition: background 0.25s;
}
a.nda-card:hover { background: var(--bg-alt); }
a.nda-card:hover .nda-card__title { color: var(--accent); }

.nda-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border: 1px solid var(--border-mid);
  padding: 0.22rem 0.65rem;
  margin-bottom: 2rem;
}

.nda-card__badge::before {
  content: '◼';
  font-size: 0.45rem;
}

.nda-card__sector {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 0.625rem;
}

.nda-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.nda-card__desc {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.7;
}

.nda-card__note {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  font-style: italic;
}

.nda-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.3s;
}
a.nda-card:hover .nda-card__link { gap: 0.75rem; }

/* ================================================================
   PROCESS
================================================================ */
.process {
  padding: 6rem 4rem;
  border-bottom: 1px solid var(--border);
}

.process__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  margin-bottom: 4rem;
}

.process__tagline {
  padding-top: 0.375rem;
}

.process__tagline p {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.125rem;
}
.process__tagline p:last-child { margin-bottom: 0; }

.process__tagline p:last-child {
  font-weight: 400;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.process__diagram {
  margin: 0;
  padding: 3rem 4rem;
}

.process__diagram img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}

.process__step {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.process__step:last-child { border-right: none; }
.process__step:hover { background: var(--bg-alt); }

.process__num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 1.5rem;
}

.process__step-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.process__step-desc {
  font-size: 0.84375rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ================================================================
   ABOUT
================================================================ */
.about {
  padding: 6rem 4rem;
  border-bottom: 1px solid var(--border);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 7rem;
  align-items: start;
}

.about__left { position: sticky; top: 5.5rem; }

.about__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 2.75vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 3rem;
}
.about__title em { font-style: italic; color: var(--accent); }

.about__portrait {
  width: min(260px, 100%);
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about__portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(181,72,39,0.05) 0%, transparent 55%);
}

.about__initials {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 300;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  position: relative;
}

.about__right { padding-top: 3.5rem; }

.about__lead {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: 2rem;
}

.about__body p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.375rem;
}

.about__location {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.about__location::before { content: '—'; color: var(--accent); }

.about__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-mid);
  padding: 0.3rem 0.8rem;
  transition: all 0.25s;
  cursor: default;
}
.skill-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ================================================================
   FOOTER
================================================================ */
.footer {
  padding: 3rem 4rem;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 300;
  margin-bottom: 0.2rem;
}

.footer__role {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--text-tertiary);
}

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__links a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.25s;
}
.footer__links a:hover { color: var(--accent); }

.footer__base {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer__base span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
}

/* ================================================================
   SCROLL REVEAL
================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1100px) {
  .case-featured { grid-template-columns: 1fr; }
  .case-featured__image { aspect-ratio: 16 / 9; }
  .case-featured__body { border-left: none; border-top: 1px solid var(--border-mid); padding: 2rem; }
  .nda-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav { padding: 1.25rem 2rem; }
  .hero { padding: 0 2rem 4rem; }
  .work, .process, .about, .footer { padding: 4.5rem 2rem; }
  .process__header { grid-template-columns: 1fr; gap: 1.5rem; }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .process__diagram { padding: 2rem; }
  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__left { position: static; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .nda-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links li:not(.nav-contact) { display: none; }
  .process__steps { grid-template-columns: 1fr; }
  .work__header { flex-direction: column; gap: 0.5rem; }
}
