/* Hideaway Retreats — Design portfolio. Shared by /design and every /design/<project> page. */
:root {
  --paper: #F2F1F1;
  --surface: #FFFFFF;
  --ink: #143C49;
  --ink-soft: #4A6570;
  --line: #D5DBDD;
  --accent: #BF5A2D;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --space: clamp(72px, 10vw, 136px);
  --gap: clamp(16px, 2vw, 24px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.7; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 em, h2 em, .tagline em { font-style: italic; }
p, figure, blockquote, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.label { font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--ink-soft); max-width: 58ch; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* ---------- Header ---------- */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { width: clamp(180px, 18vw, 230px); }
.site-head nav { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.site-head nav a, .site-foot nav a { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--accent); }
@media (max-width: 760px) {
  .site-head .wrap { flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 16px; }
  .site-head nav { width: 100%; justify-content: space-between; gap: 8px; }
  .site-head nav a { font-size: 10.5px; letter-spacing: .08em; white-space: nowrap; }
}

/* ---------- Index ---------- */
.index-head { padding-block: clamp(56px, 8vw, 112px) clamp(40px, 5vw, 64px); }
.index-head h1 { font-size: clamp(56px, 9vw, 120px); font-weight: 400; margin-top: 14px; }
.index-head .lede { margin-top: 22px; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 64px) var(--gap); }
.card a { display: block; text-decoration: none; }
.card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: #DCDAD6; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.6,.2,1); }
.card a:hover img { transform: scale(1.025); }
.card-text { padding-top: 18px; }
.card h2 { font-size: clamp(28px, 2.8vw, 38px); }
.card .meta { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }
.card .line { margin-top: 8px; color: var(--ink-soft); max-width: 52ch; }
.card a:hover h2 { color: var(--accent); }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

/* The "what we solve" tile that shares the top row with the first project */
.pitch { background: var(--ink); color: #F2F1F1; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; }
.pitch .label { color: #F0C9A8; }
.pitch h2 { font-size: clamp(30px, 3vw, 42px); font-weight: 400; }
.pitch ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(242, 241, 241, .2); }
.pitch li { padding-block: 12px; border-bottom: 1px solid rgba(242, 241, 241, .2); font-size: 14.5px; line-height: 1.5; }
.pitch li strong { display: block; font-family: var(--display); font-size: 20px; font-weight: 500; }
.pitch li span { color: rgba(242, 241, 241, .78); }
.pitch p:last-child { margin-top: auto; padding-top: 6px; }
.pitch .text-link { color: #F2F1F1; }
.pitch .text-link:hover { color: #F0C9A8; }

/* ---------- Project head ---------- */
.back { display: inline-block; margin-top: 28px; font-size: 13px; color: var(--ink-soft); text-decoration: none; letter-spacing: .04em; }
.back:hover { color: var(--accent); }
.project-head { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); max-width: 900px; }
.project-head h1 { font-size: clamp(52px, 8vw, 112px); font-weight: 400; margin-top: 14px; }
.tagline { font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; margin-top: 16px; color: var(--ink-soft); }
.hero { aspect-ratio: 16 / 9; overflow: hidden; background: #DCDAD6; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .hero { aspect-ratio: 4 / 3; } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px 32px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { font-family: var(--display); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; margin-top: 4px; }

/* ---------- Sections ---------- */
.sec { padding-top: var(--space); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 72px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { font-size: clamp(34px, 4vw, 54px); margin-top: 12px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.story h2 { font-size: clamp(36px, 4.4vw, 60px); margin-top: 12px; }
.story-text { display: grid; gap: 18px; max-width: 60ch; }
.story-text .lede { color: var(--ink); }
.credits { margin-top: 12px; border-top: 1px solid var(--line); }
.credits div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.credits dt { color: var(--ink-soft); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .credits div { grid-template-columns: 1fr; gap: 0; } }

.grid { display: grid; gap: clamp(32px, 4vw, 48px) var(--gap); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }

.ph { overflow: hidden; background: #DCDAD6; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
figcaption strong { font-weight: 500; color: var(--ink); }
.cols-4 figcaption, .cols-3 figcaption { flex-direction: column; }
.hint { margin-top: 20px; font-size: 13px; color: var(--ink-soft); }

.bleed { margin-top: var(--space); }
.bleed img { width: 100%; height: clamp(320px, 56vw, 780px); object-fit: cover; }
.bleed figcaption { display: block; margin-top: 12px; }

/* Before / after */
.compare { --p: 50%; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #DCDAD6; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare .before { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.compare .before.contain { object-fit: contain; background: #fff; }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 1px; background: #F2F1F1; pointer-events: none; }
.compare .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid #F2F1F1; background: rgba(20, 60, 73, .35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.compare .tag { position: absolute; top: 12px; padding: 4px 9px; font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; background: rgba(242, 241, 241, .92); color: var(--ink); pointer-events: none; }
.compare .tag-b { left: 12px; }
.compare .tag-a { right: 12px; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.compare:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Feature: one large image + a short statement */
.feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.feature-side { display: grid; gap: 14px; }
.statement { font-family: var(--display); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.3; }
.feature-side .note { color: var(--ink-soft); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

/* Stages: the same room over time */
.stages { display: grid; gap: clamp(48px, 6vw, 72px); }
.stage { display: grid; grid-template-columns: 1fr 3fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.stage h3 { font-size: clamp(26px, 2.4vw, 32px); }
.stage-text p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }
.stage .ph { aspect-ratio: 3 / 2; }
.stage .grid { gap: var(--gap); }
@media (max-width: 860px) { .stage { grid-template-columns: 1fr; } }

/* Quotes */
.quotes blockquote p { font-family: var(--display); font-size: 22px; line-height: 1.35; }
.quotes blockquote.lead { margin-top: 18px; }
.quotes blockquote.lead p { font-size: clamp(32px, 4.2vw, 58px); line-height: 1.1; font-style: italic; max-width: 22ch; }
.quotes footer { margin-top: 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.quote-grid { margin-top: clamp(40px, 5vw, 64px); padding-top: 32px; border-top: 1px solid var(--line); }

/* Stats */
.stats { border-top: 1px solid var(--line); padding-top: 28px; }
.stat .big { font-family: var(--display); font-size: clamp(52px, 6vw, 80px); line-height: 1; }
.stat .big small { font-size: .38em; margin-left: 8px; color: var(--ink-soft); }
.stat p + p { margin-top: 10px; color: var(--ink-soft); max-width: 30ch; }
.fine { margin-top: 28px; font-size: 12.5px; color: var(--ink-soft); max-width: 90ch; }

/* ---------- Closing ---------- */
.cta { text-align: center; padding-bottom: var(--space); }
.cta .wrap { border-top: 1px solid var(--line); padding-top: var(--space); }
.cta h2 { font-size: clamp(34px, 4.4vw, 60px); font-weight: 400; max-width: 20ch; margin-inline: auto; }
.cta p { margin-top: 24px; }
.text-link { font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--accent);
  border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.text-link:hover { color: var(--ink); }

.project-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-block: 40px 56px; border-top: 1px solid var(--line); }
.project-nav a { text-decoration: none; }
.project-nav .next { text-align: right; }
.project-nav .label { display: block; color: var(--ink-soft); }
.project-nav .name { display: block; font-family: var(--display); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; margin-top: 6px; }
.project-nav a:hover .name, .project-nav .all:hover { color: var(--accent); }
.project-nav .all { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 760px) {
  .project-nav { grid-template-columns: 1fr 1fr; }
  .project-nav .all { grid-row: 2; grid-column: 1 / -1; text-align: center; }
}

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #F2F1F1; }
.site-foot .wrap { padding-block: 48px 32px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(242, 241, 241, .18); }
.foot-top img { width: 200px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.site-foot nav a:hover, .foot-bottom a:hover { color: #F0C9A8; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; font-size: 13px; color: rgba(242, 241, 241, .78); }
.foot-bottom a { text-decoration: none; }
.social { display: flex; gap: 20px; }

@media (prefers-reduced-motion: reduce) { .card img { transition: none; } .card a:hover img { transform: none; } }

.credits.brief dt { color: var(--ink); font-weight: 500; }
.credits.brief dd { color: var(--ink-soft); }
.credits.brief + .credits { margin-top: 20px; }

/* ---------- Contact panel ("Start a project") ---------- */
button.text-link, a.text-link[data-contact] { cursor: pointer; }
.contact-panel { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  border: 0; padding: clamp(32px, 5vw, 56px); background: var(--paper); color: var(--ink); box-shadow: -24px 0 60px rgba(8, 28, 35, .18); }
.contact-panel[open] { display: flex; flex-direction: column; gap: 18px; animation: panel-in .35s cubic-bezier(.2, .7, .2, 1); }
.contact-panel::backdrop { background: rgba(8, 28, 35, .45); }
.contact-panel h2 { font-size: clamp(34px, 4vw, 44px); font-weight: 400; margin-bottom: 8px; }
.contact-panel dl { border-top: 1px solid var(--line); }
.contact-panel dl div { padding-block: 18px; border-bottom: 1px solid var(--line); }
.contact-panel dt { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.contact-panel dd { margin-top: 6px; font-family: var(--display); font-size: clamp(22px, 2.4vw, 27px); line-height: 1.25; word-break: break-word; font-variant-numeric: lining-nums; }
.contact-panel dd a { text-decoration: none; }
.contact-panel dd a:hover { color: var(--accent); }
.contact-panel .alt { display: block; margin-top: 6px; font-family: var(--body); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.contact-panel .alt a { color: var(--accent); }
.contact-panel .sign { margin-top: auto; font-size: 13px; color: var(--ink-soft); }
.contact-panel .close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; background: none; color: var(--ink);
  font-size: 30px; line-height: 1; cursor: pointer; }
.contact-panel .close:hover { color: var(--accent); }
@keyframes panel-in { from { transform: translateX(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .contact-panel[open] { animation: none; } }

.nf-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 520px; }
.nf-links li { border-bottom: 1px solid var(--line); }
.nf-links a { display: block; padding-block: 14px; font-family: var(--display); font-size: 24px; text-decoration: none; }
.nf-links a:hover { color: var(--accent); }
