/* ===========================================================
   FAÉ Haus Studio — Design tokens
   =========================================================== */
:root {
  --color-primary: #ede3da;   /* cream */
  --color-secondary: #ffffff;
  --color-accent: #222222;    /* near-black ink */
  --color-accent-soft: #4a4a4a;
  --color-line: rgba(34, 34, 34, 0.12);
  --color-line-soft: rgba(34, 34, 34, 0.08);

  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;

  --radius: 12px;
  --radius-sm: 8px;

  --shadow-soft: 0 12px 32px rgba(34, 34, 34, 0.08);
  --shadow-card: 0 4px 18px rgba(34, 34, 34, 0.06);

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ===========================================================
   Reset
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, p, figure { margin: 0; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; }

body {
  font-family: var(--font-body);
  color: var(--color-accent);
  background: var(--color-secondary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-accent);
}

h2 {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  font-weight: 500;
  line-height: 1.15;
}

h3 {
  font-size: 1.4rem;
  font-weight: 500;
}

p { color: var(--color-accent-soft); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

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

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
}
.eyebrow-dark {
  color: var(--color-accent-soft);
  margin-bottom: 12px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

/* ===========================================================
   Buttons
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border-radius: var(--radius);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-light {
  background: #ffffff;
  color: var(--color-accent);
}
.btn-light:hover { background: var(--color-primary); }

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.65);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

.btn-dark {
  background: var(--color-accent);
  color: #ffffff;
  margin-top: 44px;
}
.btn-dark:hover { background: #000000; }

/* ===========================================================
   Nav
   =========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--color-line-soft);
  transition: box-shadow 0.3s var(--ease);
}
.nav.is-scrolled { box-shadow: 0 2px 24px rgba(34,34,34,0.06); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; }
.wordmark {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--color-accent);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wordmark-sub {
  font-family: var(--font-body);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
}

.nav-links {
  display: flex;
  gap: 40px;
}
.nav-links a {
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--color-accent);
  transition: right 0.3s var(--ease);
}
.nav-links a:hover::after { right: 0; }

.nav-cta {
  border: 1px solid var(--color-accent);
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-cta:hover {
  background: var(--color-accent);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 1px;
  background: var(--color-accent);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px var(--gutter) 24px;
  border-top: 1px solid var(--color-line-soft);
}
.mobile-menu a {
  padding: 14px 0;
  font-size: 1rem;
  border-bottom: 1px solid var(--color-line-soft);
}
.mobile-menu.is-open { display: flex; }

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0.35) 0%, rgba(20,18,16,0.25) 40%, rgba(20,18,16,0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 var(--gutter) 100px;
  color: #ffffff;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: 26px;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-primary-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn-hero-primary,
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}

.btn-hero-primary {
  background: #1f1f1f;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}
.btn-hero-primary:hover {
  background: #ede3da;
  color: #1f1f1f;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.btn-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.btn-hero-primary:hover .btn-arrow { transform: translateX(3px); }

.btn-hero-secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.65);
}
.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.hero-trust {
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
  letter-spacing: 0.01em;
}

/* ===========================================================
   Featured Projects
   =========================================================== */
.projects {
  padding: 100px 0 110px;
  background: var(--color-secondary);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: 22px;
}

.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  grid-column: span 3;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-card);
  /* button reset */
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  font: inherit;
  text-align: inherit;
  width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.project-card.size-lg { grid-column: span 4; }
.project-grid .project-card:nth-child(2),
.project-grid .project-card:nth-child(3) { grid-column: span 2; }
.project-grid .project-card:nth-child(6) { grid-column: span 2; }

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project-card:hover img { transform: scale(1.03); }

.project-tag {
  position: absolute;
  left: 18px;
  bottom: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-accent);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

.project-expand {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.project-expand svg { width: 16px; height: 16px; color: var(--color-accent); }
.project-card:hover .project-expand,
.project-card:focus-visible .project-expand {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .project-expand { opacity: 0.9; transform: translateY(0); }
}

.projects-cta {
  max-width: 560px;
  margin: 96px auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects-cta-heading {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.projects-cta-sub {
  font-size: 1rem;
  line-height: 1.65;
  max-width: 440px;
  margin-bottom: 36px;
}

/* ===========================================================
   About
   =========================================================== */
.about {
  padding: 100px 0;
  background: var(--color-primary);
}

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

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.about-copy h2 { margin-bottom: 22px; }
.about-copy p { font-size: 1.02rem; max-width: 480px; }

/* ===========================================================
   Services
   =========================================================== */
.services {
  padding: 100px 0 110px;
  background: var(--color-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
}

.service-card {
  padding: 48px 40px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.service-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
  border-color: transparent;
}

.service-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: 26px;
}

.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: 0.96rem; }

/* ===========================================================
   Contact CTA
   =========================================================== */
.contact {
  background: var(--color-primary);
}

.contact-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 140px 80px;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 80px;
  align-items: start;
}

/* --- Left: intro --- */
.contact-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.contact-intro .eyebrow-dark { margin-bottom: 24px; }

.contact-heading {
  font-size: clamp(2.6rem, 4vw, 3.75rem);
  line-height: 1.12;
  margin-bottom: 32px;
}

.contact-sub {
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 48px;
}

.contact-cta:hover { transform: none; }

/* --- Right: panel --- */
.contact-panel {
  background: var(--color-secondary);
  border: 1px solid #e8ded4;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 12px 44px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 32px 0;
  transition: opacity 0.3s var(--ease);
}
a.contact-row:hover { opacity: 0.6; }

.row-icon {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.row-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.row-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
}

.row-value {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--color-accent);
}

.row-value-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.row-value-social a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease);
}
.row-value-social a:hover { color: var(--color-accent-soft); }
.row-sep { color: var(--color-line); font-size: 1rem; }

.row-divider {
  height: 1px;
  background: #e8ded4;
}

/* ===========================================================
   Footer
   =========================================================== */
.footer {
  background: var(--color-accent);
  color: rgba(255, 255, 255, 0.75);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 48px;
  padding: 80px 0 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 22px;
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

.wordmark-footer {
  color: #ffffff;
  font-size: 1.7rem;
}
.wordmark-footer .wordmark-sub {
  color: rgba(255, 255, 255, 0.55);
}

.footer-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
}

.footer-links { display: flex; flex-direction: column; }
.footer-links a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
  padding: 7px 0;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer-links a:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.footer-contact { display: flex; flex-direction: column; gap: 16px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.3s var(--ease);
}
.footer-contact-item:hover { color: #ffffff; }
.footer-contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 26px 0;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.75);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.footer-social a svg { width: 17px; height: 17px; }
.footer-social a:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* ===========================================================
   Fade-up animation
   =========================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card,
  .project-card.size-lg,
  .project-grid .project-card:nth-child(2),
  .project-grid .project-card:nth-child(3),
  .project-grid .project-card:nth-child(6) { grid-column: span 1; }

  .contact-shell {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 96px 48px;
  }
  .contact-panel { padding: 8px 32px; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero { min-height: 88vh; }
  .hero-content { padding-bottom: 64px; }

  .services-grid { grid-template-columns: 1fr; }

  .projects, .about, .services { padding: 72px 0; }
  .contact-shell { padding: 72px var(--gutter); }
  .section-head { margin-bottom: 40px; }
  .projects-cta { margin-top: 64px; }
  .footer-top { padding: 56px 0 40px; gap: 36px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-primary-group { align-items: stretch; }
  .hero-primary-group .btn-hero-primary,
  .btn-hero-secondary { width: 100%; }
  .hero-trust { text-align: center; }
  .btn { width: 100%; }
  .contact-panel { padding: 4px 24px; }
  .contact-row { gap: 16px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { justify-content: center; text-align: center; flex-direction: column; }
}

/* ===========================================================
   Lightbox Gallery
   =========================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(17, 15, 13, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0s linear 0.28s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s var(--ease);
}

.lightbox-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 88px 96px;
  overflow: hidden;
  touch-action: none;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: scale(0.97) translateX(0);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  will-change: transform;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-image.is-visible {
  opacity: 1;
  transform: scale(1) translateX(0);
}
.lightbox-image.is-zoomed { cursor: grab; }
.lightbox-image.is-panning { cursor: grabbing; }

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: background-color 0.25s var(--ease);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox-close svg { width: 18px; height: 18px; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: background-color 0.25s var(--ease), opacity 0.25s var(--ease);
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-nav:disabled { opacity: 0; pointer-events: none; }

.lightbox-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 88px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  text-align: center;
}
.lightbox-caption { max-width: 640px; }
.lightbox-counter {
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .lightbox-stage { padding: 56px 16px 88px; touch-action: pinch-zoom; }
  .lightbox-nav { display: none; }
  .lightbox-close { top: 14px; right: 14px; }
  .lightbox-footer { padding: 0 20px; bottom: 18px; flex-direction: column; gap: 4px; }
}
