/* Small Black Cabin — The Quiet Entrance
   Mobile first. Breakpoints: 760px (tablet), 1080px (desktop). */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope-variable.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Sacramento"; src: url("../fonts/sacramento-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #F7F6F2;
  --ink: #0B0B0B;
  --gold: #FECC02;
  --text: #24231F;
  --soft: #4A4843;
  --muted: #5A5852;
  --quiet: #6E6B64;
  --rule: rgba(11, 11, 11, .14);
  --placeholder: #EEECE6;
  --pad: clamp(16px, 5vw, 56px);
  --header: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --hand: "Sacramento", "Snell Roundhand", "Apple Chancery", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--paper); }
::selection { background: var(--gold); color: var(--ink); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); }
.skip-link:focus { left: 12px; }
.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--pad); }
.eyebrow { margin-bottom: 20px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.link-underline { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; font-size: 15px; font-weight: 600; border-bottom: 2px solid currentColor; transition: border-color .3s ease; }
.link-underline:hover { border-bottom-color: var(--gold); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--pad); background: rgba(247, 246, 242, .9); -webkit-backdrop-filter: saturate(1.2) blur(14px); backdrop-filter: saturate(1.2) blur(14px); border-bottom: 1px solid transparent; transition: border-color .4s ease; }
.site-header.is-scrolled { border-bottom-color: rgba(11, 11, 11, .1); }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; transition: opacity .5s ease; }
.site-header.is-top .brand { opacity: 0; pointer-events: none; }
.brand img { width: 30px; }
.brand-word { display: none; font-size: 12px; font-weight: 700; letter-spacing: .24em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 14px; }
.nav a { padding: 12px 0; font-size: 14px; font-weight: 500; border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.lang { display: flex; align-items: center; color: #B9B6AE; font-size: 13px; }
.lang button { min-width: 32px; padding: 12px 4px; background: none; border: 0; cursor: pointer; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--quiet); }
.lang button[aria-pressed="true"] { color: var(--ink); }

/* 01 Entrance */
.entrance { position: relative; margin-top: calc(var(--header) * -1); min-height: 82svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 112px 16px 112px; text-align: center; }
.entrance-inner { display: flex; flex-direction: column; align-items: center; animation: fade 1.4s var(--ease) .1s both; }
.entrance-mark { width: clamp(128px, 17vw, 212px); }
.wordmark { margin: clamp(28px, 3.4vw, 44px) -.2em 0 0; font-size: clamp(20px, 6vw, 66px); font-weight: 700; letter-spacing: .2em; line-height: 1; white-space: nowrap; }
.promise { margin: clamp(14px, 1.6vw, 22px) -.2em 0 0; font-size: clamp(15px, 1.55vw, 22px); font-weight: 300; letter-spacing: .2em; color: var(--text); }
.hand { position: relative; margin-top: 40px; display: flex; flex-direction: column; align-items: flex-start; transform: rotate(-9deg); animation: fade 1.6s var(--ease) .9s both; }
.hand span { font-family: var(--hand); font-size: clamp(30px, 3.2vw, 48px); line-height: .95; }
.hand span + span { padding-left: .9em; }
.hand::after { content: ""; width: 62%; height: 2px; margin: 10px 0 0 .9em; background: var(--gold); border-radius: 2px; transform: rotate(-4deg); font-size: clamp(30px, 3.2vw, 48px); }
.scroll-cue { position: absolute; left: 0; right: 0; bottom: clamp(16px, 4vh, 40px); width: max-content; margin: 0 auto; padding: 12px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; animation: fade 1.4s ease 1.4s both; }
.scroll-cue-label { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.scroll-cue-line { position: relative; width: 1px; height: 40px; background: rgba(11, 11, 11, .16); }
.scroll-cue-line::after { content: ""; position: absolute; left: -2px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); animation: drop 2.6s cubic-bezier(.45, 0, .3, 1) infinite; }

/* 02 Made in the Cabin */
.projects { padding-block: clamp(72px, 10vw, 144px) clamp(88px, 11vw, 160px); }
.section-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(24px, 4vw, 64px); align-items: end; }
.display { font-size: clamp(38px, 5.6vw, 84px); font-weight: 600; line-height: 1.02; letter-spacing: -.028em; text-wrap: balance; }
.lede { max-width: 30ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: #3A3934; text-wrap: pretty; }
.filters { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: clamp(48px, 6vw, 88px) 0 0; border-bottom: 1px solid rgba(11, 11, 11, .12); }
.filters button { display: flex; align-items: baseline; gap: 6px; min-height: 44px; padding: 12px 0; margin-bottom: -1px; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .25s ease, border-color .25s ease; }
.filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.filters button:hover { color: var(--ink); }
.filters .count { font-size: 11px; color: var(--quiet); }
.project-list { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--ink); }
.project { display: grid; grid-template-columns: 1fr; gap: 16px; padding: clamp(28px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--rule); }
.project-num { display: flex; align-items: center; gap: 10px; padding-top: 8px; font-size: 13px; font-weight: 600; letter-spacing: .12em; }
.project-num::before { content: ""; width: 10px; height: 10px; background: var(--gold); opacity: 0; transition: opacity .35s ease; }
.project-title { font-size: clamp(32px, 4vw, 56px); font-weight: 600; letter-spacing: -.028em; line-height: 1.02; transition: transform .6s var(--ease); }
.title-line { display: block; white-space: nowrap; }
.project-meta { display: flex; flex-wrap: wrap; gap: 0 10px; margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.project-meta span { white-space: nowrap; }
.project-meta span + span::before { content: "·"; margin-right: 10px; }
.project-desc { font-size: 19px; line-height: 1.45; font-weight: 500; }
.project-desc a { border-bottom: 1px solid currentColor; transition: border-color .3s ease; }
.project-desc a:hover { border-bottom-color: var(--gold); }
.project-summary { max-width: 40ch; margin-top: 6px; font-size: 16px; line-height: 1.6; color: var(--soft); text-wrap: pretty; }
.project .link-underline { margin-top: 16px; }
.project-media { order: -1; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--placeholder) repeating-linear-gradient(135deg, rgba(11, 11, 11, .045) 0 1px, transparent 1px 11px); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.projects-note { padding: 32px 0; color: var(--soft); }

/* 03 Philosophy */
.philosophy { padding-bottom: clamp(88px, 11vw, 160px); }
.philosophy-photo { width: 100%; height: clamp(300px, 48vw, 680px); object-fit: cover; object-position: 68% 55%; }
.philosophy-body { padding-top: clamp(64px, 8vw, 120px); }
.philosophy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(28px, 5vw, 80px); }
.philosophy-title { font-size: clamp(36px, 4.6vw, 68px); font-weight: 600; line-height: 1.04; letter-spacing: -.026em; }
.philosophy-text { padding-top: clamp(0px, 3vw, 40px); }
.philosophy-text p { max-width: 34ch; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; color: var(--text); text-wrap: pretty; }
.philosophy-text p + p { margin-top: 24px; font-weight: 600; color: var(--ink); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: clamp(32px, 3vw, 48px); margin-top: clamp(72px, 9vw, 128px); }
.values li { padding-top: 20px; border-top: 1px solid var(--ink); }
.values-num { font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--muted); }
.values h3 { margin-top: 16px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.values p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--soft); }

/* 05 Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(72px, 9vw, 128px) var(--pad) 32px; }
.footer-inner { max-width: 1440px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-mark { width: 72px; }
.footer-word { margin: 28px -.22em 0 0; font-size: clamp(15px, 1.6vw, 19px); font-weight: 700; letter-spacing: .22em; }
.footer-promise { margin: 12px -.18em 0 0; font-size: 15px; font-weight: 300; letter-spacing: .18em; color: #D6D3CB; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 32px; margin-top: 48px; }
.footer-nav a { padding: 12px 0; font-size: 15px; font-weight: 500; border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.footer-nav a:hover { border-bottom-color: var(--gold); }
.footer-mail { margin-top: 20px; padding: 10px 0; font-size: 17px; font-weight: 500; border-bottom: 1px solid rgba(247, 246, 242, .4); transition: border-color .3s ease; }
.footer-mail:hover { border-bottom-color: var(--gold); }
.footer-base { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: clamp(64px, 8vw, 104px); padding-top: 24px; border-top: 1px solid rgba(247, 246, 242, .16); font-size: 13px; color: #C9C6BE; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { padding: 10px 0; }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--paper); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(56px, 8vw, 112px) var(--pad) clamp(80px, 10vw, 140px); }
.legal h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 600; letter-spacing: -.028em; line-height: 1.04; }
.legal .intro { max-width: 40ch; margin-top: 24px; font-size: 19px; color: var(--text); }
.legal-body { display: flex; flex-direction: column; gap: 44px; margin-top: 56px; color: var(--text); }
.legal-body h2 { margin-bottom: 12px; font-size: 20px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.legal-body p + p { margin-top: 16px; }
.legal-body a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-body a:hover { text-decoration-color: var(--gold); }

@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes drop { 0% { transform: translateY(-14px); opacity: 0; } 30%, 70% { opacity: 1; } 100% { transform: translateY(22px); opacity: 0; } }

@media (min-width: 380px) {
  .nav { gap: 16px; }
}

@media (min-width: 760px) {
  .brand-word { display: inline; }
  .nav { gap: clamp(16px, 2.6vw, 32px); }
  .nav a { font-size: 15px; }
  .lang { margin-left: 4px; }
  .lang button { padding-inline: 6px; }
  .entrance { min-height: 100svh; padding-inline: 24px; }
  .wordmark { letter-spacing: .22em; margin-right: -.22em; }
  .hand { position: absolute; margin: 0; right: calc(50% - clamp(120px, 14vw, 240px) - 220px); top: calc(50% - clamp(150px, 17vw, 250px)); }
  .project { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr) 160px; gap: clamp(20px, 3vw, 48px); align-items: start; }
  .project-media { order: 0; }
  .project-body { padding-top: 6px; }
}

@media (min-width: 1080px) {
  .project { grid-template-columns: 72px minmax(0, 1.15fr) minmax(0, 1fr) 240px; }
}

@media (hover: hover) and (min-width: 760px) {
  .project:hover .project-num::before { opacity: 1; }
  .project:hover .project-title { transform: translateX(10px); }
  .project:hover .project-media img { transform: scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .scroll-cue, .filters { display: none; }
  .entrance { min-height: auto; margin-top: 0; }
}
