/* Tiana Cyprus — editorial home */

:root {
  --milk: #f5f2ec;
  --milk-2: #ece8df;
  --graphite: #23262a;
  --graphite-2: #5b5f63;
  --rule: #d6d1c6;
  --sea: #2f5d7c;
  --teal: #24484f;
  --teal-ink: #e9efec;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 4.5vw, 72px);
  --gap: clamp(16px, 2vw, 32px);
  --section: clamp(96px, 14vw, 220px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--milk);
  color: var(--graphite);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

.wrap {
  padding-inline: var(--gutter);
  max-width: 1680px;
  margin-inline: auto;
}

/* ---------- type ---------- */

.label {
  display: block;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--graphite-2);
}

.h2 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -.01em;
}

.statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 2.9vw, 44px);
  line-height: 1.22;
  letter-spacing: -.005em;
}

.body-copy {
  max-width: 34em;
  color: var(--graphite-2);
  font-size: clamp(15px, 1.05vw, 17px);
}
.body-copy p + p { margin-top: 1em; }

.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: .6em;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: gap .3s ease, opacity .3s ease;
}
.link-arrow span { transition: transform .3s ease; }
.link-arrow:hover span { transform: translateX(6px); }
.link-arrow:hover { opacity: .75; }

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 28px var(--gutter);
  max-width: 1680px;
  margin-inline: auto;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nav__brand { font-weight: 500; letter-spacing: .26em; margin-right: auto; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { white-space: nowrap; position: relative; color: var(--graphite-2); transition: color .25s; }
.nav__links a:hover { color: var(--graphite); }
.nav__lang { color: var(--graphite-2); }
.nav__lang b { font-weight: 500; color: var(--graphite); }

/* ---------- 01 hero ---------- */

.hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  padding-top: clamp(48px, 9vw, 140px);
  padding-bottom: var(--section);
}
.hero__text {
  grid-column: 1 / span 5;
  align-self: end;
  padding-bottom: clamp(0px, 4vw, 64px);
}
.hero__title {
  margin: 0 0 .35em;
  font-weight: 300;
  font-size: clamp(44px, 6.2vw, 104px);
  line-height: 1;
  letter-spacing: -.025em;
}
.hero__lead {
  max-width: 17em;
  margin-bottom: 48px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.35;
  color: var(--graphite-2);
}
.hero__image {
  grid-column: 7 / -1;
  aspect-ratio: 4 / 5;
  max-height: 78vh;
  overflow: hidden;
}
.hero__image img { object-position: 38% 70%; }

/* ---------- 02 position ---------- */

.position {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  padding-bottom: var(--section);
}
.position__portrait {
  grid-column: 1 / span 5;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.position__portrait img {
  filter: grayscale(.9) contrast(1.02) brightness(1.02);
  transition: filter 1.2s ease;
}
.position__portrait:hover img { filter: grayscale(.25) contrast(1) brightness(1); }
.position__text {
  grid-column: 7 / span 5;
  align-self: center;
  padding-top: clamp(0px, 8vw, 140px);
}
.position__text .label { margin-bottom: 32px; }
.position__text .statement { margin-bottom: 40px; }

/* ---------- 03 projects preview ---------- */

.projects { padding-bottom: var(--section); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  margin-bottom: clamp(40px, 5vw, 80px);
  border-top: 1px solid var(--rule);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: clamp(40px, 6vw, 96px);
}
.pimg { overflow: hidden; display: block; }
.pimg img { transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.pimg:hover img { transform: scale(1.025); }

.pimg--a { grid-column: 1 / span 7; aspect-ratio: 1 / 1; }
.pimg--b { grid-column: 9 / -1;    aspect-ratio: 4 / 5; align-self: end; }
.pimg--c { grid-column: 3 / span 6; aspect-ratio: 16 / 10; }
.pimg--d { grid-column: 10 / -1;   aspect-ratio: 3 / 4; margin-top: clamp(0px, 10vw, 180px); }
.pimg--d img { object-position: 60% 50%; }

/* ---------- 04 cyprus ---------- */

.cyprus {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 48px;
  padding-bottom: var(--section);
}
.cyprus__text { grid-column: 1 / span 4; grid-row: 1; }
.cyprus__text .h2 { margin-bottom: 40px; }
.cyprus__text .accent-line {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.35;
  color: var(--sea);
}
.cyprus__large {
  grid-column: 6 / -1;
  grid-row: 1 / span 2;
  aspect-ratio: 6 / 5;
  overflow: hidden;
}
.cyprus__large img { object-position: 30% 50%; }
.cyprus__small {
  grid-column: 2 / span 3;
  grid-row: 2;
  align-self: end;
}
.cyprus__small img {
  aspect-ratio: 1 / 1;
  height: auto;
  filter: grayscale(.85) contrast(1.05);
  transition: filter 1.2s ease;
}
.cyprus__small:hover img { filter: none; }
.cyprus__small figcaption {
  margin-top: 16px;
  font-size: 13px;
  color: var(--graphite-2);
}

/* ---------- 05 approach ---------- */

.approach {
  background: var(--teal);
  color: var(--teal-ink);
  padding-block: clamp(80px, 11vw, 180px);
}
.approach__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
}
.approach__title { grid-column: 1 / span 5; align-self: start; max-width: 12em; }
.steps {
  grid-column: 7 / -1;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--gap);
  padding-block: 32px;
  border-top: 1px solid rgba(233, 239, 236, .28);
}
.step:last-child { border-bottom: 1px solid rgba(233, 239, 236, .28); }
.step h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(19px, 1.5vw, 24px);
  line-height: 1.3;
}
.step p { color: rgba(233, 239, 236, .78); }
.approach__cta { grid-column: 7 / -1; justify-self: start; margin-top: 56px; }

/* ---------- 06 footer ---------- */

.footer {
  background: var(--graphite);
  color: var(--milk);
  padding-block: clamp(72px, 9vw, 140px) 40px;
}
.footer__inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 48px;
}
.footer__phrase {
  grid-column: 1 / span 6;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 2.8vw, 42px);
  line-height: 1.2;
}
.footer__contacts {
  grid-column: 8 / span 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}
.footer__social {
  grid-column: 11 / -1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer a { opacity: .85; transition: opacity .25s; }
.footer a:hover { opacity: 1; }
.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  margin-top: clamp(24px, 6vw, 96px);
  border-top: 1px solid rgba(245, 242, 236, .18);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(245, 242, 236, .55);
}

/* ---------- projects placeholder page ---------- */

.placeholder {
  min-height: 70vh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  align-content: center;
  padding-block: 80px var(--section);
}
.placeholder > div { grid-column: 1 / span 6; }
.placeholder .h2 { margin-bottom: 32px; }
.placeholder .body-copy { margin-bottom: 48px; }
.placeholder figure { grid-column: 8 / -1; aspect-ratio: 4 / 5; overflow: hidden; }

/* ---------- reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- tablet ---------- */

@media (max-width: 1024px) {
  .nav__links { gap: 22px; }
  .hero__text { grid-column: 1 / span 6; }
  .hero__image { grid-column: 7 / -1; }
  .position__portrait { grid-column: 1 / span 6; }
  .position__text { grid-column: 7 / -1; padding-top: 0; }
  .cyprus__text { grid-column: 1 / span 5; }
  .cyprus__small { grid-column: 1 / span 4; }
  .approach__title { grid-column: 1 / -1; margin-bottom: 56px; }
  .steps, .approach__cta { grid-column: 1 / -1; }
  .footer__phrase { grid-column: 1 / -1; }
  .footer__contacts { grid-column: 1 / span 6; }
  .footer__social { grid-column: 7 / -1; }
}

/* ---------- mobile ---------- */

@media (max-width: 760px) {
  .nav { flex-wrap: wrap; gap: 14px 22px; padding-block: 20px; }
  .nav__links { order: 3; width: 100%; gap: 20px; overflow-x: auto; font-size: 11px; }

  .hero, .position, .projects__grid, .cyprus, .approach__inner, .footer__inner, .placeholder {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero > *, .position > *, .projects__grid > *, .cyprus > *, .approach__inner > *,
  .footer__inner > *, .placeholder > * {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
  }

  .hero { padding-top: 40px; }
  .hero__text { padding-bottom: 48px; }
  .hero__image { aspect-ratio: 4 / 5; max-height: none; margin-right: calc(var(--gutter) * -1); }

  .position__portrait { aspect-ratio: 4 / 5; margin-bottom: 48px; }
  .position__portrait img { object-position: 60% 20%; }

  .pimg--a { aspect-ratio: 1 / 1; }
  .pimg--b { width: 70%; justify-self: end; }
  .pimg--c { aspect-ratio: 4 / 3; }
  .pimg--d { width: 70%; margin-top: 0; }

  .cyprus__large { aspect-ratio: 1 / 1; margin-inline: calc(var(--gutter) * -1); }
  .cyprus__small { width: 62%; }

  .step { grid-template-columns: 1fr; gap: 10px; }

  .placeholder figure { margin-top: 56px; }
}
