/* ============================================
   THE AERIE GROUP — Main Stylesheet
   Aesthetic: Quiet, premium, editorial luxury
   Palette: Warm cream, deep forest, soft stone
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@200;300;400;500&display=swap');

/* --- CSS Variables --- */
:root {
  --cream:       #F5F0E8;
  --cream-light: #FAF7F2;
  --stone:       #E8E0D0;
  --stone-mid:   #C8BCA8;
  --warm-gray:   #8C8070;
  --charcoal:    #2A2520;
  --deep-forest: #1E2820;
  --text-dark:   #2A2520;
  --text-mid:    #5A5048;
  --text-light:  #8C8070;
  --accent:      #7A6B54;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Jost', 'Helvetica Neue', sans-serif;

  --nav-height:  80px;
  --section-pad: 120px;
  --max-width:   1320px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--cream-light);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--text-dark);
}

h1 { font-size: clamp(3rem, 6vw, 6rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.4rem); }
h4 { font-size: 1.4rem; }

p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.85;
  max-width: 600px;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
}

.section {
  padding: var(--section-pad) 0;
}

.section--dark {
  background-color: var(--deep-forest);
  color: var(--cream);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--cream);
}

.section--dark p {
  color: var(--stone-mid);
}

.section--dark .eyebrow {
  color: var(--stone-mid);
}

.section--stone {
  background-color: var(--stone);
}

.section--cream {
  background-color: var(--cream);
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 60px;
  transition: background 0.5s ease, backdrop-filter 0.5s ease;
}

.site-nav.scrolled {
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stone);
}

.site-nav.nav--dark {
  /* on hero */
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color 0.4s ease;
  line-height: 1;
}

.site-nav.scrolled .nav-logo {
  color: var(--charcoal);
}

.nav-logo span {
  display: block;
  font-size: 0.58rem;
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.75;
}

.nav-links {
  display: flex;
  gap: 48px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.85);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.site-nav.scrolled .nav-links a {
  color: var(--text-mid);
}

.site-nav.scrolled .nav-links a:hover {
  color: var(--charcoal);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--cream);
  transition: all 0.35s ease;
}

.site-nav.scrolled .nav-toggle span {
  background: var(--charcoal);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--deep-forest);
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.nav-mobile.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.nav-mobile a {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--cream);
  letter-spacing: 0.05em;
  font-weight: 300;
  transition: color 0.3s ease;
}

.nav-mobile a:hover {
  color: var(--stone-mid);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--deep-forest);
  overflow: hidden;
}

.hero-bg img,
.hero-bg .hero-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.72;
}

.hero-placeholder {
  background: linear-gradient(160deg, #1a2215 0%, #2a3520 40%, #3a4530 70%, #1e2820 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 15, 10, 0.88) 0%,
    rgba(10, 15, 10, 0.45) 45%,
    rgba(10, 15, 10, 0.20) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px 100px;
  max-width: 900px;
}

.hero-content .eyebrow {
  color: rgba(245, 240, 232, 0.65);
  margin-bottom: 24px;
}

.hero-content h1 {
  color: var(--cream);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  margin-bottom: 28px;
}

.hero-content p {
  color: rgba(245, 240, 232, 0.78);
  font-size: 1rem;
  font-weight: 300;
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 44px;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(245, 240, 232, 0.6);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease;
}

.hero-scroll:hover {
  color: var(--cream);
}

.hero-scroll::before {
  content: '';
  width: 40px;
  height: 1px;
  background: currentColor;
}

/* --- Buttons & CTAs --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid currentColor;
  transition: all 0.35s ease;
  cursor: pointer;
  background: transparent;
}

.btn-light {
  color: var(--cream);
  border-color: rgba(245, 240, 232, 0.5);
}

.btn-light:hover {
  background: var(--cream);
  color: var(--charcoal);
  border-color: var(--cream);
}

.btn-dark {
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-dark:hover {
  background: var(--charcoal);
  color: var(--cream);
}

.btn-accent {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent);
  color: var(--cream);
}

.btn svg, .btn .btn-arrow {
  transition: transform 0.35s ease;
}
.btn:hover .btn-arrow {
  transform: translateX(5px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 0.3s ease;
  cursor: pointer;
}

.text-link::after {
  content: '→';
  font-size: 0.9rem;
  letter-spacing: 0;
  transition: transform 0.3s ease;
}

.text-link:hover::after {
  transform: translateX(5px);
}

.text-link--light {
  color: var(--cream);
}

/* --- Divider --- */
.divider {
  width: 48px;
  height: 1px;
  background: var(--stone-mid);
  margin: 28px 0;
}

.divider--center {
  margin: 28px auto;
}

.divider--light {
  background: rgba(245, 240, 232, 0.3);
}

/* ============================================
   HOMEPAGE SECTIONS
   ============================================ */

/* --- Approach / Intro Section --- */
.section-approach {
  padding: 140px 0;
  background: var(--cream-light);
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: center;
}

.approach-text h2 {
  margin-bottom: 28px;
  font-style: italic;
}

.approach-text p {
  margin-bottom: 20px;
}

.approach-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.approach-image img,
.approach-image .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 2% center;
  transition: transform 0.8s ease;
}

.approach-image:hover img {
  transform: scale(1.04);
}

.img-placeholder {
  background: var(--stone);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--stone-mid);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.img-placeholder svg {
  opacity: 0.35;
}

.img-placeholder span {
  opacity: 0.6;
}

/* --- Philosophy Section --- */
.section-philosophy {
  background: var(--deep-forest);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

.philosophy-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: clamp(120px, 18vw, 220px);
  color: rgba(255,255,255,0.03);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  font-style: italic;
}

.philosophy-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 0 60px;
}

.philosophy-inner .eyebrow {
  color: rgba(200, 188, 168, 0.6);
  margin-bottom: 24px;
}

.philosophy-inner h2 {
  color: var(--cream);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.2;
  margin-bottom: 36px;
}

.philosophy-inner p {
  color: rgba(200, 188, 168, 0.75);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.9;
}

/* --- Portfolio Preview --- */
.section-portfolio-preview {
  padding: 140px 0;
  background: var(--cream-light);
}

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 72px;
}

.portfolio-header h2 {
  font-style: italic;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.portfolio-card {
  position: relative;
  cursor: pointer;
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.portfolio-card--featured {
  grid-row: span 2;
}

.portfolio-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--stone);
  position: relative;
}

.portfolio-card--featured .portfolio-card-image {
  aspect-ratio: 3/4;
}

.portfolio-card-image img,
.portfolio-card-image .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.portfolio-card:hover .portfolio-card-image img,
.portfolio-card:hover .portfolio-card-image .img-placeholder {
  transform: scale(1.05);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,10,0.65) 0%, transparent 60%);
  transition: opacity 0.4s ease;
}

.portfolio-card-info {
  padding: 28px 0 0;
}

.portfolio-card-info .tag {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

.portfolio-card-info h3 {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.portfolio-card:hover .portfolio-card-info h3 {
  color: var(--accent);
}

.portfolio-card-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  max-width: none;
  margin: 0;
}

/* Coming Soon badge */
.badge-coming-soon {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(245, 240, 232, 0.92);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 7px 14px;
  z-index: 2;
}

/* --- Nantucket Section --- */
.section-nantucket {
  position: relative;
  height: 60vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nantucket-bg {
  position: absolute;
  inset: 0;
}

.nantucket-bg .img-placeholder {
  background: linear-gradient(135deg, #2a3520 0%, #3d4a30 50%, #1e2820 100%);
}

.nantucket-bg img,
.nantucket-bg .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nantucket-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 10, 0.55);
}

.nantucket-content {
  position: relative;
  z-index: 2;
  padding: 0 60px;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.nantucket-content .eyebrow {
  color: rgba(200, 188, 168, 0.7);
}

.nantucket-content h2 {
  color: var(--cream);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 28px;
}

.nantucket-content p {
  color: rgba(200, 188, 168, 0.75);
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Process Section --- */
.section-process {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
}

.section-process::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/pillars-bg.jpg') center center / cover no-repeat;
  opacity: 0.35;
  z-index: 0;
}

.section-process::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cream);
  opacity: 0.60;
  z-index: 0;
}

.section-process .container {
  position: relative;
  z-index: 1;
}

.process-intro {
  max-width: 620px;
  margin-bottom: 80px;
}

.process-intro h2 {
  font-style: italic;
  margin-bottom: 24px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  border-top: 1px solid var(--stone);
  padding-top: 64px;
}

.process-step {
  padding-top: 28px;
  border-top: 2px solid var(--stone-mid);
}

.process-step .step-num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--stone-mid);
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}

.process-step h4 {
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 14px;
  color: var(--text-dark);
}

.process-step p {
  font-size: 0.88rem;
  color: var(--text-mid);
  max-width: none;
}

/* --- Contact / CTA Section --- */
.section-contact-cta {
  background: var(--deep-forest);
  padding: 140px 0;
  text-align: center;
}

.contact-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 40px;
}

.contact-cta-inner .eyebrow {
  color: rgba(200, 188, 168, 0.6);
}

.contact-cta-inner h2 {
  color: var(--cream);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 24px;
}

.contact-cta-inner p {
  color: rgba(200, 188, 168, 0.75);
  margin: 0 auto 44px;
  max-width: 500px;
}

.contact-cta-inner .btn-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.site-footer {
  background: var(--charcoal);
  padding: 80px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(200, 188, 168, 0.12);
}

.footer-brand .footer-logo {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 6px;
}

.footer-brand .footer-logo span {
  display: block;
  font-size: 0.58rem;
  font-family: var(--font-sans);
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.6;
  color: var(--cream);
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(200, 188, 168, 0.55);
  max-width: 280px;
  margin-top: 20px;
  line-height: 1.8;
}

.footer-nav h5 {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(200, 188, 168, 0.5);
  margin-bottom: 24px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav ul a {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(200, 188, 168, 0.65);
  transition: color 0.3s ease;
}

.footer-nav ul a:hover {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(200, 188, 168, 0.35);
  max-width: none;
  line-height: 1;
}

.footer-bottom p a {
  color: rgba(200, 188, 168, 0.5);
  transition: color 0.3s;
}

.footer-bottom p a:hover {
  color: var(--cream);
}

/* ============================================
   TEAM SECTION
   ============================================ */

.section-team {
  background: var(--cream);
  padding: 140px 0;
}

.team-header {
  margin-bottom: 80px;
}

.team-header h2 {
  font-style: italic;
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.team-member {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 72px;
  align-items: start;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--stone);
}

.team-member:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* .team-member-image — reserved for when photos are available */

.team-member-info {
  padding-top: 8px;
}

.team-member-meta {
  margin-bottom: 4px;
}

.team-member-meta h3 {
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.1;
}

.team-member-title {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
}

.team-member-info .divider {
  margin: 24px 0 28px;
}

.team-member-info p {
  max-width: 620px;
  font-size: 0.95rem;
  line-height: 1.9;
}

@media (max-width: 1000px) {
  .team-member {
    grid-template-columns: 260px 1fr;
    gap: 48px;
  }
}

@media (max-width: 760px) {
  .team-member {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .team-member-image {
    aspect-ratio: 4/3;
    max-height: 360px;
  }
}

/* ============================================
   PORTFOLIO PAGE
   ============================================ */

.page-hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  background: var(--cream-light);
}

.page-hero h1 {
  font-style: italic;
  font-weight: 300;
  margin-bottom: 20px;
}

.page-hero p {
  font-size: 1rem;
  max-width: 560px;
}

.portfolio-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 80px 0;
}

.portfolio-full-card {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.portfolio-full-card .portfolio-card-image {
  aspect-ratio: 3/4;
  margin-bottom: 24px;
}

.portfolio-full-card:hover .portfolio-card-image img {
  transform: scale(1.05);
}

/* ============================================
   PROJECT DETAIL PAGE
   ============================================ */

.project-hero {
  height: 90vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,15,10,0.75) 0%, rgba(10,15,10,0.2) 60%, rgba(10,15,10,0.1) 100%);
}

.project-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px 80px;
}

.project-hero-content .tag {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(200, 188, 168, 0.7);
  display: block;
  margin-bottom: 16px;
}

.project-hero-content h1 {
  color: var(--cream);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 0;
}

.project-details {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  padding: 100px 0;
}

.project-description h2 {
  font-style: italic;
  margin-bottom: 28px;
}

.project-description p {
  margin-bottom: 20px;
}

.project-specs {
  padding-top: 8px;
}

.project-specs h4 {
  font-style: italic;
  margin-bottom: 28px;
  color: var(--text-dark);
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--stone);
}

.spec-item .spec-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

.spec-item .spec-value {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--text-dark);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-bottom: 100px;
}

.project-gallery .gallery-main {
  grid-column: span 2;
  aspect-ratio: 16/7;
}

.project-gallery .gallery-item {
  aspect-ratio: 4/3;
}

.project-gallery .gallery-item,
.project-gallery .gallery-main {
  overflow: hidden;
  background: var(--stone);
}

.project-gallery .gallery-item img,
.project-gallery .gallery-main img,
.project-gallery .gallery-item .img-placeholder,
.project-gallery .gallery-main .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.project-gallery .gallery-item:hover img,
.project-gallery .gallery-main:hover img {
  transform: scale(1.04);
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-page {
  min-height: 100vh;
  background: var(--cream-light);
  padding: calc(var(--nav-height) + 80px) 0 120px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.contact-form-section h1 {
  font-style: italic;
  font-weight: 300;
  margin-bottom: 14px;
}

.contact-form-section > p {
  margin-bottom: 48px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}

.form-group label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--stone-mid);
  padding: 12px 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.3s ease;
  width: 100%;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--stone-mid);
  font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--charcoal);
}

.form-group textarea {
  resize: none;
  height: 120px;
  line-height: 1.7;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-success {
  display: none;
  padding: 20px 0;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.contact-info-section {
  padding-top: 70px;
}

.contact-info-section h3 {
  font-style: italic;
  margin-bottom: 28px;
}

.contact-info-item {
  margin-bottom: 36px;
}

.contact-info-item .info-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.contact-info-item p {
  font-size: 0.95rem;
  max-width: none;
  color: var(--text-mid);
}

.contact-info-image {
  margin-top: 48px;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.contact-info-image img,
.contact-info-image .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.9s ease;
}

.fade-in.visible {
  opacity: 1;
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.12s; }
.stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.24s; }
.stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.36s; }

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

@media (max-width: 1100px) {
  .container { padding: 0 40px; }
  .hero-content { padding: 0 40px 80px; }
  .site-nav { padding: 0 40px; }
  .nantucket-content { padding: 0 40px; }
  .project-hero-content { padding: 0 40px 70px; }
  .portfolio-full-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --section-pad: 80px; }
  .approach-grid { grid-template-columns: 1fr; gap: 48px; }
  .approach-image { aspect-ratio: 4/3; max-height: 400px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card--featured { grid-row: span 1; }
  .portfolio-card--featured .portfolio-card-image { aspect-ratio: 4/3; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: span 2; }
  .project-details { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .contact-info-section { padding-top: 0; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .portfolio-full-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  .container { padding: 0 24px; }
  .site-nav { padding: 0 24px; }
  .hero-content { padding: 0 24px 60px; }
  .nantucket-content { padding: 0 24px; }
  .project-hero-content { padding: 0 24px 50px; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery .gallery-main { grid-column: span 1; aspect-ratio: 4/3; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .process-steps { grid-template-columns: 1fr; }
  .portfolio-header { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  h2 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
}
