/* Home — Landing01 (Figma 74:582) */

:root { --bracket: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18.11 93.85' fill='none'%3E%3Cpath d='M17.11 1C8.21 1 1 28.23 1 46.92C1 64.43 8.21 92.85 17.11 92.85' stroke='%23411F20' stroke-width='2' stroke-miterlimit='10'/%3E%3C/svg%3E"); }

/* ---------- Hero ---------- */
/* The hero always fills exactly one screen, whatever the window shape.
   The Figma frame (1440 × 763) is scaled to fit inside the screen (--W × --H)
   and centred; the arcs stretch to the full screen height so they still run
   from the nav to the fold. */
.hero__canvas {
  position: relative;
  max-width: var(--page);
  margin: 0 auto;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  container-type: size;
  --W: min(100cqw, 188.73cqh);       /* 1440 / 763 = 1.8873 */
  --H: calc(var(--W) * 0.52986);     /* 763 / 1440 */
  --x0: calc(50cqw - var(--W) / 2);  /* left edge of the scaled frame */
  --y0: calc(50cqh - var(--H) / 2);  /* top edge of the scaled frame */
}
/* Arcs act like a background (object-fit: cover idea): they scale with the
   screen HEIGHT and keep their shape, never stretch. 1 Figma px = 100cqh/763.
   In Figma they start 619px left of the page centre and are 841.5 × 735. */
.hero__arcs {
  position: absolute;
  left: calc(50cqw - 81.127cqh);
  top: 0;
  width: 110.29cqh;
  height: 96.33cqh;
}
.hero__wordmark {
  position: absolute;
  left: calc(var(--x0) + var(--W) * 0.40139);
  top: calc(var(--y0) + var(--H) * 0.40105);
  width: calc(var(--W) * 0.19702);
}
.hero__wordmark img { width: 100%; height: auto; }
.hero__intro {
  position: absolute;
  left: calc(var(--x0) + var(--W) * 0.69583);
  top: calc(var(--y0) + var(--H) * 0.4364);
  width: 264px;
  color: #000;
  font-weight: 200;
  line-height: 23px;
}

/* ---------- Selected works ---------- */
.works {
  position: relative;
  max-width: var(--page);
  margin: 0 auto;
}
.works__head {
  position: absolute;
  inset: 27px 33px auto var(--edge);
  display: flex;
  justify-content: space-between;
  line-height: 20px;
}
.works__all, .works__top {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.works__all:hover, .works__top:hover { opacity: .55; }

.works__filters {
  position: absolute;
  top: 71px;
  left: var(--edge);
  width: 153px;
  font-weight: 200;
}
.works__filters li {
  height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ink);
}
.works__filters li:last-child { height: 47px; }
.works__filters a { transition: opacity .2s; }
.works__filters a:hover { opacity: .55; }

.works__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 21px;
  padding-top: 31px;
}

.work { width: min(var(--w), 100%); }
.work__link { position: relative; display: block; }

/* image with the hand-drawn parentheses either side */
.work__frame {
  position: relative;
  width: 100%;
}
.work__frame::before,
.work__frame::after {
  content: "";
  position: absolute;
  top: calc(50% - 46.925px);      /* vertically centred on the image (bracket is 93.85px tall) */
  width: 18.11px;
  height: 93.85px;
  background: var(--bracket) no-repeat center / contain;
  transition: transform .35s ease;
}
.work__frame::before { left: -72px; }   /* same 54px gap on both sides */
.work__frame::after  { right: -72px; transform: scaleX(-1); }
.work__link:hover .work__frame::before { transform: translateX(10px); }
.work__link:hover .work__frame::after  { transform: translateX(-10px) scaleX(-1); }

.work__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ar);
}
.work__img {
  position: absolute;
  max-width: none;
  object-fit: cover;
}

.work__caption {
  position: absolute;
  top: calc(50% - 22px);          /* 44px caption block centred on the image */
  left: calc(100% + 84px);
  width: 132px;
  line-height: 22px;
}
.work__name, .work__type { display: block; }
.work__type { font-size: 14px; font-weight: 200; }

/* Parentheses + caption stay hidden until the project is hovered or focused.
   Touch screens (no hover) keep the captions visible so titles aren't lost. */
@media (hover: hover) {
  .work__frame::before,
  .work__frame::after,
  .work__caption {
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
  }
  .work__caption { transform: translateX(-6px); }

  .work__link:hover .work__frame::before,
  .work__link:hover .work__frame::after,
  .work__link:hover .work__caption,
  .work__link:focus-visible .work__frame::before,
  .work__link:focus-visible .work__frame::after,
  .work__link:focus-visible .work__caption { opacity: 1; }

  .work__link:hover .work__caption,
  .work__link:focus-visible .work__caption { transform: none; }
  .work__link:focus-visible .work__frame::before { transform: translateX(10px); }
  .work__link:focus-visible .work__frame::after  { transform: translateX(-10px) scaleX(-1); }
}

/* per-project crops, taken from the Figma mask groups */
.work__media--kohkret { background: var(--kohkret); }
.work:nth-child(1) { --w: 377.82px; --ar: 377.82 / 328.47; }
.kohkret-logo { position: absolute; left: 22.42%; top: 33.86%; width: 55.25%; height: auto; }

.work:nth-child(2) { --w: 494px; --ar: 494 / 362.48; }
.work__media--apetit .work__img { left: -9.51%; top: -33.38%; width: 153.1%; height: 157.91%; }
.apetit-mark { position: absolute; left: 36.44%; top: 30.9%; width: 24.88%; height: auto; }
.apetit-type { position: absolute; left: 36.76%; top: 53.38%; width: 26.62%; height: auto; }

.work:nth-child(3) { --w: 371.93px; --ar: 371.93 / 289.44; }
.work__media--between .work__img { left: -14.9%; top: -16.16%; width: 132%; height: 117.62%; }

.work:nth-child(4) { --w: 596px; --ar: 596 / 197.54; }
.work__media--365 .work__img { left: -4.12%; top: -43.12%; width: 106.32%; height: 192.21%; }

.work:nth-child(5) { --w: 324px; --ar: 324 / 425; }
.work__media--maalaa .work__img { left: 0; top: -0.39%; width: 100.14%; height: 100.92%; object-position: bottom; }

.works__top {
  position: absolute;
  left: var(--edge);
  bottom: -3px;
  line-height: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .works__head,
  .works__filters,
  .works__top { position: static; }
  .works__head { padding: 32px var(--edge) 0; }
  .works__filters {
    width: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
    padding: 8px var(--edge) 0;
  }
  .works__filters li, .works__filters li:last-child { height: 40px; }
  .works__list { padding: 48px var(--edge) 0; gap: 40px; }
  .work__caption { position: static; display: block; margin-top: 10px; width: auto; }
  .works__top { display: inline-block; margin: 64px var(--edge) 0; }
}
@media (max-width: 900px) {
  .hero__intro {
    left: 50%;
    top: auto;
    bottom: 2%;
    width: min(320px, 100% - 32px);
    transform: translateX(-50%);
    text-align: center;
  }
}
@media (max-width: 700px) {
  .hero__canvas { aspect-ratio: auto; height: 118vw; }
  .hero__arcs { left: -6%; width: 112%; height: auto; }
  .hero__wordmark { left: 28%; top: 38%; width: 44%; }
  .hero__intro { bottom: 4%; }
  .work__frame::before, .work__frame::after { display: none; }
  .works__list { gap: 32px; }
}
