/* Wallride Oy — wallride.fi */

:root {
  --ink:          #101820;
  --prose:        #3D4341;
  --prose-soft:   #4A504E;
  --muted:        #5B615F;
  --label:        #5F6563;
  --page:         #FAFAF9;
  --rule:         #E3E3E0;
  --accent:       #AA5C24;

  --ftr-bg:       #101820;
  --ftr-text:     #9AA09E;
  --ftr-dim:      #858C8A;
  --ftr-rule:     #262E35;
  --ftr-mail:     #E7B98B;

  --sans:    'Poppins', 'Avenir Next', Avenir, 'Segoe UI', Helvetica, Arial, sans-serif;
  --display: 'Bricolage Grotesque', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* 24px at 390 wide, 120px at 1440 */
  --gutter: clamp(24px, 9.14vw - 11.66px, 120px);
  --measure: 780px;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

img, svg { display: block; max-width: 100%; }

/* gutter at narrow widths; centres a 1200px content column on wide screens.
   Padding-only — an auto margin here would stop flex children stretching. */
.wrap { padding-inline: max(var(--gutter), calc((100% - 1200px) / 2)); }

.label {
  font-family: var(--mono);
  font-size: clamp(10px, 9.63px + 0.095vw, 11px);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--label);
}

.display { font-family: var(--display); font-weight: 500; }

/* ── grain ─────────────────────────────────────────────── */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  /* fade out with the hero gradient so the section below has no seam */
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}

/* ── wordmark ──────────────────────────────────────────── */
.mark {
  display: flex;
  align-items: center;
  font-family: var(--display);
  font-size: clamp(13px, 12.26px + 0.19vw, 15px);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink);
}
a.mark { min-height: 44px; }

/* ── nav ───────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: clamp(16px, 7.6px + 2.29vw, 40px);
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(4px, -7.9px + 3.05vw, 36px);
  font-size: clamp(14px, 13.63px + 0.095vw, 15px);
}
.nav a { color: var(--muted); padding: 14px 8px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
}

/* ── hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(640px, 558px + 20.95vw, 860px);
  padding-bottom: clamp(40px, 3.2px + 9.43vw, 118px);
  background: linear-gradient(180deg, #FDFDFC 0%, #EAECEE 36%, #E1E5E8 100%);
}
.hero > * { position: relative; }
.hero.short { min-height: clamp(420px, 397px + 5.9vw, 480px); }

.bloom {
  position: absolute;
  border-radius: 50%;
  aspect-ratio: 1;
  filter: blur(clamp(110px, 5.3vw + 89px, 190px));
}
.bloom-a { width: clamp(300px, 46%, 660px); left: 27%;  top: -16%; background: #FFD3A0; opacity: 0.324; }
.bloom-b { width: clamp(220px, 31%, 450px); left: 40%;  top:   4%; background: #FFAA52; opacity: 0.414; }
.bloom-c { width: clamp(300px, 49%, 700px); left: -12%; top:  32%; background: #A6B5C5; opacity: 0.495; }
.bloom-d { width: clamp(260px, 40%, 580px); right: -10%; top:  6%; background: #C5CDD6; opacity: 0.306; }
/* short heroes carry a lighter arrangement */
.hero.short .bloom-a { left: 46%; top: -46%; }
.hero.short .bloom-b { left: 58%; top: -22%; }
.hero.short .bloom-c { left: -14%; top: 4%; }
.hero.left .bloom-a { left: 4%; top: -50%; }
.hero.left .bloom-b { left: 16%; top: -24%; }
.hero.left .bloom-c { left: auto; right: -12%; top: 0; }

.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--page) 0%, rgba(250, 250, 249, 0) 26%);
}
.hero.short .hero-fade { background: linear-gradient(0deg, var(--page) 0%, rgba(250, 250, 249, 0) 34%); }

.hero-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 80px;
}
.hero-lede { max-width: 900px; }

h1 {
  font-size: clamp(44px, 27.65px + 4.19vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.034em;
  margin-top: clamp(16px, 12.3px + 0.95vw, 26px);
  max-width: 800px;
}
.hero.short h1 { font-size: clamp(40px, 26.6px + 3.43vw, 76px); }

.subhead {
  font-size: clamp(17px, 15.51px + 0.381vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  margin-top: clamp(20px, 16.3px + 0.95vw, 30px);
  max-width: 500px;
}

.focus {
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 0 0 320px;
  padding-bottom: 6px;
}
.focus-lines { display: flex; flex-direction: column; gap: 8px; }
.focus p { font-size: clamp(15px, 14.26px + 0.19vw, 17px); line-height: 1.6; }
.focus p + p { color: var(--muted); }

/* ── shared two-column rhythm ──────────────────────────── */
.cols {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 72px;
}

.intro { padding-block: clamp(72px, 43px + 7.4vw, 150px) clamp(64px, 36px + 7.2vw, 140px); }
.stack { display: flex; flex-direction: column; gap: clamp(22px, 19px + 0.76vw, 30px); max-width: var(--measure); }
.stack p { font-size: clamp(17px, 15.14px + 0.476vw, 22px); line-height: 1.65; color: var(--prose); }
.stack p.pull, .pull {
  font-size: clamp(24px, 20.29px + 0.952vw, 34px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: clamp(12px, 8.3px + 0.95vw, 26px);
}

/* ── services ──────────────────────────────────────────── */
.services { padding-bottom: clamp(64px, 36px + 7.2vw, 140px); }
.services > .label { display: block; margin-bottom: clamp(28px, 22px + 1.52vw, 44px); }
.service {
  padding-block: clamp(28px, 22px + 1.52vw, 44px);
  border-top: 1px solid var(--rule);
}
.service:last-of-type { border-bottom: 1px solid var(--rule); }
.service h3 { font-size: clamp(21px, 18.77px + 0.571vw, 27px); letter-spacing: -0.02em; }
.service p {
  font-size: clamp(16px, 15.26px + 0.19vw, 18px);
  line-height: 1.7;
  color: var(--prose-soft);
  max-width: 700px;
}

/* ── how we work ───────────────────────────────────────── */
.how {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 28px + 7.2vw, 130px) clamp(80px, 54px + 6.7vw, 150px);
}
.how::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 54% at 78% 50%, #FFBE79 0%, rgba(255, 190, 121, 0) 74%);
  opacity: 0.306;
}
.how > * { position: relative; }
.how-body { display: flex; flex-direction: column; gap: clamp(24px, 18px + 1.52vw, 40px); }
.how-lines { display: flex; flex-direction: column; gap: clamp(20px, 17px + 0.76vw, 28px); }
.how-lines p:first-child {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 19.03px + 0.762vw, 30px);
  line-height: 1.4;
  letter-spacing: -0.018em;
  max-width: 720px;
}
.how-lines p:last-child {
  font-size: clamp(17px, 15.89px + 0.286vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 620px;
}

/* ── page body (about / contact) ───────────────────────── */
.page-body { padding-top: clamp(64px, 40px + 6.2vw, 130px); }
.page-body .stack p.lede, .lede {
  font-size: clamp(20px, 17.77px + 0.571vw, 26px);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 700px;
}
.page-body .stack p { font-size: clamp(17px, 15.89px + 0.286vw, 20px); line-height: 1.7; color: var(--prose-soft); }

.mailto {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 6.3px + 0.95vw, 20px);
  margin-top: clamp(32px, 23px + 2.29vw, 56px);
  padding-bottom: 16px;
  border-bottom: 1px solid #C9CBC8;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 21.31px + 1.714vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.mailto svg { flex: none; width: clamp(20px, 17.8px + 0.571vw, 26px); }
.mailto path { stroke: var(--accent); }

.details {
  padding-block: clamp(56px, 34px + 5.6vw, 110px) clamp(64px, 36px + 7.2vw, 140px);
}
.details .cols { padding-top: clamp(28px, 22px + 1.52vw, 44px); border-top: 1px solid var(--rule); }
.details dl { margin: 0; font-size: clamp(16px, 15.26px + 0.19vw, 18px); line-height: 1.7; color: var(--prose-soft); }
.details dt { font-weight: 500; color: var(--ink); }
.details dd { margin: 0; }

/* ── projects ──────────────────────────────────────────── */
.projects { padding-bottom: clamp(56px, 34px + 5.6vw, 110px); }
.project {
  padding-top: clamp(28px, 22px + 1.52vw, 44px);
  border-top: 1px solid var(--rule);
}
.project + .project { margin-top: clamp(56px, 34px + 5.6vw, 110px); }
.project-head { display: flex; flex-direction: column; gap: 22px; }
.project h2 {
  font-size: clamp(26px, 23px + 0.76vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.project-meta { display: flex; flex-direction: column; gap: 5px; }
.project-body { display: flex; flex-direction: column; gap: 22px; max-width: 700px; }
.project-body p {
  font-size: clamp(16px, 15.26px + 0.19vw, 18px);
  line-height: 1.7;
  color: var(--prose-soft);
}
.shots {
  grid-column: 1 / -1;
  display: flex;
  gap: clamp(16px, -6px + 5.6vw, 48px);
  margin-top: clamp(32px, 20px + 3vw, 56px);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.shots::-webkit-scrollbar { display: none; }
.shots img {
  flex: none;
  width: clamp(200px, 18.34vw, 264px);
  height: auto;
  aspect-ratio: 264 / 572;
  border-radius: clamp(26px, 2.4vw, 34px);
  border: 1px solid #E1E3E2;
  object-fit: cover;
}
.project + .project { margin-top: clamp(56px, 34px + 5.6vw, 110px); }

.outro { padding-block: clamp(56px, 34px + 5.6vw, 110px) clamp(64px, 36px + 7.2vw, 140px); }
.outro p { font-size: clamp(17px, 15.89px + 0.286vw, 20px); line-height: 1.7; color: var(--prose-soft); max-width: 620px; }
.mailto.sm {
  margin-top: clamp(20px, 16px + 1.14vw, 28px);
  padding-bottom: 12px;
  font-size: clamp(20px, 17.77px + 0.571vw, 26px);
  gap: 14px;
}
.mailto.sm svg { width: 20px; }

/* ── footer ────────────────────────────────────────────── */
.ftr {
  background: var(--ftr-bg);
  color: var(--page);
  padding-block: clamp(44px, 32px + 3.05vw, 76px) clamp(40px, 31px + 2.29vw, 64px);
}
.ftr a { color: var(--ftr-text); }
.ftr a:hover { color: var(--page); }
.ftr a[aria-current="page"] { color: var(--page); box-shadow: inset 0 -1px 0 var(--page); }
.ftr .mark { color: var(--page); }
.ftr-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(20px, 8px + 3.05vw, 60px);
  padding-bottom: clamp(28px, 17px + 2.67vw, 56px);
}
.ftr-nav { display: flex; gap: clamp(4px, -7.9px + 3.05vw, 36px); font-size: clamp(14px, 13.63px + 0.095vw, 15px); }
.ftr-nav a { padding: 14px 8px; }
.ftr-legal {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 8px + 3.05vw, 60px);
  border-top: 1px solid var(--ftr-rule);
  padding-top: 30px;
}
.ftr-legal p { font-size: clamp(13px, 12.63px + 0.095vw, 14px); line-height: 1.6; color: var(--ftr-text); }
.ftr-legal p + p { color: var(--ftr-dim); }
.ftr-legal a { color: var(--ftr-mail); }
.ftr-legal a:hover { color: #FFFFFF; }
.ftr-lines { display: flex; flex-direction: column; gap: 6px; }

/* ── narrow ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .cols { grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 12px + 2vw, 32px); }
  .cols > .spacer { display: none; }

  .hero-body { flex-direction: column; align-items: stretch; gap: 0; }
  .focus {
    flex: none;
    gap: 12px;
    margin-top: 36px;
    padding-top: 24px;
    padding-bottom: 0;
    border-top: 1px solid rgba(16, 24, 32, 0.12);
  }
  .focus-lines { gap: 6px; }

  .service { display: flex; flex-direction: column; gap: 12px; }
  .service p { line-height: 1.65; }

  .how::before { background: radial-gradient(84% 50% at 78% 50%, #FFBE79 0%, rgba(255, 190, 121, 0) 74%); }

  .nav a { padding: 14px 6px; }
  .ftr-top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ftr-nav { flex-direction: column; gap: 0; font-size: 16px; }
  .ftr-nav a { padding: 15px 0; }
  .ftr-legal { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ftr-lines { gap: 0; }
  .ftr-lines p { padding-block: 3px; }
  .ftr-legal a { display: inline-block; padding-block: 13px; }
  .mailto.sm { padding-top: 11px; }
}

/* ── very narrow (iPhone SE and similar) ───────────────── */
@media (max-width: 380px) {
  .topbar { gap: 8px; }
  .mark { letter-spacing: 0.16em; }
  .topbar { flex-wrap: wrap; row-gap: 0; }
  .nav { width: 100%; margin-left: -6px; }
  .nav a { padding: 15px 6px; }
}
