/* =============================================
   ARCHITECT PORTFOLIO — Dark + Photo Design
   ============================================= */

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

:root {
  --black:   #080808;
  --dark:    #111111;
  --dark2:   #181818;
  --white:   #f5f2ee;
  --gray:    #999490;
  --muted:   #555250;
  --accent:  #c4956a;
  --accent2: #a07850;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }

/* ─── NAVIGATION ─────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 2rem 3rem;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(16px);
  padding: 1.1rem 3rem;
  border-bottom: 1px solid rgba(196,149,106,0.15);
}
.nav__logo a {
  font-family: var(--font-serif);
  font-size: 1.5rem; font-weight: 400;
  letter-spacing: 0.25em; color: var(--white);
}
.nav__links { display: flex; gap: 2.5rem; align-items: center; }
.nav__links a {
  font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(245,242,238,0.65);
  transition: color 0.3s;
}
.nav__links a:hover { color: var(--white); }
.nav__cta {
  border: 1px solid var(--accent) !important;
  color: var(--accent) !important;
  padding: 0.5rem 1.3rem;
  transition: background 0.3s, color 0.3s !important;
}
.nav__cta:hover { background: var(--accent) !important; color: var(--black) !important; }

.nav__hamburger { display: none; flex-direction: column; gap: 5px; }
.nav__hamburger span { display: block; width: 24px; height: 1px; background: var(--white); }

.mobile-menu {
  position: fixed; inset: 0;
  background: var(--black); z-index: 99;
  display: flex; align-items: center; justify-content: center;
  transform: translateX(100%); transition: transform 0.4s var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu li { margin: 1.2rem 0; text-align: center; }
.mobile-menu a { font-family: var(--font-serif); font-size: 2.8rem; font-weight: 300; }

/* ─── HERO ───────────────────────────────────── */
.hero {
  position: relative; height: 100vh; min-height: 650px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero:hover .hero__bg { transform: scale(1); }
.hero__bg--default {
  background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1800&q=85&auto=format&fit=crop');
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8,8,8,0.75) 0%,
    rgba(8,8,8,0.4) 50%,
    rgba(8,8,8,0.65) 100%
  );
}
.hero__content {
  position: relative; z-index: 1;
  text-align: center; padding: 0 1.5rem;
  max-width: 800px;
}
.hero__label {
  font-size: 0.7rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 2rem; display: block;
}
.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 300; letter-spacing: 0.04em; line-height: 1;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}
.hero__tagline {
  font-size: 0.85rem; letter-spacing: 0.18em;
  color: rgba(245,242,238,0.65); margin-bottom: 3.5rem;
  text-transform: uppercase;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__btn {
  display: inline-block; padding: 0.9rem 2.2rem;
  font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; transition: all 0.3s;
}
.hero__btn--primary { background: var(--accent); color: var(--black); }
.hero__btn--primary:hover { background: var(--white); }
.hero__btn--outline { border: 1px solid rgba(245,242,238,0.4); color: var(--white); }
.hero__btn--outline:hover { border-color: var(--white); }

.hero__scroll {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.hero__scroll span {
  width: 1px; height: 55px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollPulse 2s ease-in-out infinite;
}
.hero__scroll p { font-size: 0.6rem; letter-spacing: 0.3em; color: rgba(245,242,238,0.4); }
@keyframes scrollPulse { 0%,100%{opacity:0.4} 50%{opacity:1} }

/* ─── SECTIONS ───────────────────────────────── */
.section { padding: 8rem 0; }
.section__eyebrow {
  font-size: 0.68rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem;
}
.section__eyebrow::before { content:''; width:28px; height:1px; background:var(--accent); }
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300; color: var(--white); line-height: 1.15;
}

/* ─── PORTFOLIO ──────────────────────────────── */
.portfolio {
  position: relative; overflow: hidden;
}
.portfolio__bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?w=1800&q=60&auto=format&fit=crop');
  background-size: cover; background-position: center;
  background-attachment: fixed;
  opacity: 0.06;
}
.portfolio .container { position: relative; z-index: 1; }

.portfolio__header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 3.5rem; flex-wrap: wrap; gap: 2rem;
}
.portfolio__filter { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-btn {
  padding: 0.4rem 1.1rem; font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid #2a2a2a;
  background: rgba(255,255,255,0.02); transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent); color: var(--accent);
  background: rgba(196,149,106,0.06);
}

/* Grid */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 1.5px;
}
.project-card { position: relative; overflow: hidden; cursor: pointer; }
.project-card:nth-child(1) { grid-row: span 2; }
.project-card:nth-child(5) { grid-column: span 2; }

.project-card__image { position: absolute; inset: 0; }
.project-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
  filter: brightness(0.85);
}
.project-card:hover .project-card__image img {
  transform: scale(1.06); filter: brightness(0.7);
}
.project-card__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1a1a, #2a2828);
}

.project-card__info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem 1.8rem 1.8rem;
  background: linear-gradient(to top, rgba(8,8,8,0.9) 0%, transparent 100%);
  transform: translateY(8px);
  transition: transform 0.4s var(--ease);
}
.project-card:hover .project-card__info { transform: translateY(0); }
.project-card__category {
  font-size: 0.6rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; display: block;
}
.project-card__title {
  font-family: var(--font-serif);
  font-size: 1.3rem; font-weight: 400; color: var(--white); line-height: 1.2;
}
.project-card__meta {
  font-size: 0.7rem; color: rgba(245,242,238,0.5);
  display: flex; gap: 1rem; margin-top: 0.4rem;
}
.project-card__cta {
  display: inline-block; margin-top: 1rem;
  padding: 0.45rem 1.1rem; border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.35s, transform 0.35s, background 0.3s;
}
.project-card:hover .project-card__cta { opacity: 1; transform: translateY(0); }
.project-card__cta:hover { background: var(--accent); border-color: var(--accent); color: var(--black); }
.project-card.hidden { display: none; }

/* ─── MODAL ──────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.modal.active { opacity: 1; pointer-events: all; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(8,8,8,0.88); backdrop-filter: blur(6px);
}
.modal__content {
  position: relative; z-index: 1;
  background: #141414; border: 1px solid #222;
  width: 90%; max-width: 960px; max-height: 90vh; overflow-y: auto;
  transform: translateY(16px); transition: transform 0.4s var(--ease);
}
.modal.active .modal__content { transform: translateY(0); }
.modal__close {
  position: sticky; top: 1rem; float: right;
  margin: 1rem 1rem 0 0; font-size: 1.5rem; color: var(--muted);
  width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center;
  transition: color 0.2s;
}
.modal__close:hover { color: var(--white); }
.modal__loading { padding: 4rem; text-align: center; color: var(--muted); }

.modal-project { display: grid; grid-template-columns: 1fr 1fr; }
.modal-project__visuals { }
.modal-project__cover { width:100%; aspect-ratio:4/3; object-fit:cover; }
.modal-project__gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:2px; margin-top:2px; }
.modal-project__gallery img { aspect-ratio:1; object-fit:cover; width:100%; }

.modal-project__details { padding: 2.5rem 2rem; display:flex; flex-direction:column; justify-content:center; }
.modal-project__cat { font-size:0.62rem; letter-spacing:0.25em; text-transform:uppercase; color:var(--accent); margin-bottom:0.6rem; }
.modal-project__title { font-family:var(--font-serif); font-size:1.9rem; font-weight:300; margin-bottom:1.5rem; line-height:1.2; }
.modal-project__specs { display:flex; flex-wrap:wrap; gap:1.5rem; margin-bottom:1.5rem; padding-bottom:1.5rem; border-bottom:1px solid #222; }
.modal-project__spec-label { display:block; font-size:0.6rem; letter-spacing:0.18em; text-transform:uppercase; color:var(--muted); margin-bottom:0.2rem; }
.modal-project__spec-val { font-size:0.88rem; color:rgba(245,242,238,0.8); }
.modal-project__desc { font-size:0.86rem; color:var(--gray); line-height:1.85; }

/* ─── NUMBERS ────────────────────────────────── */
.numbers {
  position: relative; padding: 5rem 0; overflow: hidden;
}
.numbers__bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?w=1800&q=60&auto=format&fit=crop');
  background-size: cover; background-position: center 40%;
}
.numbers__overlay {
  position: absolute; inset: 0;
  background: rgba(8,8,8,0.82);
}
.numbers .container { position: relative; z-index: 1; }
.numbers__grid { display:grid; grid-template-columns:repeat(4,1fr); }
.number-item {
  text-align:center; padding:3.5rem 2rem;
  border-right:1px solid rgba(255,255,255,0.08);
}
.number-item:last-child { border-right:none; }
.number-item__num {
  font-family:var(--font-serif); font-size:4rem; font-weight:300;
  color:var(--accent); line-height:1; margin-bottom:0.5rem;
}
.number-item__label { font-size:0.68rem; letter-spacing:0.18em; text-transform:uppercase; color:var(--muted); }

/* ─── SERVICES ───────────────────────────────── */
.services {
  position: relative; overflow: hidden;
}
.services__bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?w=1800&q=60&auto=format&fit=crop');
  background-size: cover; background-position: center;
  background-attachment: fixed;
  opacity: 0.08;
}
.services .container { position: relative; z-index: 1; }

.services__layout {
  display: grid; grid-template-columns: 1fr 1.8fr; gap: 7rem; align-items: start;
}
.services__left { position: sticky; top: 7rem; }
.services__left .section__title { margin: 0.8rem 0 1.5rem; }
.services__cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); border-bottom: 1px solid rgba(196,149,106,0.3);
  padding-bottom: 3px; transition: gap 0.3s, border-color 0.3s;
}
.services__cta:hover { gap: 1rem; border-color: var(--accent); }

.services__list { }
.service-item {
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.5rem;
  padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.service-item:first-child { border-top: 1px solid rgba(255,255,255,0.06); }
.service-item__num { font-family:var(--font-serif); font-size:0.9rem; color:var(--accent); padding-top:0.2rem; }
.service-item__title { font-family:var(--font-serif); font-size:1.3rem; font-weight:400; margin-bottom:0.5rem; }
.service-item__desc { font-size:0.83rem; color:var(--gray); line-height:1.75; }

/* ─── ABOUT ──────────────────────────────────── */
.about {
  position: relative; overflow: hidden;
}
.about__bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1560448204-603b3fc33ddc?w=1800&q=60&auto=format&fit=crop');
  background-size: cover; background-position: center;
  opacity: 0.07;
}
.about .container { position: relative; z-index: 1; }

.about__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7rem; align-items: center;
}
.about__images { display:grid; grid-template-rows:2fr 1fr; gap:1rem; }
.about__img-main { width:100%; aspect-ratio:3/4; object-fit:cover; }
.about__img-main--placeholder { background:#1a1a1a; aspect-ratio:3/4; width:100%; }
.about__img-accent { width:100%; aspect-ratio:16/9; object-fit:cover; }

.about__text .section__title { margin:0.8rem 0 1rem; }
.about__subtitle { font-family:var(--font-serif); font-size:1rem; font-style:italic; color:var(--accent); margin-bottom:2rem; }
.about__bio { font-size:0.88rem; color:var(--gray); line-height:1.95; margin-bottom:2.5rem; }
.about__stats { display:flex; gap:3rem; padding-top:2rem; border-top:1px solid rgba(255,255,255,0.08); }
.stat__num { display:block; font-family:var(--font-serif); font-size:2.5rem; font-weight:300; color:var(--accent); }
.stat__label { font-size:0.7rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--muted); }

/* ─── CONTACT ────────────────────────────────── */
.contact {
  position: relative; overflow: hidden;
}
.contact__bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1800&q=60&auto=format&fit=crop');
  background-size: cover; background-position: center 30%;
  background-attachment: fixed;
}
.contact__overlay {
  position: absolute; inset: 0;
  background: rgba(8,8,8,0.88);
}
.contact .container { position: relative; z-index: 1; }

.contact__grid { display:grid; grid-template-columns:1fr 1.2fr; gap:7rem; align-items:start; margin-top:4rem; }
.contact__item { margin-bottom:2.5rem; }
.contact__label { display:block; font-size:0.6rem; letter-spacing:0.25em; text-transform:uppercase; color:var(--muted); margin-bottom:0.5rem; }
.contact__value { font-family:var(--font-serif); font-size:1.1rem; color:rgba(245,242,238,0.8); transition:color 0.3s; }
a.contact__value:hover { color:var(--accent); }
.contact__social { display:flex; gap:2rem; margin-top:2.5rem; }
.social-link { font-size:0.7rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--muted); transition:color 0.3s; }
.social-link:hover { color:var(--accent); }

.contact__form { display:flex; flex-direction:column; gap:0; }
.form-row-2 { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; }
.form-field { margin-bottom:1.5rem; }
.form-input {
  width:100%; background:rgba(255,255,255,0.04); border:none;
  border-bottom:1px solid rgba(255,255,255,0.12); color:var(--white);
  padding:0.9rem 0; font-family:var(--font-sans); font-size:0.88rem;
  transition:border-color 0.3s; resize:none;
}
.form-input::placeholder { color:rgba(245,242,238,0.25); }
.form-input:focus { outline:none; border-color:var(--accent); }
.btn-submit {
  margin-top:1rem; padding:1rem 2.5rem; background:var(--accent); color:var(--black);
  font-size:0.72rem; letter-spacing:0.18em; text-transform:uppercase;
  transition:background 0.3s; align-self:flex-start;
}
.btn-submit:hover { background:var(--white); }
.btn-submit:disabled { opacity:0.5; }
.form-status { font-size:0.82rem; margin-top:1rem; }
.form-status.success { color:#6ee7b7; }
.form-status.error   { color:#fca5a5; }

/* ─── FOOTER ─────────────────────────────────── */
.footer { background:var(--black); padding:2.5rem 0; border-top:1px solid rgba(255,255,255,0.06); }
.footer__inner { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; }
.footer__logo { font-family:var(--font-serif); font-size:1.3rem; letter-spacing:0.25em; color:rgba(245,242,238,0.3); }
.footer__copy { font-size:0.7rem; color:rgba(245,242,238,0.2); }
.footer__admin { font-size:0.65rem; color:rgba(245,242,238,0.12); }
.footer__admin:hover { color:rgba(245,242,238,0.3); }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .portfolio__grid { grid-template-columns:repeat(2,1fr); grid-auto-rows:280px; }
  .project-card:nth-child(1) { grid-row:span 1; }
  .project-card:nth-child(5) { grid-column:span 1; }
  .numbers__grid { grid-template-columns:repeat(2,1fr); }
  .number-item:nth-child(2) { border-right:none; }
  .number-item:nth-child(3) { border-top:1px solid rgba(255,255,255,0.08); }
  .services__layout { grid-template-columns:1fr; gap:3rem; }
  .services__left { position:static; }
  .about__grid { grid-template-columns:1fr; gap:3rem; }
  .about__images { grid-template-rows:auto auto; }
  .about__img-main { aspect-ratio:16/9; }
  .contact__grid { grid-template-columns:1fr; gap:3rem; }
}
@media (max-width: 768px) {
  .portfolio__grid { grid-template-columns:1fr; grid-auto-rows:260px; }
  .nav__links { display:none; }
  .nav__hamburger { display:flex; }
  .nav { padding:1.5rem; }
  .nav.scrolled { padding:1rem 1.5rem; }
  .container { padding:0 1.5rem; }
  .section { padding:5rem 0; }
  .hero__name { font-size:3.5rem; }
  .modal-project { grid-template-columns:1fr; }
  .form-row-2 { grid-template-columns:1fr; }
  .project-card__cta { opacity:1; transform:translateY(0); }
}
