/* FRONTTIER — fronttier.io
   Static, no build step. Edit freely. */

:root {
  --ink: #252f45;
  --muted: #8a8f99;
  --line: #e6e6e4;
  --bg: #ffffff;
  --soft: #f4f4f2;
  --yellow: #fed505;

  --radius: 20px;
  --radius-sm: 14px;
  --max: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --gap: clamp(20px, 2.6vw, 32px);
  --section: clamp(88px, 12vw, 168px);

  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 26px;
}
.brand img { height: 17px; width: auto; }
.header-link {
  font-size: 15px;
  text-decoration: none;
  padding: 8px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s var(--ease);
}
.header-link:hover { background-size: 100% 1px; }

/* ---------- Hero ---------- */
.hero__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #a9b0bd;
  min-height: min(82svh, 760px);
  display: flex;
  align-items: flex-end;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  animation: settle 2.4s var(--ease) both;
}
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(20deg, rgba(20, 26, 40, .42) 0%, rgba(20, 26, 40, .12) 45%, rgba(20, 26, 40, 0) 70%);
  pointer-events: none;
}
.hero__text {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4.5vw, 56px);
  color: #fff;
}
.hero__title {
  font-weight: 400;
  font-size: clamp(48px, 9vw, 128px);
  line-height: .92;
  letter-spacing: -0.045em;
  animation: rise 1.2s .15s var(--ease) both;
}
.hero__sub {
  margin-top: clamp(18px, 2.4vw, 28px);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  opacity: .9;
  animation: rise 1.2s .35s var(--ease) both;
}

/* ---------- Statement ---------- */
.statement { padding-block: var(--section); }
.statement p {
  max-width: 22ch;
  font-size: clamp(32px, 5.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 500;
}
@media (min-width: 900px) { .statement p { max-width: 24ch; } }

/* ---------- Section label ---------- */
.label {
  display: flex;
  gap: .5em;
  align-items: baseline;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* ---------- Work ---------- */
.work__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(44px, 6vw, 72px) var(--gap);
}
@media (min-width: 760px) { .work__grid { grid-template-columns: 1fr 1fr; } }
.card__media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--soft);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.card:hover .card__media img { transform: scale(1.035); }
.card__title {
  margin-top: 20px;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.card__text { margin-top: 6px; color: var(--muted); }

/* ---------- Approach ---------- */
.approach { padding-top: var(--section); }
.approach__title {
  font-size: clamp(48px, 9vw, 128px);
  line-height: .92;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin-bottom: clamp(44px, 7vw, 88px);
}
.approach__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(44px, 6vw, 64px) var(--gap);
}
@media (min-width: 760px) { .approach__grid { grid-template-columns: repeat(3, 1fr); } }
.pillar__media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.pillar__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.pillar:hover .pillar__media img { transform: scale(1.035); }
.pillar__media--light { background: #d9d9d9; }
.pillar__media--yellow { background: #fed505; }
.pillar__media img.contain { object-fit: contain; padding-inline: 6%; }
.pillar__media--dark { background: #000; }
.pillar__title {
  margin-top: 20px;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.pillar__text { margin-top: 6px; color: var(--muted); max-width: 32ch; }

/* ---------- Closing ---------- */
.closing { padding-block: var(--section); }
.closing__link {
  display: inline-block;
  font-size: clamp(36px, 6.4vw, 92px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  text-decoration: none;
  max-width: 16ch;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: .08em;
  transition: background-size .6s var(--ease), color .3s;
}
.closing__link span { display: inline-block; transition: transform .5s var(--ease); }
.closing__link:hover { background-size: 100% 2px; }
.closing__link:hover span { transform: translateX(.18em); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
  padding-block: 28px 36px;
  background: linear-gradient(var(--line), var(--line)) var(--pad) 0 / calc(100% - var(--pad) * 2) 1px no-repeat;
  font-size: 14px;
  color: var(--muted);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 70svh; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.notfound h1 { font-size: clamp(48px, 9vw, 128px); line-height: .92; letter-spacing: -0.045em; font-weight: 500; }
