/* ===========================================================
   Atelier de Interiors — minimalist chic
   Palette: ink / paper off-white / sand / taupe
   Type: Cormorant Garamond (serif) + Jost (sans)
   =========================================================== */

:root {
  --ink: #1C1B19;
  --paper: #F6F2EC;
  --paper-2: #EFE9DF;
  --sand: #B9A990;
  --taupe: #7A6F5E;
  --line: rgba(28, 27, 25, 0.14);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; }

.wrap { width: 90%; max-width: var(--maxw); margin-inline: auto; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--taupe);
  font-weight: 400;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 1.05em 2.2em;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--light { color: var(--paper); border-color: var(--paper); }
.btn--light:hover { background: var(--paper); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1.6rem 0;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header.scrolled {
  background: rgba(246, 242, 236, 0.92);
  backdrop-filter: blur(10px);
  padding: 0.9rem 0;
  box-shadow: 0 1px 0 var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .name {
  font-family: var(--serif);
  font-size: 1.32rem;
  letter-spacing: 0.18em;
}
.brand-text .sub {
  font-size: 0.56rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 0.32em;
}
.nav-links { display: flex; align-items: center; gap: 2.4rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: var(--ink); margin: 6px 0; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  width: 90%;
  max-width: var(--maxw);
  margin-inline: auto;
}
.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.4rem);
  letter-spacing: 0.01em;
}
.hero h1 em { font-style: italic; color: var(--taupe); }
.hero .lead {
  margin: 1.8rem 0 2.6rem;
  max-width: 30ch;
  font-size: 1.05rem;
  color: #3c382f;
}
.hero-eyebrow { margin-bottom: 1.4rem; display: inline-block; }
.hero-figure {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(246,242,236,0.5);
  margin: 14px;
  pointer-events: none;
}

/* ---------- Section frame ---------- */
section { padding: 7rem 0; }
.section-head { max-width: 56ch; margin-bottom: 3.5rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-top: 0.8rem; }
.section-head p { margin-top: 1.2rem; color: #4a463c; }

/* ---------- About ---------- */
.about { background: var(--paper-2); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4.5rem; align-items: center; }
.about-figure { aspect-ratio: 4 / 5; overflow: hidden; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-copy h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0.8rem 0 1.4rem; }
.about-copy p + p { margin-top: 1.1rem; }
.about-stats { display: flex; gap: 3rem; margin-top: 2.6rem; }
.about-stats .num { font-family: var(--serif); font-size: 2.6rem; line-height: 1; }
.about-stats .lbl { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--taupe); margin-top: 0.5rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  padding: 2.8rem 2.4rem 3rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.5s var(--ease);
}
.service:hover { background: var(--paper-2); }
.service .idx { font-family: var(--serif); font-size: 1rem; color: var(--sand); }
.service h3 { font-size: 1.7rem; margin: 1.1rem 0 0.9rem; }
.service p { font-size: 0.95rem; color: #4a463c; }

/* ---------- Portfolio ---------- */
.portfolio { background: var(--ink); color: var(--paper); }
.portfolio .eyebrow { color: var(--sand); }
.portfolio .section-head h2 { color: var(--paper); }
.portfolio .section-head p { color: #cfc9bd; }
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.tile { position: relative; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile figcaption {
  position: absolute;
  left: 1.4rem; bottom: 1.2rem;
  z-index: 2;
  color: #fff;
}
.tile figcaption .t { font-family: var(--serif); font-size: 1.35rem; }
.tile figcaption .s { font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.85; }
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0) 55%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.tile:hover::after { opacity: 1; }
.tile.big { grid-column: span 7; aspect-ratio: 16 / 11; }
.tile.tall { grid-column: span 5; aspect-ratio: 4 / 5; }
.tile.sm { grid-column: span 4; aspect-ratio: 1 / 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; }
.contact-info h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0.8rem 0 1.6rem; }
.contact-info .row { margin-bottom: 1.6rem; }
.contact-info .row .k { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--taupe); margin-bottom: 0.3rem; }
.contact-info .row .v { font-size: 1.05rem; }
.contact-info a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-info a:hover { border-color: var(--ink); }

form { display: flex; flex-direction: column; gap: 1.4rem; }
.field { display: flex; flex-direction: column; }
.field label { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--taupe); margin-bottom: 0.6rem; }
.field input, .field textarea {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  transition: border-color 0.4s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 90px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-2); padding: 3.5rem 0; border-top: 1px solid var(--line); }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer svg { width: 30px; height: 30px; }
.footer-grid .small { font-size: 0.74rem; letter-spacing: 0.12em; color: var(--taupe); }
.footer-social { display: flex; gap: 1.6rem; list-style: none; }
.footer-social a { color: var(--ink); text-decoration: none; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .hero-figure { aspect-ratio: 4 / 3; order: -1; }
  .services-grid { grid-template-columns: 1fr; }
  .tile.big, .tile.tall, .tile.sm { grid-column: span 12; aspect-ratio: 16 / 10; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--paper); flex-direction: column; justify-content: center;
    gap: 2rem; padding: 3rem; transform: translateX(100%);
    transition: transform 0.5s var(--ease); box-shadow: -10px 0 40px rgba(0,0,0,0.08);
  }
  .nav-links.open { transform: none; }
  .nav-toggle { display: block; z-index: 60; }
}
