/* stehno.design */

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/jost-latin-ext-wght-normal.woff2) format('woff2-variations'), url(fonts/jost-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/jost-latin-wght-normal.woff2) format('woff2-variations'), url(fonts/jost-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  /* Layout: wide editorial grid, big type, generous whitespace */
  --bg: #f2f2ef;
  --ink: #16171a;
  --muted: #6b6d72;
  --line: #d6d7d2;
  --accent: #2f3fd6;
  --tile: #e6e6e1;
  --invert-bg: #16171a;
  --invert-fg: #f2f2ef;
  --invert-muted: #8b8d93;
  --invert-line: #33353a;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1680px;
  --font: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121316; --ink: #ecece8; --muted: #9a9ca1; --line: #2c2e33; --accent: #8c97ff;
    --invert-bg: #ecece8; --invert-fg: #121316; --invert-muted: #5f6166; --invert-line: #cfd0cb;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .brand img { filter: invert(1); }
}
:root[data-theme="dark"] {
  --bg: #121316; --ink: #ecece8; --muted: #9a9ca1; --line: #2c2e33; --accent: #8c97ff;
  --invert-bg: #ecece8; --invert-fg: #121316; --invert-muted: #5f6166; --invert-line: #cfd0cb;
  color-scheme: dark;
}
:root[data-theme="dark"] .brand img { filter: invert(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: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }
[hidden] { display: none !important; }

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

.label {
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
}
.display {
  font-size: clamp(40px, 7.2vw, 128px);
  line-height: .98;
  letter-spacing: -.02em;
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 400;
  margin: 0;
}
.lead {
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.3;
  letter-spacing: -.012em;
  max-width: 34ch;
}
.link-u {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s ease;
}
.link-u:hover, .link-u.active { background-size: 100% 1px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Gentle rise on scroll; content stays visible where unsupported */
@keyframes rise { from { transform: translateY(40px); } to { transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.brand { font-weight: 400; letter-spacing: .1em; font-size: 20px; }
.brand img { height: 64px; width: auto; }
.site-nav { display: flex; gap: clamp(16px, 3vw, 40px); }

/* Footer */
.site-footer { background: var(--invert-bg); color: var(--invert-fg); padding: clamp(64px, 10vw, 160px) 0 40px; margin-top: clamp(80px, 12vw, 200px); }
.site-footer .label { color: var(--invert-muted); margin: 0 0 8px; }
.mail { display: inline-block; font-size: clamp(32px, 6.4vw, 112px); margin: 8px 0 clamp(56px, 8vw, 120px); word-break: break-word; transition: color .25s; }
.mail:hover { color: var(--accent); }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; border-top: 1px solid var(--invert-line); padding-top: 32px; }
.foot-grid p, .foot-grid ul { margin: 0; padding: 0; list-style: none; }
.copy { grid-column: -2 / -1; text-align: right; align-self: end; }

/* Project card */
.card { display: block; }
.card .media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.card.wide .media { aspect-ratio: 16 / 9; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.card .media.contain { background: var(--tile); }
.card .media.contain img { object-fit: contain; padding: 8%; }
.card:hover .media img { transform: scale(1.035); }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 14px; }
.card h3 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.card .meta .label { text-align: right; text-transform: none; font-size: 15px; letter-spacing: 0; }

/* Home */
.hero { padding-top: clamp(64px, 12vw, 200px); padding-bottom: clamp(64px, 10vw, 160px); }
.hero .label { margin: 0 0 24px; }
.hero h1 { max-width: 20ch; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.sec-head h2 { margin: 0; font-weight: 400; }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px) clamp(16px, 2vw, 32px); }
.home-grid .wide { grid-column: 1 / -1; }
.services { margin-top: clamp(96px, 14vw, 220px); }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; padding-top: 24px; }
.split > .label, .split h2 { margin: 0; font-weight: 400; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { padding: 6px 0; }
.more { justify-self: start; margin-top: 32px; }

/* Projects */
.page-head { padding-top: clamp(56px, 9vw, 140px); padding-bottom: 48px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.filters button {
  font: inherit; font-size: 15px; color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.filters button:hover { border-color: var(--ink); }
.filters button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px clamp(16px, 2vw, 32px); }

/* Project detail */
.project-head { padding-top: clamp(56px, 9vw, 140px); padding-bottom: 48px; display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: end; }
.facts { margin: 0; display: grid; gap: 14px; }
.facts dd { margin: 2px 0 0; }
.cover { margin: 0 auto; }
.cover img { width: 100%; }
.cover.contain img, .gallery .contain img { background: var(--tile); object-fit: contain; max-height: 82vh; padding: clamp(24px, 5vw, 80px); }
.project-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: clamp(48px, 7vw, 112px); padding-bottom: clamp(48px, 7vw, 112px); }
.project-body .lead { margin: 0; }
.text { max-width: 60ch; }
.text p:first-child { margin-top: 0; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 32px); }
.gallery figure { margin: 0; grid-column: 1 / -1; }
.gallery figure.half { grid-column: auto; }
.gallery img { width: 100%; }
.gallery figcaption { margin-top: 10px; text-transform: none; font-size: 14px; letter-spacing: 0; }
.next { margin-top: clamp(80px, 10vw, 160px); }
.next a { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-top: 24px; }
.next .h2 { transition: color .25s; }
.next a:hover .h2 { color: var(--accent); }

/* About */
.about-head { padding-top: clamp(56px, 9vw, 140px); padding-bottom: clamp(48px, 7vw, 96px); }
.split.bordered { border-top: 1px solid var(--line); padding-bottom: 72px; }
.about-first { margin-top: 0; max-width: 30ch; }
.about-text { max-width: 60ch; color: var(--muted); }
.about-services { list-style: none; margin: 0; padding: 0; font-size: 21px; }
.about-services li { padding: 4px 0; }

.notfound { padding-top: clamp(80px, 14vw, 220px); padding-bottom: clamp(80px, 14vw, 220px); }

@media (max-width: 1000px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .home-grid, .gallery { grid-template-columns: 1fr; }
  .split, .project-head, .project-body { grid-template-columns: 1fr; gap: 12px; }
  .project-head, .project-body { gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .copy { text-align: left; grid-column: 1 / -1; }
  .next a { flex-direction: column; gap: 4px; }
}
@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
  .brand img { height: 52px; }
}
@media (max-width: 560px) {
  .card .meta { flex-direction: column; gap: 2px; }
  .card .meta .label { text-align: left; }
}
