/* ============================================================
   SCHOMMER STUDIO — Main Stylesheet
   Architecture Advisory · Hamptons · Est. 2026
   ============================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --color-bg:        #F4F4F2;
  --color-text:      #111111;
  --color-text-muted:#6B6B6B;
  --color-accent:    #B89C6D;
  --color-border:    #DDDDD9;
  --color-surface:   #EEEEED;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Type Scale */
  --text-xs:   clamp(0.6875rem, 0.65rem + 0.2vw, 0.75rem);   /* 11–12px */
  --text-sm:   clamp(0.8125rem, 0.78rem + 0.18vw, 0.875rem); /* 13–14px */
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);       /* 16–18px */
  --text-lg:   clamp(1.125rem, 1rem + 0.75vw, 1.5rem);       /* 18–24px */
  --text-xl:   clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);        /* 24–40px */
  --text-2xl:  clamp(2.25rem, 1.5rem + 3vw, 4.25rem);        /* 36–68px */
  --text-hero: clamp(2.75rem, 1rem + 6.5vw, 4.75rem);        /* 44–76px */

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-section: clamp(5rem, 10vw, 7.5rem); /* ~80–120px */
  --space-inner:   clamp(2.5rem, 5vw, 3.75rem); /* ~40–60px */

  /* Animation */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --max-width:        1280px;
  --max-width-narrow: 800px;
  --gutter:           clamp(1.5rem, 5vw, 4rem);
}


/* ── BASE RESET ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

img { height: auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

p, li {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}

ul { list-style: none; }

::selection {
  background: rgba(184, 156, 109, 0.18);
  color: var(--color-text);
}

:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 3px;
}

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


/* ── TYPOGRAPHY UTILITIES ───────────────────────────────────── */
.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1;
}

.label--light  { color: rgba(255,255,255,0.55); }
.label--gold   { color: var(--color-accent); }
.label--accent { color: var(--color-accent); }


/* ── LAYOUT ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding-block: var(--space-section);
}


/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition);
  white-space: nowrap;
}

.btn--outline {
  color: var(--color-text);
  border-color: var(--color-text);
}
.btn--outline:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn--outline-light {
  color: #ffffff;
  border-color: rgba(255,255,255,0.75);
}
.btn--outline-light:hover {
  background: #ffffff;
  color: #111111;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color var(--transition), gap var(--transition);
  margin-top: var(--space-8);
}
.link-arrow:hover {
  color: var(--color-text);
  gap: var(--space-3);
}


/* ── NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-inline: var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  transition:
    background 400ms var(--ease-out),
    backdrop-filter 400ms var(--ease-out),
    border-color 400ms var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(244, 244, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--color-border);
}

.nav.is-hero {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.nav__inner {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  transition: opacity var(--transition);
}
.nav.is-hero .nav__logo { color: #ffffff; }
.nav__logo:hover { opacity: 0.65; }

.nav__wordmark {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.nav__link {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.7;
  transition: opacity var(--transition);
}
.nav.is-hero .nav__link { color: #ffffff; }
.nav__link:hover { opacity: 1; }

.nav__link--cta {
  opacity: 1;
  padding: 8px 18px;
  border: 1px solid currentColor;
  color: var(--color-text);
}
.nav.is-hero .nav__link--cta { color: #ffffff; }
.nav__link--cta:hover {
  background: var(--color-text);
  color: var(--color-bg);
}
.nav.is-hero .nav__link--cta:hover {
  background: #ffffff;
  color: #111111;
}

.nav__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav__menu-toggle span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 300ms var(--ease-out), opacity 200ms;
}
.nav.is-hero .nav__menu-toggle { color: #ffffff; }


/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 8vh, 5rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  transition: transform 8s ease-out;
  will-change: transform;
}

.hero.is-loaded .hero__img {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.25) 50%,
    rgba(0,0,0,0.52) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-inline: var(--gutter);
  max-width: var(--max-width);
  margin-inline: auto;
}

.hero__label {
  margin-bottom: var(--space-6);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms var(--ease-out) 200ms, transform 700ms var(--ease-out) 200ms;
}

.hero.is-loaded .hero__label {
  opacity: 1;
  transform: none;
}

.hero__headline {
  font-size: var(--text-hero);
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin-bottom: var(--space-6);
  max-width: 14ch;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 800ms var(--ease-out) 350ms, transform 800ms var(--ease-out) 350ms;
}

.hero.is-loaded .hero__headline {
  opacity: 1;
  transform: none;
}

.hero__subtext {
  font-size: clamp(0.875rem, 0.8rem + 0.4vw, 1rem);
  color: rgba(255,255,255,0.72);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: var(--space-10);
  max-width: 44ch;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms var(--ease-out) 500ms, transform 700ms var(--ease-out) 500ms;
}

.hero.is-loaded .hero__subtext {
  opacity: 1;
  transform: none;
}

.hero__btn {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms var(--ease-out) 650ms, transform 600ms var(--ease-out) 650ms,
              background var(--transition), color var(--transition);
}

.hero.is-loaded .hero__btn {
  opacity: 1;
  transform: none;
}

.hero__est {
  position: absolute;
  bottom: clamp(2rem, 5vh, 3.5rem);
  right: var(--gutter);
  z-index: 1;
  opacity: 0;
  transition: opacity 600ms var(--ease-out) 800ms;
}

.hero.is-loaded .hero__est {
  opacity: 1;
}

.br-desk { display: none; }
@media (min-width: 768px) { .br-desk { display: inline; } }


/* ── INTRO ───────────────────────────────────────────────────── */
.intro__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-inner);
  align-items: center;
}

@media (min-width: 768px) {
  .intro__grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
  }
}

.intro__label {
  margin-bottom: var(--space-6);
}

.intro__headline {
  font-size: var(--text-2xl);
  line-height: 1.08;
  margin-bottom: var(--space-6);
  max-width: 18ch;
}

.intro__body {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 48ch;
}

.intro__image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}

.intro__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 600ms var(--ease-out);
}

.intro__image-wrap:hover .intro__image {
  transform: scale(1.03);
}


/* ── PROJECTS ────────────────────────────────────────────────── */
.projects__label {
  margin-bottom: var(--space-12);
}

.project-item {
  position: relative;
  height: 70vh;
  min-height: 480px;
  max-height: 800px;
  margin-bottom: 3px;
  overflow: hidden;
}

.project-item__link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.project-item__image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.project-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 700ms var(--ease-out);
  will-change: transform;
}

.project-item__link:hover .project-item__image {
  transform: scale(1.05);
}

.project-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0,0,0,0.45) 70%,
    rgba(0,0,0,0.72) 100%
  );
  transition: opacity 400ms var(--ease-out);
}

.project-item__link:hover .project-item__overlay {
  opacity: 0.75;
}

.project-item__meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-10) var(--gutter);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: var(--max-width);
  margin-inline: auto;
}

.project-item__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.project-item__title {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  transition: opacity 300ms var(--ease-out);
}

.project-item__link:hover .project-item__title {
  opacity: 1;
}

.project-item__detail {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color 300ms var(--ease-out);
}

.project-item__link:hover .project-item__detail {
  color: rgba(255,255,255,0.80);
}

.project-item__arrow {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.4);
  transform: translateY(4px);
  transition: color 300ms, transform 300ms var(--ease-out), opacity 300ms;
  opacity: 0;
}

.project-item__link:hover .project-item__arrow {
  color: rgba(255,255,255,0.9);
  transform: translateY(0);
  opacity: 1;
}


/* ── PHILOSOPHY ──────────────────────────────────────────────── */
.philosophy {
  background: var(--color-text);
  padding-block: clamp(5rem, 12vw, 9rem);
}

.philosophy__inner {
  text-align: center;
}

.philosophy .label {
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-8);
  display: block;
}

.philosophy__headline {
  font-size: clamp(2.5rem, 2rem + 3vw, 5rem);
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-8);
}

.philosophy__body {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  max-width: 52ch;
  margin-inline: auto;
}

.philosophy__rule {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  margin: var(--space-12) auto 0;
}


/* ── SERVICES ────────────────────────────────────────────────── */
.services__label {
  margin-bottom: var(--space-12);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

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

.service-card {
  background: var(--color-bg);
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  transition: background 300ms var(--ease-out);
}

.service-card:hover {
  background: #ffffff;
}

.service-card__number {
  color: var(--color-accent);
}

.service-card__title {
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.service-card__body {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 34ch;
  margin-top: auto;
}


/* ── CTA SECTION ─────────────────────────────────────────────── */
.cta-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.cta-section__inner {
  text-align: center;
}

.cta-section .label {
  margin-bottom: var(--space-6);
  display: block;
}

.cta-section__headline {
  font-size: var(--text-2xl);
  line-height: 1.08;
  margin-bottom: var(--space-5);
}

.cta-section__subtext {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-10);
}


/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  background: var(--color-text);
  padding-block: var(--space-12);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-8);
  }
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__brand {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

.footer__tagline {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
}

.footer__nav {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  justify-content: center;
}

.footer__link {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer__link:hover { color: rgba(255,255,255,0.85); }

.footer__copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.2);
  text-align: right;
  letter-spacing: 0.04em;
  max-width: 100%;
}

@media (max-width: 767px) {
  .footer__copy { text-align: left; }
}


/* ── SCROLL REVEAL ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 800ms var(--ease-out),
    transform 800ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--delay.is-visible  { transition-delay: 120ms; }
.reveal--delay-2.is-visible { transition-delay: 240ms; }


/* ── MOBILE NAV ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(244,244,242,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-8);
    transform: translateX(100%);
    transition: transform 400ms var(--ease-out);
    z-index: 99;
    pointer-events: none;
  }

  .nav__links.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav__link {
    font-size: var(--text-lg);
    letter-spacing: 0.04em;
    opacity: 0.85;
  }

  .nav__link--cta {
    padding: 14px 28px;
    font-size: var(--text-sm);
  }

  .nav__menu-toggle {
    display: flex;
  }

  .nav__menu-toggle.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav__menu-toggle.is-open span:nth-child(2) {
    transform: translateY(-6px) rotate(-45deg);
  }
}


/* ── RESPONSIVE ADJUSTMENTS ──────────────────────────────────── */
@media (max-width: 480px) {
  .hero__content { padding-inline: 1.5rem; }
  .hero__est     { right: 1.5rem; }
  .project-item__meta { padding-inline: 1.5rem; }
  .project-item { min-height: 400px; }
}

/* ── FINAL REFINEMENTS ─────────────────────────────────────── */

/* Ensure intro section has breathing room */
.intro.section {
  padding-block: clamp(5rem, 10vw, 8rem);
}

/* Project section top padding */
.projects.section {
  padding-block-start: clamp(3rem, 6vw, 5rem);
  padding-block-end: clamp(3rem, 6vw, 5rem);
}

/* Service card top border accent on hover */
.service-card {
  border-top: 2px solid transparent;
  transition: background 300ms var(--ease-out), border-color 300ms var(--ease-out);
}
.service-card:hover {
  border-top-color: var(--color-accent);
}

/* Philosophy section vertical rule accent */
.philosophy__rule {
  position: relative;
}
.philosophy__rule::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: var(--color-accent);
  opacity: 0.5;
}

/* CTA section inquiry button spacing */
.cta-section .btn {
  margin-top: var(--space-2);
}

/* Nav hero initial state */
.nav {
  color: #ffffff;
}
.nav.is-scrolled {
  color: var(--color-text);
}
