/* Fjellform — Nordic architecture studio. Quiet, white, hairline grid, dark landscape photography. */
:root {
  --bg: #ffffff;
  --bg-2: #f4f4f2;
  --ink: #141414;
  --ink-2: #4a4a48;
  --muted: #8a8a86;
  --line: rgba(20, 20, 20, 0.12);
  --night: #121212;
  --tm-ink: #141414;
  --tm-bg: rgba(20, 20, 20, 0.04);
}
body { background: var(--bg); color: var(--ink); font-weight: 400; }
h1, h2, h3 { font-weight: 300; letter-spacing: -0.02em; }
.btn { --b-bg: var(--ink); --b-fg: #fff; border-radius: 0; height: 50px; padding: 0 26px; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.btn-white { --b-bg: #ffffff; --b-fg: var(--ink); }
.btn-ghost-w { --b-bg: transparent; --b-fg: #fff; border: 1px solid rgba(255, 255, 255, 0.5); }
.btn-ghost-w:hover { background: rgba(255, 255, 255, 0.1); }
.tag { display: flex; gap: 56px; font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.tag b { font-weight: 500; color: var(--ink); min-width: 20px; }
.lede { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.22; font-weight: 300; letter-spacing: -0.015em; }
.small { font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 44ch; }
.small + .small { margin-top: 14px; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; color: #fff; padding-top: env(safe-area-inset-top); transition: background 0.5s, color 0.5s, border-color 0.5s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(255, 255, 255, 0.92); color: var(--ink); border-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav .container { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mark { font-size: 20px; font-weight: 400; letter-spacing: 0.12em; }
.nav-links { display: flex; gap: 32px; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
.nav-links a { opacity: 0.8; transition: opacity 0.3s; }
.nav-links a:hover { opacity: 1; }
.nav .btn { height: 40px; padding: 0 18px; }
.nav:not(.scrolled) .btn { --b-bg: #fff; --b-fg: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: calc(96px + env(safe-area-inset-top)) 0 clamp(28px, 4vw, 48px); isolation: isolate; }
.hero .media { position: absolute; inset: 0; z-index: -1; background: #2a2d30; }
.hero .media img { transform: scale(calc(1.08 - var(--p, 0) * 0.06)); transition: transform 0.1s linear; }
.hero .media::after { content: ""; position: absolute; inset: 0; background: rgba(10, 12, 14, 0.38); box-shadow: inset 0 -30vh 22vh -8vh rgba(10, 12, 14, 0.55); }
.hero-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.hero-top .t1 { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }
.hero-top .t2 { font-size: clamp(18px, 1.6vw, 24px); font-weight: 300; text-align: right; max-width: 22ch; }
.hero-bottom { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.wordmark { font-size: clamp(44px, 13.5vw, 230px); line-height: 0.82; font-weight: 300; letter-spacing: -0.03em; margin-left: -0.04em; }
.year { font-size: 13px; letter-spacing: 0.12em; padding-bottom: 0.6em; }

/* ---------- Sections ---------- */
section.block { padding: clamp(80px, 10vw, 150px) 0; border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); }
.stack { display: grid; gap: 14px; }
.stack .media { aspect-ratio: 16 / 10; }
.stack .media:last-child { aspect-ratio: 16 / 9; }
.about-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.about-copy .lede { margin-top: 30px; max-width: 18ch; }
.media img { transition: transform 1.4s var(--ease); }
a:hover .media img, .zoom:hover img { transform: scale(1.04); }

/* Philosophy */
.philo { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.philo .lede { margin-top: 30px; max-width: 20ch; }
.sketch { margin-top: 60px; width: 100%; max-width: 520px; color: #9a9a96; }
.sketch path, .sketch line, .sketch rect, .sketch polyline, .sketch circle { fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.sketch.in path, .sketch.in line, .sketch.in rect, .sketch.in polyline, .sketch.in circle { animation: draw 3.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.principles { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 34px; }
.principles li { display: grid; grid-template-columns: 70px 1fr; gap: 10px; }
.principles .n { font-size: 30px; font-weight: 300; line-height: 1; }
.principles b { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.principles p { font-size: 13px; color: var(--ink-2); max-width: 26ch; }

/* Services */
.services { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 90px); }
.services-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.services-copy .lede { margin-top: 30px; max-width: 18ch; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile { position: relative; display: block; }
.tile .media { aspect-ratio: 4 / 3; }
.tile .media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -90px 60px -40px rgba(0, 0, 0, 0.6); }
.tile span { position: absolute; left: 14px; bottom: 12px; z-index: 2; color: #fff; font-size: 13px; }
.service-names { display: flex; gap: 40px; margin-top: 30px; font-size: 13px; font-weight: 500; flex-wrap: wrap; }

/* Highlight */
.highlight { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(32px, 6vw, 80px); }
.highlight h2 { font-size: clamp(30px, 2.8vw, 42px); margin-top: 30px; }
.highlight .small { margin-top: 26px; }
.scope { margin-top: 44px; font-size: 13px; }
.scope b { display: block; font-weight: 500; margin-bottom: 8px; }
.scope li { list-style: none; color: var(--ink-2); line-height: 1.7; }
.scope ul { padding: 0; margin: 0; }
.highlight .media { aspect-ratio: 16 / 10; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 20px; margin-top: 18px; border-top: 1px solid var(--line); }
.specs dt { font-size: 12px; font-weight: 500; margin-bottom: 6px; }
.specs dd { margin: 0; font-size: 13px; color: var(--ink-2); }

/* Projects */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 50px; }
.project .media { aspect-ratio: 5 / 4; color: #fff; }
.project .media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.18); box-shadow: inset 0 -120px 80px -50px rgba(0, 0, 0, 0.55); }
.project .over { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 20px; color: #fff; pointer-events: none; }
.project .over .row { display: flex; justify-content: space-between; font-size: 12px; }
.project .over h3 { font-size: clamp(28px, 2.6vw, 40px); }
.project .over .row.bottom { align-items: end; font-size: 12px; }
.project p { margin-top: 16px; }

/* Process */
.process-head .lede { margin-top: 30px; max-width: 30ch; }
.process { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 60px; }
.phase { border-left: 1px solid var(--line); padding: 0 18px; min-height: 260px; display: flex; flex-direction: column; transition: background 0.4s; }
.phase:hover { background: var(--bg-2); }
.phase .n { font-size: 30px; font-weight: 300; padding-top: 16px; }
.phase b { font-size: 13px; font-weight: 500; margin-top: 18px; }
.phase p { margin-top: auto; padding-bottom: 16px; font-size: 13px; color: var(--ink-2); }

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 50px; }
.numbers div { border-left: 1px solid var(--line); padding: 0 22px; }
.numbers strong { display: block; font-size: clamp(54px, 6vw, 96px); font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.numbers span { display: block; margin-top: 30px; font-size: 13px; font-weight: 500; }
.band { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; margin-top: 50px; }
.band .media { height: clamp(220px, 26vw, 440px); }

/* Contact */
.contact { position: relative; color: #fff; overflow: hidden; isolation: isolate; padding: clamp(80px, 10vw, 140px) 0 40px; }
.contact > .media { position: absolute; inset: 0; z-index: -1; background: #1b1d20; }
.contact > .media::after { content: ""; position: absolute; inset: 0; background: rgba(8, 10, 12, 0.55); box-shadow: inset 45vw 0 30vw -10vw rgba(8, 10, 12, 0.7); }
.contact .tag { color: rgba(255, 255, 255, 0.75); }
.contact .tag b { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); margin-top: 40px; align-items: end; }
.contact .lede { max-width: 18ch; }
.direct { margin-top: 50px; display: grid; gap: 6px; font-size: 14px; }
.direct a:hover { text-decoration: underline; text-underline-offset: 4px; }
.inquiry { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); padding: clamp(22px, 3vw, 36px); }
.inquiry h3 { font-size: 26px; margin-bottom: 18px; }
.inquiry .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.inquiry .full { grid-column: 1 / -1; }
.inquiry label { display: grid; gap: 6px; font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.inquiry input, .inquiry select, .inquiry textarea { width: 100%; padding: 10px 0; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.35); color: #fff; font: 400 16px var(--sans); letter-spacing: 0; text-transform: none; border-radius: 0; }
.inquiry select option { color: var(--ink); }
.inquiry textarea { min-height: 64px; resize: vertical; }
.inquiry input:focus, .inquiry select:focus, .inquiry textarea:focus { outline: none; border-color: #fff; }
.inquiry .btn { margin-top: 22px; }
.sent { padding: 20px 0; }
.sent h3 { font-size: 30px; }
.sent p { color: rgba(255, 255, 255, 0.75); margin-top: 8px; }
.offices { display: flex; gap: 50px; margin-top: clamp(60px, 8vw, 110px); font-size: 13px; flex-wrap: wrap; }
.offices span { color: rgba(255, 255, 255, 0.65); }

/* Footer */
.foot { background: var(--night); color: #f2f2f0; padding: 32px 0 calc(40px + var(--safe-b)); min-height: 60vh; display: flex; }
.foot .container { display: flex; flex-direction: column; justify-content: space-between; gap: 80px; }
.foot .top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(242, 242, 240, 0.6); }
.foot .top a:hover { color: #fff; }
.foot .bottom { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.foot .wordmark { font-size: clamp(56px, 12vw, 210px); }
.foot .credits { color: rgba(242, 242, 240, 0.5); font-size: 12px; }
.foot .credits a { text-decoration-color: rgba(255, 255, 255, 0.3); }

/* Let grid columns shrink below their content */
.split > *, .philo > *, .services > *, .highlight > *, .contact-grid > *, .band > * { min-width: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .split, .philo, .services, .highlight, .contact-grid, .band { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .numbers { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .projects { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tag { gap: 28px; }
  .hero-top .t2 { display: none; }
  .tiles { gap: 8px; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .phase { min-height: 200px; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .inquiry .fields { grid-template-columns: 1fr; }
  .offices { gap: 24px; }
  .service-names { gap: 18px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .wordmark { font-size: 15.5vw; }
  .year { padding-bottom: 0; }
  .foot .bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .mark { font-size: 16px; letter-spacing: 0.1em; }
  .nav .btn { height: 36px; padding: 0 12px; font-size: 10px; letter-spacing: 0.1em; }
}
@media (min-width: 1680px) {
  .small { font-size: 15.5px; }
  .principles p, .phase p, .specs dd { font-size: 14.5px; }
}
