/* ==========================================================================
   Studio template — architecture & design portfolio
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,100..900;1,6..96,100..900&display=swap");

:root {
  --bg: #ffffff;
  --ink: #1c1b19;
  --ink-soft: #59564f;
  --line: #dcd7cf;
  --paper: #efece6;
  --accent: #7a6b52;

  --serif: "Bodoni Moda", "Didot", "Iowan Old Style", Georgia, serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1400px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: 0.01em;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.caption {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.85rem var(--gutter);
  color: var(--ink);
  background: var(--bg);
  box-shadow: none;
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.site-header a,
.site-header .menu-toggle {
  color: var(--ink);
  transition: color 0.4s ease;
}

.site-header.is-solid {
  background: var(--bg);
  color: var(--ink);
  box-shadow: none;
}

.site-header.is-solid a,
.site-header.is-solid .menu-toggle {
  color: var(--ink);
}

body.no-hero .site-header {
  background: var(--bg);
  color: var(--ink);
  box-shadow: none;
}

body.no-hero .site-header a,
body.no-hero .site-header .menu-toggle {
  color: var(--ink);
}

body.is-menu-open .site-header {
  background: var(--bg);
  color: var(--ink);
  box-shadow: none;
}

body.is-menu-open .site-header a,
body.is-menu-open .site-header .menu-toggle {
  color: var(--ink);
}

.logo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo span {
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  display: block;
  margin-top: 0.3rem;
  opacity: 0.75;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.lang-switch {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}

.lang-switch::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.lang-switch:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

nav.primary-nav a {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}

nav.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

nav.primary-nav a:hover::after,
nav.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Buttons / links ---------- */

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.25rem;
  transition: opacity 0.3s ease;
}

.text-link:hover {
  opacity: 0.55;
}

.text-link .arrow {
  transition: transform 0.3s ease;
}

.text-link:hover .arrow {
  transform: translateX(4px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  margin-top: 7.2rem;
  height: calc(100vh - 7.2rem);
  min-height: 420px;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.32) 100%);
}

.hero-title {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  pointer-events: none;
  will-change: transform;
}

.hero-title h1 {
  font-weight: 200;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.02;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero-title .hero-name {
  font-size: clamp(2rem, 7vw, 5.4rem);
}

.hero-title .hero-studio {
  font-size: clamp(0.84rem, 3vw, 2.28rem);
  font-weight: 100;
}

.hero-title .caption {
  color: #fff;
  opacity: 0.85;
  margin-top: 1.2rem;
}

.hero-caption {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 2.4rem;
  z-index: 2;
  color: #fff;
  display: flex;
  justify-content: flex-end;
}

.scroll-cue {
  writing-mode: vertical-rl;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ---------- Sections ---------- */

section {
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.intro {
  padding-top: calc(clamp(4rem, 10vw, 8rem) * 2);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}

.section-head.no-line {
  border-bottom: none;
  padding-bottom: 0;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 300;
}

.intro-block {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.intro-block p {
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink);
}

/* ---------- Project grid ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: #fff;
}

.project-card {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.project-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.project-card .thumb {
  position: relative;
  overflow: hidden;
  height: 100vh;
  background: var(--paper);
}

.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.32);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.project-card .overlay {
  position: absolute;
  inset: 15%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.project-card .overlay h3 {
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 200;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.25;
}

.project-card .overlay .divider {
  width: 1px;
  height: 36px;
  background: currentColor;
  opacity: 0.7;
  margin: 1.2rem 0;
}

.project-card .overlay .view-project {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

@media (hover: hover) {
  .project-card:hover .thumb img {
    transform: scale(1.045);
  }

  .project-card:hover .thumb::after,
  .project-card:hover .overlay {
    opacity: 1;
  }
}

@media (hover: none) {
  .project-card .thumb::after,
  .project-card .overlay {
    opacity: 1;
  }
}

/* ---------- Footer CTA ---------- */

.cta {
  border-top: 1px solid var(--line);
  padding: clamp(4rem, 10vw, 7rem) 0;
  text-align: center;
}

.cta h2 {
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 2rem;
}

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  font-size: 0.82rem;
}

.footer-grid .col h4 {
  font-family: var(--serif);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
  font-weight: 400;
}

.footer-grid .col a,
.footer-grid .col p {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.footer-grid .col a:hover {
  color: var(--ink-soft);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ---------- About page ---------- */

.founder-split,
.studio-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding: 0;
}

.founder-split {
  min-height: calc(100vh - 100px);
}

.founder-split .panel-dark,
.studio-split .panel-dark {
  background: var(--ink);
  color: #f2efe9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6rem);
}

.founder-split .panel-dark,
.studio-split .panel-dark {
  align-items: center;
  text-align: center;
}

.studio-split .panel-dark {
  padding-top: calc(clamp(3rem, 6vw, 6rem) + 3rem);
  padding-bottom: calc(clamp(3rem, 6vw, 6rem) - 3rem);
}

.founder-heading {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.founder-divider {
  width: 1px;
  height: 64px;
  background: rgba(242, 239, 233, 0.35);
  margin: 2rem auto;
}

.founder-bio p {
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(242, 239, 233, 0.85);
  max-width: 420px;
  margin: 0 auto;
}

.founder-bio p + p {
  margin-top: 1.2rem;
}

.panel-dark .stat-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid rgba(242, 239, 233, 0.25);
  max-width: 420px;
  width: 100%;
}

.panel-dark .stat-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(242, 239, 233, 0.25);
  font-size: 0.85rem;
  color: rgba(242, 239, 233, 0.85);
}

.panel-dark .stat-list .label {
  color: rgba(242, 239, 233, 0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.panel-image,
.panel-photo {
  background: #fff;
  overflow: hidden;
  position: relative;
}

.panel-image img,
.panel-photo img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - clamp(4rem, 10vw, 8rem));
  max-width: 480px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.studio-split .panel-photo img {
  top: calc(50% + 3rem);
}


/* ---------- Contact page ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.contact-big a {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 300;
  word-break: break-word;
}

.contact-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

.contact-list li {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-list .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

/* ---------- Project detail ---------- */

.project-title-block {
  padding: 10rem 0 5rem;
  text-align: center;
}

.project-title-block .eyebrow {
  display: block;
}

.project-title-block h1 {
  margin-top: 1.4rem;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  font-weight: 200;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.project-title-block .location {
  display: block;
  margin-top: 1.4rem;
}

.project-title-block .divider {
  width: 1px;
  height: 56px;
  background: var(--line);
  margin: 2.2rem auto 0;
}

.project-title-block .desc {
  max-width: 56ch;
  margin: 2.2rem auto 0;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.project-stack {
  padding-bottom: clamp(3rem, 8vw, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(3rem, 7vw, 5.5rem);
}

.project-stack figure {
  margin: 0;
  width: 100%;
  text-align: center;
}

.project-stack img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.project-stack .ph-landscape {
  max-width: 1100px;
}

.project-stack .ph-portrait {
  max-width: 460px;
}

.project-stack .size-xl {
  max-width: 640px;
}

.project-stack .size-large {
  max-width: 460px;
}

.project-stack .size-small {
  max-width: 310px;
}

.project-stack .breather {
  margin: clamp(2rem, 6vw, 5rem) 0;
}

.project-stack .duo {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.project-stack .duo.align-bottom {
  align-items: flex-end;
}

.project-stack .duo.align-center {
  align-items: center;
}

.project-stack .duo figure {
  width: auto;
}

.project-stack .duo .center-slot,
.project-stack .edge-duo .center-slot {
  flex: 1;
  display: flex;
  justify-content: center;
}

.project-stack .row {
  width: 100%;
  display: flex;
}

.project-stack .row.align-right {
  justify-content: flex-end;
}

.project-stack .row.align-left {
  justify-content: flex-start;
}

.project-stack .row figure {
  width: 100%;
}

.project-stack .trio {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-stack .trio figure {
  width: 100%;
}

.project-stack .trio .place-end {
  grid-column: 3;
}

.project-stack .trio .place-center {
  grid-column: 2;
}

.project-stack .full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.project-stack .duo-grid {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.project-stack .duo-grid.align-bottom {
  align-items: end;
}

.project-stack .duo-grid.align-center {
  align-items: center;
}

.project-stack .duo-grid figure {
  width: 100%;
}

.project-stack .duo-grid .gc-left1 {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
}

.project-stack .duo-grid .gc-left2 {
  grid-column: 1 / span 2;
  grid-row: 1;
  justify-self: center;
}

.project-stack .duo-grid .gc-right1 {
  grid-column: 3;
  grid-row: 1;
  justify-self: center;
}

.project-stack .duo-grid .gc-right2 {
  grid-column: 2 / span 2;
  grid-row: 1;
  justify-self: center;
}

.project-stack .duo-grid .self-center {
  align-self: center;
}

.project-stack .edge-duo {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: flex;
  align-items: flex-start;
  gap: clamp(2rem, 4vw, 4rem);
}

.project-stack .edge-duo.edge-right {
  justify-content: flex-end;
}

.project-stack .edge-duo.align-bottom {
  align-items: flex-end;
}

.project-stack .edge-duo.align-center {
  align-items: center;
}

.project-stack .edge-duo figure {
  width: auto;
}

.return-link {
  text-align: center;
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.project-nav {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-nav .eyebrow {
  margin-bottom: 0.4rem;
}

.project-nav a {
  transition: opacity 0.3s ease;
}

.project-nav a:hover {
  opacity: 0.55;
}

.project-nav .next {
  text-align: right;
}

/* ---------- Fade-in utility ---------- */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  nav.primary-nav {
    position: fixed;
    inset: 0;
    background: var(--bg);
    color: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--gutter);
    gap: 1.4rem;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
    z-index: 90;
  }

  nav.primary-nav a {
    color: var(--ink);
    font-size: 1.6rem;
    font-family: var(--serif);
    font-style: italic;
    text-transform: none;
    letter-spacing: 0;
  }

  body.is-menu-open nav.primary-nav {
    transform: translateY(0);
  }

  .menu-toggle {
    display: block;
  }

  .header-controls {
    gap: 1.2rem;
  }

  .founder-split,
  .studio-split,
  .contact-layout,
  .project-stack .trio,
  .project-stack .duo-grid {
    grid-template-columns: 1fr;
  }

  .founder-split,
  .studio-split {
    min-height: 0;
  }

  .founder-split .panel-dark,
  .studio-split .panel-dark {
    padding-top: 7rem;
  }

  .studio-split .panel-dark {
    padding-top: 7rem;
  }

  .panel-image,
  .panel-photo {
    min-height: 70vh;
  }

  .studio-split .panel-photo img {
    top: 50%;
  }

  .project-stack .trio .place-end,
  .project-stack .duo-grid .gc-left1,
  .project-stack .duo-grid .gc-left2,
  .project-stack .duo-grid .gc-right1,
  .project-stack .duo-grid .gc-right2 {
    grid-column: 1;
    grid-row: auto;
  }

  .project-stack .duo-grid {
    align-items: center !important;
    gap: clamp(3rem, 7vw, 5.5rem);
  }

  .project-stack .edge-duo {
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(3rem, 7vw, 5.5rem);
  }

  .project-stack .edge-duo .size-small,
  .project-stack .edge-duo .size-large,
  .project-stack .edge-duo .size-xl {
    max-width: 460px;
  }

  .project-stack .duo {
    flex-direction: column;
    align-items: center !important;
    gap: clamp(3rem, 7vw, 5.5rem);
  }

  .project-stack .duo .size-small,
  .project-stack .duo .size-large,
  .project-stack .duo .size-xl,
  .project-stack .duo-grid .size-small,
  .project-stack .duo-grid .size-large {
    max-width: 460px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
