/* ============================================================
   TALA — sample architecture studio site
   Dark monochrome gallery theme
   SAMPLE / PLACEHOLDER PROJECT · EulClavie web design demo
   ============================================================ */

*, *::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; }

:root {
  --black:   #0A0A0A;
  --panel:   #121212;
  --ivory:   #EDE9E1;
  --dim:     #8C877E;
  --faint:   rgba(237,233,225,.5);
  --bronze:  #BE9160;
  --line:    rgba(237,233,225,.16);
  --line-soft: rgba(237,233,225,.08);

  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 104px);
  --bar-h: 30px;
  --nav-h: 74px;

  --fs-display: clamp(2.6rem, 7.6vw, 7.6rem);
  --fs-xl: clamp(2rem, 5vw, 4.6rem);
  --fs-lg: clamp(1.5rem, 3vw, 2.6rem);

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ivory);
  background: var(--black);
  padding-top: var(--bar-h);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ivory); color: var(--black); }

.label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--dim);
}
.label--ivory { color: var(--ivory); }
.label--bronze { color: var(--bronze); }
.wrap { padding-inline: var(--gutter); }

/* monochrome photography treatment */
.mono-img { overflow: hidden; background: var(--panel); position: relative; }
.mono-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(.92);
  transition: transform 1.3s var(--ease), filter 1.3s var(--ease);
}
a:hover > .mono-img img, .mono-img:hover img, figure:hover .mono-img img { transform: scale(1.035); filter: grayscale(1) contrast(1.02) brightness(1.02); }

/* ---------- 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(--ivory); color: #16130F;
  font-size: 9.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  padding-inline: 16px; text-align: center;
}
.sample-bar .dim { color: rgba(22,19,15,.55); }
@media (max-width: 720px) { .sample-bar { font-size: 8.5px; letter-spacing: .18em; } .sample-bar .dim { display: none; } }

/* ---------- nav ---------- */
.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);
  transition: background-color .5s var(--ease), height .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(10,10,10,.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
  height: 62px;
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand__mark { font-size: 21px; font-weight: 400; letter-spacing: .38em; text-transform: uppercase; }
.brand__sub { font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 560px) { .brand__sub { display: none; } }

.nav__links { display: flex; align-items: center; gap: clamp(20px, 3vw, 46px); }
.nav__links a { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; position: relative; padding-block: 5px; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--bronze); 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; position: relative; margin-right: -6px; }
.nav__toggle i { position: absolute; left: 5px; right: 5px; height: 1px; background: var(--ivory); transition: transform .4s var(--ease); }
.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; } }

.menu {
  position: fixed; inset: 0; z-index: 140; background: var(--black);
  padding: calc(var(--bar-h) + var(--nav-h) + 26px) var(--gutter) 44px;
  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-size: clamp(2rem, 10vw, 3.4rem); font-weight: 300;
  letter-spacing: .06em; text-transform: uppercase;
  padding-block: 10px; border-bottom: 1px solid var(--line-soft);
}

/* ---------- hero ---------- */
.hero {
  position: relative; height: calc(100svh - var(--bar-h)); min-height: 560px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
}
.hero .mono-img { position: absolute; inset: 0; }
.hero .mono-img img { transform: scale(1.07); animation: drift 24s var(--ease) forwards; }
@keyframes drift { to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 50%, rgba(10,10,10,.32), rgba(10,10,10,.86) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-inline: var(--gutter); }
.hero h1 {
  font-weight: 200; font-size: var(--fs-display); line-height: 1.04;
  letter-spacing: .02em; text-transform: uppercase; max-width: 16ch; margin-inline: auto;
}
.hero__meta { margin-top: clamp(22px, 3vw, 34px); display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; }
.hero__scroll { position: absolute; z-index: 2; bottom: clamp(24px, 4vh, 44px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; }
.hero__scroll .arrow { animation: nudge 2.6s var(--ease) infinite; display: inline-block; }
@keyframes nudge { 0%,100% { transform: translateY(0); opacity: .5 } 45% { transform: translateY(6px); opacity: 1 } }

/* ---------- sections ---------- */
.section { padding-block: clamp(80px, 11vw, 180px); }
.section--tight { padding-block: clamp(56px, 7vw, 110px); }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 22px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: clamp(36px, 5vw, 72px); }

/* ---------- work index (hover preview) ---------- */
.index { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(30px, 5vw, 90px); align-items: start; }
.index__list { border-top: 1px solid var(--line-soft); }
.index__row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 18px; align-items: baseline;
  padding-block: clamp(20px, 2.4vw, 34px);
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left .6s var(--ease), border-color .6s var(--ease);
}
.index__row:hover, .index__row.is-active { padding-left: 12px; border-bottom-color: var(--line); }
.index__row h3 { font-weight: 300; font-size: var(--fs-lg); line-height: 1.1; letter-spacing: .04em; text-transform: uppercase; transition: color .5s var(--ease); }
.index__row.is-active h3 { color: #fff; }
.index__num { font-size: 10px; letter-spacing: .18em; color: var(--bronze); }
.index__meta { display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: flex-end; }
.index__sub { grid-column: 2 / -1; }
.index__thumb { display: none; }

.index__preview { position: sticky; top: calc(var(--bar-h) + var(--nav-h) + 30px); }
.index__stage { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--panel); }
.index__stage .mono-img { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease); }
.index__stage .mono-img.is-shown { opacity: 1; }
.index__caption { margin-top: 16px; display: flex; justify-content: space-between; gap: 16px; }

@media (max-width: 940px) {
  .index { grid-template-columns: 1fr; }
  .index__preview { display: none; }
  .index__row { grid-template-columns: 46px minmax(0, 1fr); row-gap: 14px; padding-block: 26px; }
  .index__row:hover, .index__row.is-active { padding-left: 0; }
  .index__meta { grid-column: 2; justify-content: flex-start; }
  .index__thumb { display: block; grid-column: 1 / -1; margin-inline: calc(-1 * var(--gutter)); }
  .index__thumb .mono-img { aspect-ratio: 4 / 3; }
}

/* ---------- statement ---------- */
.statement { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(26px, 4vw, 60px); align-items: start; }
.statement h2 {
  grid-column: 1 / 8;
  font-weight: 200; font-size: var(--fs-xl); line-height: 1.1;
  letter-spacing: .02em; text-transform: uppercase; max-width: 16ch;
}
.statement__body { grid-column: 8 / 13; padding-top: 10px; }
.statement__body p { color: var(--faint); max-width: 42ch; }
.statement__body p + p { margin-top: 18px; }
.statement__link { margin-top: 30px; }
.statement__fig { grid-column: 1 / 7; margin-top: clamp(40px, 6vw, 90px); }
.statement__fig .mono-img { aspect-ratio: 3 / 4; }
.statement__aside { grid-column: 8 / 13; margin-top: clamp(40px, 6vw, 90px); align-self: end; }
.statement__aside dl div { display: flex; justify-content: space-between; gap: 20px; padding-block: 13px; border-bottom: 1px solid var(--line-soft); }
.statement__aside dt { color: var(--dim); font-size: 13px; letter-spacing: .04em; }
.statement__aside dd { font-size: 13px; }
@media (max-width: 900px) {
  .statement h2, .statement__body, .statement__fig, .statement__aside { grid-column: 1 / -1; }
  .statement__body { padding-top: 0; }
  .statement__fig { margin-top: 16px; }
  .statement__fig .mono-img { aspect-ratio: 4 / 3; }
  .statement__aside { margin-top: 26px; }
}

.arrowlink {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  position: relative; padding-bottom: 8px; color: var(--ivory);
}
.arrowlink::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--bronze); transform-origin: left; transition: transform .55s var(--ease); }
.arrowlink .arrow { transition: transform .55s var(--ease); }
.arrowlink:hover .arrow { transform: translateX(6px); }
.arrowlink:hover::after { transform: scaleX(.35); }

/* ---------- disciplines ---------- */
.disc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.disc__cell { background: var(--black); padding: clamp(26px, 3.6vw, 56px); transition: background-color .6s var(--ease); }
.disc__cell:hover { background: var(--panel); }
.disc__cell h3 { margin-top: 16px; font-weight: 300; font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: .06em; text-transform: uppercase; }
.disc__cell ul { margin-top: 22px; }
.disc__cell li { color: var(--faint); font-size: 14px; padding-block: 6px; border-top: 1px solid var(--line-soft); }
@media (max-width: 760px) { .disc { grid-template-columns: 1fr; } }

/* ---------- recognition ---------- */
.rec div { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 18px; padding-block: 18px; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.rec span:nth-child(2) { color: var(--ivory); font-size: 15px; }
@media (max-width: 620px) { .rec div { grid-template-columns: 70px 1fr; } .rec span:nth-child(3) { grid-column: 2; } }

/* ---------- cinematic band ---------- */
.band { position: relative; height: clamp(460px, 82vh, 860px); overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.band .mono-img { position: absolute; inset: -10% 0; }
.band .mono-img img { will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.5), rgba(10,10,10,.72)); }
.band__inner { position: relative; z-index: 2; padding-inline: var(--gutter); }
.band blockquote { font-weight: 200; font-size: clamp(1.5rem, 3.6vw, 3.2rem); line-height: 1.24; letter-spacing: .02em; max-width: 22ch; margin-inline: auto; }
.band cite { display: block; margin-top: 28px; font-style: normal; }

/* ---------- contact ---------- */
.contact { text-align: center; padding-block: clamp(96px, 14vw, 220px); }
.contact h2 { font-weight: 200; font-size: var(--fs-display); line-height: 1.02; letter-spacing: .02em; text-transform: uppercase; }
.contact p { margin-top: 26px; color: var(--faint); }
.contact__mail {
  display: inline-block; margin-top: 40px;
  font-size: clamp(1.1rem, 2.2vw, 1.7rem); font-weight: 300; letter-spacing: .06em;
  border-bottom: 1px solid var(--line); padding-bottom: 10px;
  transition: border-color .5s var(--ease), color .5s var(--ease);
}
.contact__mail:hover { border-color: var(--bronze); color: var(--bronze); }

/* ---------- sample notice ---------- */
.notice { border: 1px solid var(--line); padding: clamp(22px, 3vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(16px, 3vw, 44px); background: var(--panel); }
.notice p { font-size: 13.5px; color: var(--faint); max-width: 62ch; }
.notice p + p { margin-top: 10px; }
@media (max-width: 760px) { .notice { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line-soft); padding-block: clamp(50px, 6vw, 90px); }
.foot__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; }
.foot__brand .brand__mark { font-size: 24px; }
.foot__brand p { margin-top: 16px; color: var(--faint); font-size: 13px; 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(--ivory); font-weight: 300; }
.foot__col a:hover { color: var(--bronze); }
.foot__bottom { margin-top: clamp(44px, 5vw, 76px); padding-top: 22px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .foot__top { grid-template-columns: repeat(2, 1fr); }
  .foot__brand { grid-column: 1 / -1; }
}

/* ---------- project page ---------- */
.phero { position: relative; height: calc(100svh - var(--bar-h)); min-height: 540px; display: flex; align-items: flex-end; overflow: hidden; }
.phero .mono-img { position: absolute; inset: 0; }
.phero .mono-img img { transform: scale(1.06); animation: drift 24s var(--ease) forwards; }
.phero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.45), rgba(10,10,10,.2) 45%, rgba(10,10,10,.8)); }
.phero__inner { position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter) clamp(50px, 7vw, 92px); }
.phero h1 { font-weight: 200; font-size: var(--fs-display); line-height: 1.02; letter-spacing: .02em; text-transform: uppercase; margin-top: 14px; }

.facts { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 54px); }
.facts__list { grid-column: 1 / 5; }
.facts__list div { display: flex; justify-content: space-between; gap: 18px; padding-block: 13px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.facts__list dt { color: var(--dim); }
.facts__text { grid-column: 6 / 12; }
.facts__text p { color: var(--faint); font-size: 17px; line-height: 1.75; max-width: 52ch; }
.facts__text p + p { margin-top: 1.2em; }
@media (max-width: 900px) { .facts__list, .facts__text { grid-column: 1 / -1; } .facts__text { margin-top: 30px; } }

.pgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2.2vw, 36px); }
.pgrid .g-a { grid-column: 1 / 8; }
.pgrid .g-b { grid-column: 9 / 13; align-self: end; }
.pgrid .g-c { grid-column: 2 / 12; margin-top: clamp(16px, 3vw, 54px); }
.pgrid .g-a .mono-img { aspect-ratio: 3 / 2; }
.pgrid .g-b .mono-img { aspect-ratio: 3 / 4; }
.pgrid .g-c .mono-img { aspect-ratio: 16 / 9; }
.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; }
  .pgrid .mono-img { aspect-ratio: 4 / 3 !important; }
}

.nextproj { display: block; border-top: 1px solid var(--line-soft); padding-block: clamp(50px, 7vw, 100px); text-align: center; }
.nextproj h2 { font-weight: 200; font-size: var(--fs-xl); text-transform: uppercase; letter-spacing: .04em; margin-top: 12px; transition: opacity .5s var(--ease); }
.nextproj:hover h2 { opacity: .6; }

/* ---------- reveal + transition ---------- */
.rv { opacity: 0; transform: translateY(24px); }
.is-ready .rv { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.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; }
}
