/* ============================================
   Jocelyn Mina — Luxury Interior Design Website
   Editorial layout
   ============================================ */

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

:root {
  --color-bg:     #f2f0ec;
  --color-ink:    #2b2a29;
  --color-muted:  #7d7872;
  --color-line:   rgba(43, 42, 41, 0.18);
  --color-stone:  #e4e0d9;
  --color-white:  #ffffff;
  --font-sans:    'Jost', system-ui, sans-serif;
  --header-h:     84px;
  --max-w:        1320px;
  --gutter:       clamp(20px, 5vw, 64px);
  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: normal; }

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

/* ── Type primitives ── */
.label {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-ink);
}
.label.muted { color: var(--color-muted); margin-bottom: 20px; }
.label .num { color: var(--color-muted); margin-right: 14px; }
/* Section labels (01 About, 02 Selected Works…) read a little larger */
.chapter-head .label,
.process-head .label,
.contact > .container > .label { font-size: 13px; }

.display {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(2.3rem, 4.8vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.display em { font-style: normal; color: var(--color-muted); }

.prose p { margin-bottom: 1.4em; max-width: 34em; }
.prose strong { font-weight: 500; }
.prose .prose-lead {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.55;
}
.prose .signature {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-ink);
  transition: gap 0.4s var(--ease);
}
.text-link::after { content: '→'; letter-spacing: 0; }
.text-link:hover { gap: 26px; }

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-stone);
}
.placeholder span {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ── Header ── */
#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  color: var(--color-white);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), height 0.5s var(--ease);
}
#header.scrolled,
body.menu-open #header {
  background: var(--color-bg);
  color: var(--color-ink);
  height: 68px;
}
body.menu-open #header { background: transparent; }

.logo {
  display: block;
  transition: opacity 0.5s var(--ease);
}
.logo img { display: block; width: auto; height: 42px; }
.footer .logo img { height: 60px; }
/* Home page: the large logo owns the opening screen; the small one appears once you scroll */
.at-top:not(.menu-open) #header .logo { opacity: 0; pointer-events: none; }

.menu-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-family: var(--font-sans);
}
.menu-lines { position: relative; width: 28px; height: 13px; }
.menu-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.menu-lines span:nth-child(1) { top: 0; }
.menu-lines span:nth-child(2) { top: 6px; transition: opacity 0.3s; }
.menu-lines span:nth-child(3) { top: 12px; }
body.menu-open .menu-lines span:nth-child(1) { top: 6px; transform: rotate(45deg); }
body.menu-open .menu-lines span:nth-child(2) { opacity: 0; }
body.menu-open .menu-lines span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ── Full-screen menu ── */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--header-h) var(--gutter) 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
body.menu-open .menu { opacity: 1; visibility: visible; }

.menu-list li { overflow: hidden; }
.menu-list a {
  display: flex;
  align-items: baseline;
  gap: 28px;
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(2rem, min(6vw, 7.5vh), 4.4rem);
  line-height: 1.15;
  transform: translateY(100%);
  transition: transform 0.7s var(--ease), font-style 0s;
  letter-spacing: -0.01em;
}
body.menu-open .menu-list a { transform: none; }
.menu-list li:nth-child(2) a { transition-delay: 0.05s; }
.menu-list li:nth-child(3) a { transition-delay: 0.10s; }
.menu-list li:nth-child(4) a { transition-delay: 0.15s; }
.menu-list li:nth-child(5) a { transition-delay: 0.20s; }
.menu-list li:nth-child(6) a { transition-delay: 0.25s; }
.menu-list a:hover { color: var(--color-muted); }
.menu-list .num {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--color-muted);
}
.menu-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ── Chapters ── */
.chapter {
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--color-line);
}
.chapter-head { margin-bottom: clamp(48px, 7vw, 96px); }
/* Opening screen: name centred, nothing else */
.opening {
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: var(--header-h) var(--gutter) 0;
  text-align: center;
}
.opening-logo img {
  display: block;
  width: clamp(260px, 46vw, 620px);
  height: auto;
}
.opening-role span { white-space: pre; }
.opening-role {
  font-size: clamp(0.7rem, 0.95vw, 0.85rem);
  line-height: 2;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.chapter-head .label { margin-bottom: 28px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}

.portrait { aspect-ratio: 3 / 4; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

.facts {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-line);
}
.facts dt {
  font-family: var(--font-sans);
  font-size: 2.6rem;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.01em;
}
.facts dd {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ── Selected Works ── */
.works-more {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 28px;
  margin-top: clamp(64px, 8vw, 110px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
}
.works-group + .works-group { margin-top: clamp(72px, 9vw, 120px); }
.works-group > .label { margin-bottom: 28px; }
.project-note {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.project-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 22px;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.project:hover .project-media img { transform: scale(1.04); }
.project-meta {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 8px;
}
.project h3 {
  font-weight: 300;
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* ── Services ── */
.service-list { border-bottom: 1px solid var(--color-line); }
.service-row {
  display: grid;
  grid-template-columns: 64px 1fr 1.4fr;
  gap: 40px;
  align-items: baseline;
  padding: 48px 0;
  border-top: 1px solid var(--color-line);
}
.service-num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-muted);
}
.service-row h3 {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.service-row p { max-width: 30em; }

/* ── Process (within Services) ── */
.process { margin-top: clamp(80px, 10vw, 140px); }
.process-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.process-head .label { margin-bottom: 20px; }
.process-lead { margin-top: 24px; max-width: 40em; }

/* Seven steps: native <details> drop-downs, each opening to an image + details */
.steps { border-bottom: 1px solid var(--color-line); }
.step { border-top: 1px solid var(--color-line); }
.step summary {
  display: grid;
  grid-template-columns: 64px 1.3fr 1fr 24px;
  gap: 32px;
  align-items: baseline;
  padding: 30px 0;
  cursor: pointer;
  list-style: none;
}
.step summary::-webkit-details-marker { display: none; }
.step summary:focus-visible { outline: 1px solid var(--color-ink); outline-offset: 6px; }
.step-num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-muted);
}
.step-title {
  font-weight: 300;
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.step-tag {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.step-icon {
  position: relative;
  width: 14px;
  height: 14px;
  justify-self: end;
  align-self: center;
}
.step-icon::before,
.step-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.step-icon::before { left: 0; right: 0; top: 50%; height: 1px; }
.step-icon::after  { top: 0; bottom: 0; left: 50%; width: 1px; }
.step[open] .step-icon::after { transform: rotate(90deg); opacity: 0; }
.step summary:hover .step-title { color: var(--color-muted); }

.step-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding: 8px 0 48px calc(64px + 32px);
}
.step-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.step-media img { width: 100%; height: 100%; object-fit: cover; }
.step-text p { margin-bottom: 1.2em; max-width: 34em; }
.step-text p:last-child { margin-bottom: 0; }

/* Smooth open/close where the browser can animate <details> */
:root { interpolate-size: allow-keywords; }
.step::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.5s var(--ease), content-visibility 0.5s allow-discrete;
}
.step[open]::details-content { block-size: auto; }

/* ── Contact ── */
.contact {
  background: var(--color-stone);
  padding: clamp(100px, 12vw, 180px) 0;
}
.contact .label { color: var(--color-muted); }
.contact-title {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(3.4rem, 9vw, 8rem);
  line-height: 1;
  margin: 24px 0 20px;
  letter-spacing: -0.03em;
}
.contact-sub {
  max-width: 32em;
  font-size: 1.05rem;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 8vw, 120px);
}
.contact-details { display: flex; flex-direction: column; gap: 36px; }
.contact-details .label { margin-bottom: 8px; }
.contact-details a,
.contact-details span:not(.label) {
  font-size: 1.15rem;
}
.contact-details a { transition: color 0.3s; }
.contact-details a:hover { color: var(--color-muted); }
.social-links { display: flex; gap: 22px; margin-top: 4px; }
.social-links a { display: inline-flex; opacity: 0.85; transition: opacity 0.3s; }
.social-links a:hover { color: var(--color-ink); opacity: 1; }
.social-links svg { width: 22px; height: 22px; }

.contact-form { display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; width: 100%; }
.form-group { display: flex; flex-direction: column; width: 100%; }
.form-group label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--color-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-line);
  border-radius: 0;
  padding: 8px 0;
  outline: none;
  resize: vertical;
  transition: border-color 0.3s;
}
.form-group select {
  appearance: none;
  cursor: pointer;
  padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237d7872' stroke-width='1.2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 4px center;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--color-ink); }

.as-button {
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  color: var(--color-ink);
  cursor: pointer;
  margin-top: 8px;
}
.as-button:disabled { opacity: 0.5; cursor: wait; }
.form-note { font-size: 1rem; }
.form-error { color: #8a3b2e; }
.form-error a { text-decoration: underline; }
/* Spam trap: invisible to people, filled in by bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-alt {
  margin-top: -8px;
  color: var(--color-muted);
  border-color: var(--color-muted);
}
.form-alt:hover { color: var(--color-ink); border-color: var(--color-ink); }

/* ── Brands ── */
.brands {
  margin-top: clamp(80px, 10vw, 140px);
  padding-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--color-line);
}
.brands .label { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: clamp(24px, 4vw, 56px);
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  padding: 12px;
  text-align: center;
}
.brand img {
  width: auto;
  height: 48px;
  max-width: min(170px, 85%);
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity 0.4s, filter 0.4s;
}
/* Optical balance: very compact or very wide marks */
.brand--taj img { height: 60px; }
.brand--le-meridien img,
.brand--fairmont img { height: 40px; }
.brand:hover img { filter: none; opacity: 1; }

/* ── Become a Client page ── */
.page-solid #header { background: var(--color-bg); color: var(--color-ink); }
.page-solid.menu-open #header { background: transparent; }

.client-intro,
.client-thanks {
  padding-top: calc(var(--header-h) + clamp(72px, 10vw, 140px));
  padding-bottom: clamp(56px, 7vw, 96px);
}
.client-intro .label,
.client-thanks .label { margin-bottom: 28px; color: var(--color-muted); }
.client-lead {
  max-width: 40em;
  margin-top: 36px;
  font-size: 1.05rem;
}
.client-thanks .text-link { margin-top: 40px; }
.client-thanks:focus { outline: none; }

.client-form { padding-bottom: clamp(80px, 10vw, 140px); }
.form-step {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--color-line);
}
.step-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  align-self: start;
  position: sticky;
  top: 100px;
}
.step-head .num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-muted);
}
.step-head h2 {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.step-fields { display: flex; flex-direction: column; gap: 36px; }

fieldset.form-group { border: 0; min-width: 0; }
fieldset.form-group legend {
  padding: 0;
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.optional {
  margin-left: 8px;
  letter-spacing: 0.1em;
  text-transform: none;
  opacity: 0.8;
}

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.form-group .choice {
  position: relative;
  cursor: pointer;
  margin: 0;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: var(--color-ink);
}
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--color-line);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.choice:hover span { border-color: var(--color-ink); }
.choice input:checked + span {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-bg);
}
.choice input:focus-visible + span { outline: 1px solid var(--color-ink); outline-offset: 3px; }

.field-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.form-group input[type="file"] {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-muted);
  padding: 12px 0;
}
.form-group input[type="file"]::file-selector-button {
  margin-right: 18px;
  padding: 10px 18px;
  border: 1px solid var(--color-ink);
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
}

.form-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--color-line);
}
.form-submit .field-note { margin: 0; }

/* ── Footer ── */
.footer { padding: 72px 0 32px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-line);
}
.footer-nav, .footer-social { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-nav a {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--color-ink); }
.footer-social { gap: 22px; }
.footer-social a {
  display: inline-flex;
  color: var(--color-muted);
  transition: color 0.3s;
}
.footer-social a:hover { color: var(--color-ink); }
.footer-social svg { width: 20px; height: 20px; }
.footer-copy {
  padding-top: 24px;
  font-size: 12px;
  color: var(--color-muted);
}

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; }
  .opening-role span { display: block; }
  .opening-role .sep { display: none; }
  .projects { grid-template-columns: 1fr; gap: 48px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .brand:last-child { grid-column: 1 / -1; }
  .step summary { grid-template-columns: 40px 1fr 20px; gap: 6px 16px; padding: 24px 0; }
  .step-tag { grid-column: 2; grid-row: 2; }
  .step-icon { grid-column: 3; grid-row: 1; }
  .step-body { grid-template-columns: 1fr; gap: 24px; padding: 0 0 32px 56px; }
  .service-row { grid-template-columns: 1fr; gap: 14px; padding: 36px 0; }
  .form-step { grid-template-columns: 1fr; gap: 28px; }
  .step-head { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .facts { gap: 28px; }
  .menu-label { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
}
