/* ALTARA landing page
   Built to the approved mockup (assets/altara/ref-0630-07A4E2.jpg).
   Photography in the cards is PLACEHOLDER, lifted from the mockup and cleaned.
   Swap public/img/card-*.jpg when the real project photography arrives. */

:root {
  --ink:        #2B3029;
  --ink-soft:   #4F4A40;
  --muted:      #7C7469;
  --accent:     #D87B35;
  --sand:       #ECE2D8;
  --paper:      #F1E8E1;
  --hairline:   rgba(43, 48, 41, .16);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;
  --serif-he: "Frank Ruhl Libre", "Noto Serif Hebrew", "David Libre", serif;

  --shell: 1040px;
  --radius: 14px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  position: relative;
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* Page surface: warm sand paper, with the pool caustics washing over the top of the page.
   Scrolls with the content, so the caustics stay tied to the wordmark. */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 900px;
  background: url("/img/bg-water.jpg") top left / 1580px auto repeat-x;
  opacity: .8;
  /* fade the band out rather than cutting it, so the tile seam never reads as a line */
  -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.55) 42%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.55) 42%, transparent 88%);
  z-index: 0;
}

/* fine paper grain over everything, generated and seamless */
body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/img/grain.png") repeat;
  opacity: .55;
  pointer-events: none;
  z-index: 2;
}

.frame { position: relative; z-index: 1; }

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

/* ---------- frame ---------- */

.frame {
  min-height: 100vh;
  padding: clamp(14px, 2.6vw, 30px);
}

.shell {
  max-width: calc(var(--shell) + 80px);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) clamp(14px, 3vw, 40px) clamp(20px, 3vw, 30px);
  border: 1px solid var(--hairline);
  border-radius: 4px;
}

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

.topbar { display: flex; justify-content: flex-end; }

.nav {
  display: flex;
  gap: clamp(22px, 4.6vw, 62px);
  font-size: clamp(.82rem, 1.35vw, .98rem);
  letter-spacing: .01em;
  color: var(--ink-soft);
}

.nav a { padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .25s, color .25s; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

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

.hero {
  position: relative;
  margin-top: clamp(20px, 4vw, 40px);
  min-height: clamp(160px, 22vw, 268px);
}

.hero__still {
  position: absolute;
  top: -14%;
  right: -3%;
  width: 46%;
  max-width: 520px;
  pointer-events: none;
  user-select: none;
}

.hero__type { position: relative; z-index: 1; }

.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .155em;
  line-height: .96;
  font-size: clamp(3rem, 10.4vw, 7.6rem);
  color: var(--ink);
  text-indent: .155em;   /* balance the trailing letter-space */
}

.hero__rule {
  display: block;
  width: clamp(150px, 21vw, 235px);
  height: 1px;
  margin: clamp(16px, 2.4vw, 30px) 0 0 clamp(14px, 3.6vw, 42px);
  background: var(--hairline);
}

.tagline {
  margin: clamp(10px, 1.4vw, 18px) 0 0 clamp(14px, 3.6vw, 46px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 3.1vw, 2.3rem);
  letter-spacing: .012em;
  color: #3B3E33;
}

/* ---------- project cards ---------- */

.brands {
  margin-top: clamp(22px, 3.6vw, 42px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.8vw, 21px);
}

.card {
  position: relative;
  display: block;
  aspect-ratio: 435 / 345;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 14px 34px -22px rgba(43, 48, 41, .45);
}

.card__media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.001);
  transition: transform .9s cubic-bezier(.2, .7, .25, 1);
}

.card:hover .card__media { transform: scale(1.045); }

/* Light wash so the type stays legible over any photo.
   Two layers: a tight elliptical wash anchored behind the type block, and a softer
   diagonal falloff. Keeps the right-hand side of the photograph vivid. */
.card__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(138% 128% at -14% 17%,
      rgba(249, 246, 241, .97) 0%,
      rgba(249, 246, 241, .95) 30%,
      rgba(249, 246, 241, .72) 46%,
      rgba(249, 246, 241, .26) 64%,
      rgba(249, 246, 241, 0) 81%),
    linear-gradient(118deg,
      rgba(249, 246, 241, .34) 0%,
      rgba(249, 246, 241, .12) 32%,
      rgba(249, 246, 241, 0) 58%);
}

.card--quiet { cursor: default; }

/* orange pennant, top left */
.ribbon {
  position: absolute;
  top: 0;
  left: clamp(10px, 1.8vw, 20px);
  width: clamp(24px, 3vw, 34px);
  height: clamp(40px, 5.2vw, 58px);
  display: flex;
  justify-content: center;
  padding-top: clamp(7px, 1vw, 11px);
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%);
}

.card__body {
  position: absolute;
  top: clamp(38px, 6.4vw, 70px);
  left: clamp(20px, 3.6vw, 42px);
  right: clamp(16px, 3vw, 34px);
}

.card__name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .075em;
  line-height: 1.16;
  font-size: clamp(1.25rem, 3.1vw, 2.15rem);
  color: var(--ink);
}

.card__name--stack { letter-spacing: .05em; }

.card__sub {
  margin: clamp(6px, .9vw, 11px) 0 0;
  font-size: clamp(.58rem, 1.02vw, .72rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .215em;
  color: var(--ink);
}

/* thin orange rule ending in a dot */
.tick {
  display: block;
  position: relative;
  width: clamp(72px, 12vw, 132px);
  height: 1px;
  margin-top: clamp(9px, 1.5vw, 17px);
  background: var(--accent);
}

.tick::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--accent);
}

.card__go {
  position: absolute;
  right: clamp(14px, 2.4vw, 26px);
  bottom: clamp(12px, 2vw, 22px);
  opacity: .95;
  transition: transform .35s ease;
}

.card:hover .card__go { transform: translateX(6px); }

/* ---------- about ---------- */

.about {
  margin-top: clamp(34px, 5.4vw, 66px);
}

/* echoes the hero pairing at section scale: wordmark, then the line under it */
.about__mark {
  margin: clamp(14px, 2.4vw, 30px) 0 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .155em;
  line-height: 1;
  font-size: clamp(1.9rem, 4.8vw, 3.4rem);
  color: var(--ink);
  text-indent: .155em;   /* balance the trailing letter-space */
}

.about__lede {
  margin: clamp(10px, 1.6vw, 18px) 0 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.8vw, 2.05rem);
  letter-spacing: .045em;
  color: var(--ink);
}

.about__lede--end {
  margin-top: clamp(14px, 2vw, 22px);
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
}

.about__body {
  max-width: 60ch;
  margin: clamp(22px, 3.4vw, 40px) auto 0;
  font-family: var(--serif-he);
  font-weight: 300;
  font-size: clamp(.95rem, 1.35vw, 1.12rem);
  line-height: 2.05;
  color: var(--ink-soft);
  text-align: right;
}

.about__body p {
  margin: 0 0 clamp(18px, 2.4vw, 30px);
}

.about__body p:last-child { margin-bottom: 0; }

/* the two cadenced blocks: a hairline on the reading edge, which RTL puts on the right */
.about__list {
  border-inline-start: 1px solid var(--accent);
  padding-inline-start: clamp(14px, 2vw, 24px);
  color: var(--ink);
}

.about__close {
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  color: var(--ink);
}

.about__brand {
  display: inline-block;
  font-family: var(--serif);
  letter-spacing: .14em;
}

.about__tick {
  margin: clamp(26px, 3.6vw, 44px) auto 0;
  width: clamp(76px, 9vw, 108px);
}

/* the dot on a centred rule reads better centred under it than hanging off the end */
.about__tick::after {
  right: auto;
  left: 50%;
  margin-left: -3.5px;
  top: 9px;
}

/* ---------- get in touch ---------- */

.foot { margin-top: clamp(26px, 4.2vw, 48px); }

.foot__label {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  margin: 0 0 clamp(16px, 2.2vw, 26px);
  font-size: clamp(.6rem, 1vw, .72rem);
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--muted);
}

.foot__label::before,
.foot__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.touch {
  display: grid;
  grid-template-columns: 1fr 1fr 1.55fr 1fr 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.touch__item {
  display: flex;
  align-items: flex-start;
  gap: clamp(7px, 1.1vw, 13px);
  padding: 0 clamp(6px, 1.4vw, 18px);
  border-left: 1px solid var(--hairline);
}

.touch__item:first-child { border-left: 0; padding-left: 0; }

.ico {
  flex: none;
  width: clamp(15px, 1.9vw, 21px);
  height: clamp(15px, 1.9vw, 21px);
  margin-top: 1px;
  fill: var(--ink);
  color: var(--ink);
}

.touch__text { display: block; min-width: 0; }

.touch__text a {
  display: block;
  font-size: clamp(.58rem, .95vw, .8rem);
  color: var(--ink);
  white-space: nowrap;
  transition: color .25s;
}

.touch__text a:hover { color: var(--accent); }

.touch__text em {
  display: block;
  margin-top: clamp(3px, .5vw, 7px);
  font-style: normal;
  font-size: clamp(.58rem, .92vw, .76rem);
  color: var(--muted);
}

/* ---------- colophon ---------- */

.colophon {
  margin: clamp(20px, 3vw, 34px) 0 0;
  padding-top: clamp(14px, 2vw, 22px);
  border-top: 1px solid var(--hairline);
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(.72rem, 1.15vw, .92rem);
  text-transform: uppercase;
  letter-spacing: .21em;
  color: var(--muted);
}

.colophon__sep { color: var(--accent); padding: 0 .2em; }

.colophon__dot {
  display: block;
  width: 7px;
  height: 7px;
  margin: clamp(9px, 1.3vw, 14px) auto 0;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- narrow screens ---------- */

@media (max-width: 720px) {
  .brands { grid-template-columns: 1fr; }
  .card { aspect-ratio: 16 / 11; }

  .hero { min-height: 0; margin-top: 26px; }
  .hero__still {
    position: static;
    display: block;
    width: 62%;
    margin: 0 0 4px auto;
  }
  .wordmark { font-size: clamp(2.6rem, 15vw, 4.4rem); }

  .touch { grid-template-columns: 1fr 1fr; gap: 18px 0; }
  .touch__text a { white-space: normal; overflow-wrap: anywhere; }
  .touch__item { border-left: 0; padding: 0; }
  .touch__item:nth-child(even) { border-left: 1px solid var(--hairline); padding-left: 16px; }
  .touch__item:last-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
}

@media (max-width: 420px) {
  .touch { grid-template-columns: 1fr; }
  .touch__item:nth-child(even) { border-left: 0; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .card__media, .card__go { transition: none; }
  .card:hover .card__media { transform: none; }
}
