/* ============================================================
   ESTUDIO NARRA — sample architecture studio site
   SAMPLE / PLACEHOLDER PROJECT · EulClavie web design demo
   ============================================================ */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- tokens ---------- */
:root {
  --paper:      #F5F4EF;
  --paper-warm: #EFEDE5;
  --beige:      #E4E0D4;
  --ink:        #111111;
  --ink-soft:   #2A2A28;
  --gray:       #7A776F;
  --gray-light: #A5A29A;
  --line:       rgba(17,17,17,.13);
  --line-soft:  rgba(17,17,17,.08);

  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: clamp(22px, 5.2vw, 110px);
  --bar-h: 30px;
  --nav-h: 76px;

  --fs-display: clamp(2.7rem, 8vw, 8rem);
  --fs-xl:      clamp(2.3rem, 6.2vw, 6.2rem);
  --fs-lg:      clamp(1.9rem, 4.4vw, 4rem);
  --fs-md:      clamp(1.5rem, 2.6vw, 2.3rem);
  --fs-lead:    clamp(1rem, 1.35vw, 1.28rem);

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  padding-top: var(--bar-h);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: var(--paper); }

.serif { font-family: var(--serif); font-weight: 400; }

.label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray);
}
.label--ink { color: var(--ink); }
.label--light { color: rgba(255,255,255,.72); }

.wrap { padding-inline: var(--gutter); }
.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- sample warning bar ---------- */
.sample-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--ink);
  color: #F5F4EF;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding-inline: 16px;
  text-align: center;
}
.sample-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sample-bar .dim { color: rgba(245,244,239,.5); }
@media (max-width: 720px) {
  .sample-bar { font-size: 8.5px; letter-spacing: .18em; }
  .sample-bar .dim { display: none; }
}

/* ---------- navigation ---------- */
.nav {
  position: fixed;
  top: var(--bar-h);
  left: 0; right: 0;
  z-index: 150;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  color: #fff;
  transition: background .5s var(--ease), color .5s var(--ease), height .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav::before {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--bar-h)) 0 auto 0;
  height: calc(var(--nav-h) + var(--bar-h) + 60px);
  background: linear-gradient(to bottom, rgba(0,0,0,.42), rgba(0,0,0,0));
  pointer-events: none;
  opacity: 1;
  transition: opacity .4s var(--ease);
  z-index: -1;
}
.nav.is-solid {
  background: rgba(245,244,239,.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  color: var(--ink);
  height: 64px;
  border-bottom-color: var(--line-soft);
}
.nav.is-solid::before { opacity: 0; }

.brand { display: flex; align-items: baseline; gap: 10px; line-height: 1; }
.brand__mark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .04em;
}
.brand__sub {
  font-size: 9px;
  letter-spacing: .26em;
  text-transform: uppercase;
  opacity: .62;
  font-weight: 400;
}
@media (max-width: 560px) { .brand__sub { display: none; } }

.nav__links { display: flex; align-items: center; gap: clamp(22px, 3vw, 46px); }
.nav__links a {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  position: relative;
  padding-block: 4px;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle { display: none; width: 34px; height: 34px; margin-right: -6px; position: relative; }
.nav__toggle i {
  position: absolute; left: 5px; right: 5px; height: 1px;
  background: currentColor; transition: transform .4s var(--ease), opacity .3s;
}
.nav__toggle i:nth-child(1) { top: 13px; }
.nav__toggle i:nth-child(2) { top: 20px; }
body.menu-open .nav__toggle i:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav__toggle i:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
}

/* mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: var(--paper);
  padding: calc(var(--bar-h) + var(--nav-h) + 24px) var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s;
}
body.menu-open .menu { opacity: 1; visibility: visible; transform: none; }
body.menu-open { overflow: hidden; }
.menu__links a {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 12vw, 4rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  padding-block: 6px;
  border-bottom: 1px solid var(--line-soft);
}
.menu__foot { display: flex; flex-wrap: wrap; gap: 8px 26px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: calc(100svh - var(--bar-h));
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 58%;
  transform: scale(1.06);
  animation: heroDrift 22s var(--ease) forwards;
}
@keyframes heroDrift { to { transform: scale(1); } }
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10,10,9,.62) 0%, rgba(10,10,9,.16) 42%, rgba(10,10,9,.28) 100%);
}
.hero__inner {
  position: relative;
  padding: 0 var(--gutter) clamp(78px, 11vh, 130px);
  width: 100%;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: .96;
  letter-spacing: -.015em;
  text-transform: uppercase;
  max-width: 15ch;
  text-wrap: balance;
}
.hero__meta {
  margin-top: clamp(20px, 3vh, 34px);
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: clamp(24px, 4vh, 40px);
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__scroll .arrow { display: inline-block; animation: nudge 2.6s var(--ease) infinite; }
@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: .55; }
  45%      { transform: translateY(6px); opacity: 1; }
}
@media (max-width: 720px) {
  .hero h1 { max-width: 11ch; font-size: clamp(2.9rem, 13.5vw, 4.6rem); }
  .hero__scroll { right: auto; left: var(--gutter); bottom: 26px; }
  .hero__inner { padding-bottom: 96px; }
}

/* ---------- section framing ---------- */
.section { padding-block: clamp(84px, 12vw, 190px); }
.section--tight { padding-block: clamp(64px, 8vw, 120px); }

.sechead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(46px, 7vw, 96px);
}

/* ---------- selected work ---------- */
.work { display: grid; gap: clamp(90px, 13vw, 200px); }

.project {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: end;
}
.project__media { grid-column: 1 / 9; }
.project__info  { grid-column: 10 / 13; padding-bottom: 6px; }
.project--right .project__media { grid-column: 5 / 13; grid-row: 1; }
.project--right .project__info  { grid-column: 1 / 4;  grid-row: 1; }
.project--portrait .project__media { grid-column: 3 / 8; }
.project--portrait .project__info  { grid-column: 9 / 13; }

.project__frame {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--beige);
}
.project__frame img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
  will-change: transform;
}
.project--portrait .project__frame img { aspect-ratio: 3 / 4; }
.project:hover .project__frame img { transform: scale(1.045); }
.project__info .label b { font-weight: 500; color: var(--ink); }
.project__name {
  font-family: var(--serif);
  font-size: var(--fs-md);
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin-top: 4px;
}
.project__dl {
  margin-top: 20px;
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: var(--gray);
  font-weight: 300;
}
.project__dl b { font-weight: 400; color: var(--ink-soft); }

/* link with sliding rule */
.arrowlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 7px;
}
.arrowlink::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform .55s var(--ease);
}
.arrowlink .arrow { transition: transform .55s var(--ease); }
.arrowlink:hover .arrow, .project:hover .arrowlink .arrow { transform: translateX(6px); }
.arrowlink:hover::after, .project:hover .arrowlink::after { transform: scaleX(.35); }
.project__cta { margin-top: 26px; }

@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; gap: 22px; }
  .project__media, .project__info,
  .project--right .project__media, .project--right .project__info,
  .project--portrait .project__media, .project--portrait .project__info {
    grid-column: 1 / -1; grid-row: auto;
  }
  .project--right .project__media { order: -1; }
  .project__frame { margin-inline: calc(-1 * var(--gutter)); }
  .project__frame img { aspect-ratio: 4 / 5; }
  .project--portrait .project__frame img { aspect-ratio: 4 / 5; }
  .project__dl { margin-top: 14px; grid-template-columns: repeat(2, auto); justify-content: start; gap: 6px 40px; }
  .project__cta { margin-top: 20px; }
}

/* ---------- studio intro ---------- */
.studio {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
.studio__head { grid-column: 1 / 8; }
.studio__body { grid-column: 8 / 12; padding-top: clamp(10px, 3vw, 46px); }
.studio h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-xl);
  line-height: 1.0;
  letter-spacing: -.018em;
  text-transform: uppercase;
  max-width: 13ch;
}
.studio__lead {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--gray);
  max-width: 46ch;
}
.studio__figure { grid-column: 1 / 6; margin-top: clamp(48px, 7vw, 110px); }
.studio__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.studio__stats {
  grid-column: 7 / 13;
  margin-top: clamp(48px, 7vw, 110px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-self: end;
}
.stat b { display: block; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1; font-weight: 400; }
.stat span { display: block; margin-top: 10px; }
@media (max-width: 900px) {
  .studio__head, .studio__body, .studio__figure, .studio__stats { grid-column: 1 / -1; }
  .studio__body { padding-top: 0; }
  .studio__figure { margin-top: 12px; }
  .studio__figure img { aspect-ratio: 3 / 2; }
  .studio__stats { margin-top: 34px; gap: 22px 14px; }
}

/* ---------- services ---------- */
.svc { border-top: 1px solid var(--line); }
.svc__row {
  display: grid;
  grid-template-columns: 90px minmax(0, 4fr) minmax(0, 5fr);
  gap: clamp(16px, 3vw, 48px);
  align-items: start;
  padding-block: clamp(26px, 3.6vw, 46px);
  border-bottom: 1px solid var(--line);
  transition: padding-left .6s var(--ease), background-color .6s var(--ease);
}
.svc__row:hover { padding-left: 14px; background: linear-gradient(to right, rgba(228,224,212,.55), rgba(228,224,212,0) 70%); }
.svc__row h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.9vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.svc__items { display: flex; flex-wrap: wrap; gap: 8px 34px; padding-top: clamp(4px, .8vw, 12px); }
.svc__items li { font-size: 14px; color: var(--gray); font-weight: 300; }
.svc__num { padding-top: 8px; }
@media (max-width: 760px) {
  .svc__row { grid-template-columns: 56px 1fr; gap: 10px 16px; }
  .svc__items { grid-column: 2; }
  .svc__row:hover { padding-left: 0; background: none; }
}

/* ---------- featured (cinematic) ---------- */
.feature {
  position: relative;
  height: clamp(520px, 88vh, 900px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.feature__media { position: absolute; inset: -12% 0; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.feature::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,9,.74) 0%, rgba(10,10,9,.34) 28%, rgba(10,10,9,.02) 62%);
}
.feature__inner { position: relative; z-index: 1; width: 100%; padding: 0 var(--gutter) clamp(56px, 8vw, 96px); }
.feature h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-xl);
  line-height: .98;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.feature__meta { margin-top: 14px; display: grid; gap: 3px; color: rgba(255,255,255,.78); font-size: 14px; }
.feature .arrowlink { margin-top: 30px; }

/* ---------- philosophy ---------- */
.philo { padding-block: clamp(110px, 17vw, 260px); }
.philo p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 5.6vw, 5.4rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  text-transform: uppercase;
  max-width: 20ch;
}
.philo p .dim { color: var(--gray); }
.philo__sig { margin-top: clamp(40px, 6vw, 80px); }

/* ---------- contact cta ---------- */
.cta { background: var(--ink); color: var(--paper); padding-block: clamp(96px, 15vw, 210px); }
.cta h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: .95;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.cta__row {
  margin-top: clamp(40px, 6vw, 76px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}
.cta p { color: rgba(245,244,239,.6); font-size: var(--fs-lead); max-width: 34ch; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(245,244,239,.34);
  padding: 20px 32px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- sample notice ---------- */
.notice {
  border: 1px solid var(--line);
  padding: clamp(24px, 3.4vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(16px, 3vw, 44px);
  background: var(--paper-warm);
}
.notice p { font-size: 14px; color: var(--gray); max-width: 62ch; }
.notice p + p { margin-top: 10px; }
@media (max-width: 760px) { .notice { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
}
.foot__brand .brand__mark { font-size: 30px; }
.foot__brand p { margin-top: 16px; font-size: 13px; color: var(--gray); max-width: 30ch; }
.foot__col h4 { margin-bottom: 16px; }
.foot__col li + li { margin-top: 9px; }
.foot__col a, .foot__col span { font-size: 14px; color: var(--ink-soft); font-weight: 300; }
.foot__col a { transition: opacity .3s; }
.foot__col a:hover { opacity: .55; }
.foot__bottom {
  margin-top: clamp(48px, 6vw, 84px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px 30px;
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .foot__top { grid-template-columns: repeat(2, 1fr); }
  .foot__brand { grid-column: 1 / -1; margin-bottom: 12px; }
}

/* ---------- project (detail) page ---------- */
.phero { position: relative; height: calc(100svh - var(--bar-h)); min-height: 540px; overflow: hidden; display: flex; align-items: flex-end; color: #fff; }
.phero__media { position: absolute; inset: 0; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroDrift 22s var(--ease) forwards; }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,9,.72) 0%, rgba(10,10,9,.3) 30%, rgba(10,10,9,.04) 64%); }
.phero__inner { position: relative; z-index: 1; width: 100%; padding: 0 var(--gutter) clamp(56px, 8vw, 100px); }
.phero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: var(--fs-display); line-height: .95;
  letter-spacing: -.02em; text-transform: uppercase;
}

.facts { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 48px); }
.facts__list { grid-column: 1 / 5; display: grid; gap: 0; }
.facts__list div { display: flex; justify-content: space-between; gap: 20px; padding-block: 14px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.facts__list dt { color: var(--gray); }
.facts__list dd { color: var(--ink-soft); text-align: right; }
.facts__text { grid-column: 6 / 12; }
.facts__text p { font-size: var(--fs-lead); line-height: 1.7; color: var(--ink-soft); max-width: 52ch; }
.facts__text p + p { margin-top: 1.3em; }
.facts__text .drop::first-letter { font-family: var(--serif); font-size: 3.4em; line-height: .78; float: left; padding: 6px 14px 0 0; }
@media (max-width: 900px) { .facts__list, .facts__text { grid-column: 1 / -1; } .facts__text { margin-top: 34px; } }

.pgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 2.4vw, 40px); }
.pgrid figure { overflow: hidden; background: var(--beige); }
.pgrid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.pgrid figure:hover img { transform: scale(1.04); }
.pgrid .g-a { grid-column: 1 / 8; aspect-ratio: 3 / 2; }
.pgrid .g-b { grid-column: 9 / 13; aspect-ratio: 3 / 4; align-self: end; }
.pgrid .g-c { grid-column: 3 / 13; aspect-ratio: 16 / 9; margin-top: clamp(18px, 3vw, 60px); }
.pgrid figcaption { margin-top: 12px; }
@media (max-width: 900px) {
  .pgrid .g-a, .pgrid .g-b, .pgrid .g-c { grid-column: 1 / -1; margin-top: 0; aspect-ratio: 4 / 3; }
}

.quote { text-align: left; }
.quote blockquote {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1.18;
  letter-spacing: -.015em; max-width: 22ch;
}
.quote cite { display: block; margin-top: 28px; font-style: normal; }

.nextproj { display: block; border-top: 1px solid var(--line); padding-block: clamp(56px, 8vw, 110px); }
.nextproj h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: var(--fs-lg); line-height: 1; text-transform: uppercase;
  letter-spacing: -.015em; margin-top: 12px;
  transition: transform .6s var(--ease);
}
.nextproj:hover h2 { transform: translateX(10px); }

/* ---------- reveal animation ---------- */
.rv { opacity: 0; transform: translateY(26px); }
.is-ready .rv { transition: opacity .95s var(--ease), transform .95s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ---------- page transition ---------- */
.page { opacity: 0; transition: opacity .5s ease; }
.page.is-visible { opacity: 1; }
.page.is-leaving { opacity: 0; transition-duration: .28s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .rv { opacity: 1; transform: none; }
  .page { opacity: 1; }
}
