/* Mladin Design House — airy, white, soft */
:root {
  --bg: #ffffff;
  --soft: #f5f4f1;
  --sand: #efe9e0;
  --fg: #111111;
  --muted: #6f6d68;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --g: clamp(20px, 4vw, 64px);
  --space: clamp(110px, 14vw, 220px);
  --r: clamp(18px, 2vw, 28px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; animation-timing-function: var(--ease); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 300 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4, p, dl, dd, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--sand); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--g); top: 12px; z-index: 100; background: var(--fg); color: #fff; padding: 8px 14px; border-radius: 999px; }
.sr-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* type */
.h-mega { font-weight: 300; font-size: clamp(54px, 9.4vw, 160px); line-height: 0.94; letter-spacing: -0.055em; }
.h-xl { font-weight: 300; font-size: clamp(38px, 4.8vw, 80px); line-height: 1; letter-spacing: -0.045em; }
.h-section { font-weight: 400; font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -0.03em; }
.h-display { font-weight: 300; font-size: clamp(32px, 4.4vw, 72px); line-height: 1.1; letter-spacing: -0.04em; }
.h-lede { font-weight: 300; font-size: clamp(22px, 2.1vw, 32px); line-height: 1.32; letter-spacing: -0.025em; color: var(--fg); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px; font-size: 15px; font-weight: 400; white-space: nowrap; transition: background 0.25s, color 0.25s, transform 0.4s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn-black { background: var(--fg); color: #fff; }
.btn-black:hover { background: #333; }
.btn-white { background: #fff; color: var(--fg); }
.btn-outline { box-shadow: inset 0 0 0 1px var(--fg); }
.btn-outline:hover { background: var(--fg); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 20px var(--g); transition: background 0.35s, color 0.35s; }
.site-header.scrolled { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; letter-spacing: -0.02em; }
.brand-mark { width: 22px; height: 22px; display: block; }
.site-nav { display: flex; gap: clamp(18px, 2.6vw, 40px); font-size: 15px; font-weight: 400; }
.site-nav a { opacity: 0.55; transition: opacity 0.2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; }
@media (max-width: 640px) { .brand { font-size: 14px; } .site-nav { gap: 14px; font-size: 13px; } }

/* sections */
.block { padding: var(--space) var(--g) 0; }
.block.tight { padding-top: clamp(56px, 7vw, 110px); }
.head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: clamp(28px, 3.4vw, 52px); }

/* hero */
.hero { padding: clamp(120px, 14vw, 180px) var(--g) 0; }
.hero-top { display: grid; grid-template-columns: 1fr minmax(260px, 360px); gap: clamp(24px, 4vw, 72px); align-items: end; }
.hero-title { font-weight: 300; font-size: clamp(58px, 10.6vw, 184px); line-height: 0.9; letter-spacing: -0.065em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.07em; }
.hero-title .line > span { display: block; transform: translateY(105%); animation: rise 1.3s var(--ease) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.1s; }
@keyframes rise { to { transform: none; } }
.hero-aside { display: grid; gap: 26px; justify-items: start; padding-bottom: 1.4vw; color: #4a4946; opacity: 0; animation: fade 1s 0.5s var(--ease) forwards; }
@keyframes fade { to { opacity: 1; } }
.hero-media { margin-top: clamp(44px, 6vw, 96px); aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--r); background: var(--soft); }
.hero-media img { transform: scale(1.12); animation: hero-in 2.4s var(--ease) forwards; }
@keyframes hero-in { to { transform: scale(1.02); } }
@media (max-width: 760px) { .hero-top { grid-template-columns: 1fr; } .hero-media { aspect-ratio: 4 / 5; } }

/* statement */
.statement { padding: var(--space) var(--g) 0; display: grid; justify-items: center; text-align: center; }
.statement { overflow: hidden; }
.statement .h-display { width: 100%; max-width: 1100px; font-size: clamp(30px, 4vw, 64px); overflow-wrap: break-word; }
.pill { display: inline-block; width: 1.7em; height: 0.8em; border-radius: 999px; overflow: hidden; vertical-align: -0.04em; margin: 0 0.04em; background: var(--soft); }
.pill img { transition: transform 1s var(--ease); }
.pill:hover img { transform: scale(1.12); }

/* carousel */
.slider-wrap { padding-top: var(--space); }
.slider-wrap .head { padding: 0 var(--g); }
.slider { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; cursor: grab; }
.slider::-webkit-scrollbar { display: none; }
.slider.dragging { cursor: grabbing; scroll-snap-type: none; }
.slider.dragging .slide { pointer-events: none; }
.slider-track { display: flex; gap: clamp(12px, 1.6vw, 24px); padding: 0 calc((100vw - min(76vw, 1240px)) / 2); width: max-content; }
.slide { position: relative; isolation: isolate; flex: 0 0 min(76vw, 1240px); aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; scroll-snap-align: center; background: var(--soft); color: #fff; transform: scale(0.94); opacity: 0.55; transition: transform 0.8s var(--ease), opacity 0.8s var(--ease); }
.slide.is-active { transform: none; opacity: 1; }
.slide > img { position: absolute; inset: 0; z-index: -2; transition: transform 1.6s var(--ease); }
.slide:hover > img { transform: scale(1.03); }
.slide-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.5) 100%); }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.92); color: var(--fg); font-size: 13px; font-weight: 400; }
.slide .tags { position: absolute; top: clamp(16px, 2vw, 28px); left: 0; right: 0; }
.slide-bottom { position: absolute; left: 0; right: 0; bottom: clamp(20px, 3vw, 44px); display: grid; justify-items: center; gap: 16px; text-align: center; }
.slide-bottom h3 { font-weight: 300; font-size: clamp(32px, 4.4vw, 72px); letter-spacing: -0.045em; line-height: 1; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #d6d4cf; cursor: pointer; transition: width 0.4s var(--ease), background 0.3s; }
.dots button[aria-current="true"] { width: 26px; background: var(--fg); }
@media (max-width: 760px) {
  .slider-track { padding: 0 6vw; }
  .slide { flex-basis: 88vw; aspect-ratio: 4 / 5; }
}

/* services */
.pill-label { display: inline-block; justify-self: start; padding: 6px 14px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 400; }
.core { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 96px); padding: clamp(28px, 4.4vw, 72px); border-radius: var(--r); background: var(--sand); }
.core-head { display: grid; gap: 24px; align-content: start; }
.core-head p { max-width: 40ch; color: #4a4946; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.65); font-size: 13px; font-weight: 400; }
.segments { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.8vw, 24px); }
.segment { display: grid; gap: 12px; align-content: start; }
.segment-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: calc(var(--r) - 6px); background: #e6ded2; margin-bottom: 6px; }
.segment-media img { transition: transform 1.2s var(--ease); }
.segment:hover .segment-media img { transform: scale(1.04); }
.segment-media.empty { display: grid; place-items: center; background: linear-gradient(160deg, #f6f1ea, #e7ded1); }
.segment-media.empty span { width: 42%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,0.7); }
.segment h4, .disc h4 { font-weight: 400; font-size: 21px; letter-spacing: -0.025em; line-height: 1.2; }
.segment p { font-size: 15px; color: #5e5c57; }
@media (max-width: 900px) { .core { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .segments { grid-template-columns: 1fr; } }

.ext { margin-top: clamp(80px, 10vw, 160px); }
.ext-head { display: grid; gap: 22px; justify-items: center; text-align: center; margin-bottom: clamp(36px, 4.4vw, 64px); }
.ext-head .pill-label { justify-self: center; background: var(--soft); }
.ext-head p { max-width: 50ch; color: #4a4946; }
.disc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); }
.disc li { display: grid; align-content: start; gap: 12px; min-height: 260px; padding: clamp(20px, 2vw, 28px); border-radius: var(--r); background: var(--soft); transition: background 0.5s var(--ease), transform 0.6s var(--ease); }
.disc li:hover { background: var(--sand); transform: translateY(-6px); }
.disc-dot { width: 34px; height: 34px; border-radius: 50%; background: #fff; margin-bottom: auto; position: relative; }
.disc-dot::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--fg); transform: scale(0.4); transition: transform 0.5s var(--ease); }
.disc li:hover .disc-dot::after { transform: scale(1); }
.disc h4 { margin-top: 40px; }
.disc p { font-size: 14px; color: var(--muted); }
@media (max-width: 1000px) { .disc { grid-template-columns: 1fr 1fr; } .disc li { min-height: 0; } }
@media (max-width: 560px) { .disc { grid-template-columns: 1fr; } }

/* 360 */
.approach { position: relative; margin: var(--space) var(--g) 0; padding: clamp(80px, 11vw, 180px) var(--g); border-radius: var(--r); background: var(--soft); display: grid; justify-items: center; text-align: center; gap: 28px; overflow: hidden; }
.approach .h-display { max-width: 18ch; }
.approach-sub { max-width: 52ch; color: #4a4946; }
.floaters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.floaters li { padding: 10px 18px; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 400; animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.2s); }
@keyframes float { 50% { transform: translateY(-6px); } }

/* clients marquee */
.clients-wrap { padding-top: var(--space); }
.clients-wrap .head { padding: 0 var(--g); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 58s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-track span { padding: clamp(10px, 1.4vw, 20px) clamp(24px, 3.4vw, 56px); font-weight: 300; font-size: clamp(32px, 4.6vw, 76px); letter-spacing: -0.045em; white-space: nowrap; }
.marquee.rev .marquee-track span { color: #bcb9b2; }
.marquee-track img { height: clamp(28px, 3.4vw, 52px); width: auto; object-fit: contain; }

/* cta */
.cta { padding: var(--space) var(--g) 0; }
.cta-panel { display: grid; justify-items: center; gap: 34px; text-align: center; padding: clamp(90px, 12vw, 200px) var(--g); border-radius: var(--r); background: var(--sand); transition: background 0.5s; }
.cta-panel .h-display { max-width: 15ch; }
.cta-panel:hover .btn-black { background: #333; }

/* cards (projects index) */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); row-gap: clamp(56px, 6vw, 96px); }
.cards .card:nth-child(even) { margin-top: 14%; }
.card { display: grid; gap: 6px; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--soft); margin-bottom: 14px; }
.card-media img { transition: transform 1.4s var(--ease); }
.card:hover .card-media img { transform: scale(1.035); }
.card-media .tags { position: absolute; top: 18px; left: 18px; right: 18px; justify-content: flex-start; opacity: 0; transform: translateY(-6px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.card:hover .card-media .tags { opacity: 1; transform: none; }
.card h3 { font-weight: 300; font-size: clamp(28px, 2.8vw, 44px); letter-spacing: -0.04em; line-height: 1.05; }
.card p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } .cards .card:nth-child(even) { margin-top: 0; } }

/* inner pages */
.page-intro { padding: clamp(150px, 18vw, 240px) var(--g) 0; display: grid; gap: 32px; }
.page-intro .h-mega { max-width: 13ch; }
.intro-sub { max-width: 46ch; color: #4a4946; font-size: 19px; }

/* project page */
.project-head { padding: 130px var(--g) 0; display: grid; gap: clamp(28px, 3vw, 44px); justify-items: start; }
.project-title { animation: rise-sm 1s var(--ease) both; }
@keyframes rise-sm { from { opacity: 0; transform: translateY(24px); } }
.project-head .tags { justify-content: flex-start; }
.project-head .tags li { background: var(--soft); }
.project-hero { margin: clamp(40px, 5vw, 80px) var(--g) 0; height: min(84svh, 980px); overflow: hidden; border-radius: var(--r); background: var(--soft); }
.project-hero img { animation: clip-in 1.4s 0.1s var(--ease) both; }
@keyframes clip-in { from { transform: scale(1.08); opacity: 0.4; } }
.project-body { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 7vw, 120px); padding: var(--space) var(--g) 0; }
.project-text { display: grid; gap: 1.3em; max-width: 58ch; color: #4a4946; }
@media (max-width: 860px) { .project-body { grid-template-columns: 1fr; } }
.details { display: grid; gap: 22px; align-self: start; }
.details dt { color: var(--muted); font-size: 14px; }
.details dd { font-size: 17px; font-weight: 400; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.8vw, 28px); padding: var(--space) var(--g) 0; }
.gallery figure { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--soft); }
.gallery figure:nth-child(3n) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 24px); padding: var(--space) var(--g) 0; }
.pn { position: relative; isolation: isolate; display: grid; align-content: end; gap: 8px; aspect-ratio: 16 / 10; padding: clamp(20px, 2.6vw, 40px); border-radius: var(--r); overflow: hidden; color: #fff; }
.pn > img { position: absolute; inset: 0; z-index: -2; transition: transform 1.4s var(--ease); }
.pn:hover > img { transform: scale(1.04); }
.pn-label { justify-self: start; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,0.92); color: var(--fg); font-size: 13px; font-weight: 400; }
.pn-title { font-weight: 300; font-size: clamp(30px, 3.6vw, 60px); letter-spacing: -0.045em; line-height: 1; }
@media (max-width: 640px) { .project-nav { grid-template-columns: 1fr; } }

/* studio */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.split-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); position: sticky; top: 100px; }
.split-text { display: grid; gap: 28px; color: #4a4946; }
.split-text .details { margin-top: 16px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-media { position: static; } }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.pillar { display: grid; gap: 14px; align-content: start; padding: clamp(26px, 3vw, 44px); border-radius: var(--r); background: var(--soft); }
.pillar h3 { font-weight: 400; font-size: 23px; letter-spacing: -0.025em; }
.pillar p { color: var(--muted); }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

/* contact */
.contact-email { justify-self: start; font-weight: 300; font-size: clamp(26px, 4.6vw, 76px); letter-spacing: -0.045em; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.6s var(--ease); }
.contact-email:hover { background-size: 100% 1px; }
.contact-page .details { grid-template-columns: repeat(2, max-content); column-gap: 64px; }

/* footer */
.site-footer { margin-top: var(--space); padding: clamp(56px, 6vw, 96px) var(--g) 28px; overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.footer-email { font-weight: 300; font-size: clamp(24px, 3vw, 44px); letter-spacing: -0.04em; }
.footer-email:hover { opacity: 0.6; }
.footer-links { display: flex; gap: 32px; color: var(--muted); font-size: 15px; }
.footer-links a:hover { color: var(--fg); }
.footer-wordmark { margin-top: clamp(56px, 8vw, 120px); font-weight: 300; font-size: 11.4vw; line-height: 0.82; letter-spacing: -0.07em; white-space: nowrap; color: var(--sand); user-select: none; }
.footer-copy { margin-top: 24px; color: var(--muted); font-size: 13px; }

/* moodboard intro */
.mood { display: none; }
.js .mood { display: block; position: fixed; inset: 0; z-index: 100; background: #fff; overflow: hidden; transition: opacity 0.9s var(--ease); }
.mood.out { opacity: 0; pointer-events: none; transition-delay: 0.3s; }
.mood-lock { overflow: hidden; }
.mood-board { position: absolute; inset: 0; }
.tile { position: absolute; margin: 0; overflow: hidden; border-radius: 14px; background: var(--soft); opacity: 0; transform: translateY(30px) scale(0.86) rotate(var(--r, 0deg)); transition: opacity 0.6s var(--ease), transform 0.9s cubic-bezier(0.2, 1.25, 0.3, 1); box-shadow: 0 30px 60px -30px rgba(40, 32, 20, 0.35); }
.mood.run .tile { opacity: 1; transform: rotate(var(--rr, 0deg)); transition-delay: calc(var(--i) * 130ms); }
.mood.out .tile { opacity: 0; transform: translateY(-30px) scale(0.97); transition-duration: 0.5s; transition-delay: calc(var(--i) * 25ms); }
.tile img, .tile .mat, .tile .swatch { width: 100%; height: 100%; }
.t1  { left: 5%;  top: 10%; width: 14vw; aspect-ratio: 3/4; --rr: -2deg; }
.t2  { left: 21%; top: 6%;  width: 10vw; aspect-ratio: 1;   --rr: 1.5deg; }
.t3  { left: 35%; top: 8%;  width: 25vw; aspect-ratio: 16/10; }
.t4  { left: 64%; top: 5%;  width: 11vw; aspect-ratio: 3/4; --rr: 2deg; }
.t5  { left: 80%; top: 12%; width: 13vw; aspect-ratio: 1;   --rr: -1.5deg; }
.t6  { left: 7%;  top: 56%; width: 12vw; aspect-ratio: 3/4; --rr: 1deg; }
.t7  { left: 22%; top: 51%; width: 10vw; aspect-ratio: 1;   --rr: -2.5deg; }
.t8  { left: 66%; top: 48%; width: 12vw; aspect-ratio: 3/4; --rr: -1deg; }
.t9  { left: 82%; top: 59%; width: 12vw; aspect-ratio: 4/3; --rr: 2deg; }
.t10 { left: 34%; top: 72%; width: 17vw; aspect-ratio: 2/1; --rr: -1deg; }
.t11 { left: 56%; top: 67%; width: 8vw;  aspect-ratio: 3/4; --rr: 2.5deg; }
.mood-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; z-index: 2; pointer-events: none; }
.mood-center strong { display: block; font-weight: 300; font-size: clamp(40px, 5vw, 84px); letter-spacing: -0.06em; line-height: 0.92; }
.mood-skip { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 3; padding: 12px 26px; border: 0; border-radius: 999px; background: var(--fg); color: #fff; cursor: pointer; }
@media (max-width: 760px) {
  .mood-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 70px 12px; align-content: center; }
  .tile { position: relative; left: auto; top: auto; width: auto; aspect-ratio: 3/4; }
  .mood-center { top: 40px; transform: translateX(-50%); }
  .mood-center strong { font-size: 28px; }
}
.intro-active .hero-media img, .intro-active .hero-title .line > span, .intro-active .hero-aside { animation-play-state: paused; }

/* material placeholders (replace with real photos) */
.mat-travertine { background:
  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.008 0.16' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.55 0 0 0 0 0.45 0 0 0 0 0.35 0 0 0 1.4 -0.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
  linear-gradient(160deg, #ece4d7, #dccfbb); background-size: cover; }
.mat-oak { background:
  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.004 0.09' numOctaves='3' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.07 0 0 0 0 0.04 0 0 0 1.6 -0.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
  linear-gradient(100deg, #8a6a4c, #a9835f 40%, #7a5a3f); background-size: cover; }
.mat-terrazzo { background-color: #f3efe9; background-image:
  radial-gradient(circle at 12% 18%, #8a8580 0 3px, transparent 4px), radial-gradient(circle at 68% 24%, #cfae98 0 5px, transparent 6px),
  radial-gradient(circle at 38% 62%, #3a3d39 0 4px, transparent 5px), radial-gradient(circle at 82% 70%, #b9b3aa 0 6px, transparent 7px),
  radial-gradient(circle at 24% 84%, #cfae98 0 3px, transparent 4px), radial-gradient(circle at 56% 44%, #9a9590 0 2px, transparent 3px),
  radial-gradient(circle at 90% 40%, #3a3d39 0 3px, transparent 4px), radial-gradient(circle at 46% 90%, #8a8580 0 4px, transparent 5px);
  background-size: 90px 90px; }
.mat-velvet { background: radial-gradient(120% 90% at 28% 22%, #8a9670 0%, #5d6a4b 40%, #39412f 85%); }
.mat-steel { background:
  linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.45) 48%, rgba(255,255,255,0) 62%),
  repeating-linear-gradient(90deg, #b3b6b9 0 1px, #c9ccce 1px 2px, #bcbfc2 2px 4px); }
.swatch { display: grid; grid-template-columns: repeat(4, 1fr); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.001s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track, .floaters li { animation: none; }
  @view-transition { navigation: none; }
}

/* ===== floating CTA ===== */
.float-cta { position: fixed; left: 50%; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--fg); color: #fff; font-size: 14px; font-weight: 400; transform: translate(-50%, 140%); transition: transform 0.6s var(--ease), background 0.25s; box-shadow: 0 14px 40px -16px rgba(0,0,0,0.45); }
.float-cta.show { transform: translate(-50%, 0); }
.float-cta:hover { background: #333; }
.float-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* footer lead */
.footer-lead { display: grid; gap: 4px; margin-bottom: clamp(48px, 6vw, 88px); font-weight: 300; font-size: clamp(34px, 4.6vw, 76px); letter-spacing: -0.045em; line-height: 1.02; }
.footer-lead span:first-child { color: #c4c1ba; }
.footer-lead span:last-child { justify-self: start; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 4px; transition: background-size 0.6s var(--ease); }
.footer-lead:hover span:last-child { background-size: 30% 1px; }

/* ===== studio page ===== */
.studio-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); padding: 96px var(--g) 0; align-items: start; }
.studio-intro-text p { max-width: 34ch; font-weight: 300; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.38; letter-spacing: -0.02em; }
.studio-intro-media { aspect-ratio: 4 / 5; max-height: 86svh; width: 100%; overflow: hidden; border-radius: var(--r); background: var(--soft); }
.studio-intro-media img { animation: hero-in 2.2s var(--ease) both; transform: scale(1.1); }
@media (max-width: 760px) { .studio-intro { grid-template-columns: 1fr; padding-top: 110px; } }

.quote { padding: var(--space) var(--g) 0; }
.quote blockquote { margin: 0; display: grid; gap: 32px; }
.quote p { font-weight: 300; font-size: clamp(34px, 5.4vw, 92px); line-height: 1.04; letter-spacing: -0.05em; text-indent: 14vw; }
.quote footer { color: var(--muted); font-size: 15px; justify-self: end; }

.focus { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); padding: var(--space) var(--g) 0; }
.focus-list { padding: 30vh 0; }
.focus-list li { font-weight: 400; font-size: clamp(34px, 4.4vw, 72px); line-height: 1.12; letter-spacing: -0.045em; color: #d6d3cd; transition: color 0.45s var(--ease); cursor: default; }
.focus-list li.active { color: var(--fg); }
.focus-panel { position: sticky; top: 14vh; align-self: start; display: grid; gap: 20px; }
.focus-media { position: relative; aspect-ratio: 4 / 5; max-height: 66svh; overflow: hidden; border-radius: var(--r); background: var(--soft); }
.focus-visual { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 0.6s var(--ease), transform 1s var(--ease); }
.focus-visual.on { opacity: 1; transform: none; }
.focus-visual .mat { width: 100%; height: 100%; }
.focus-desc { position: relative; min-height: 5.5em; }
.focus-desc p { position: absolute; inset: 0 auto auto 0; max-width: 42ch; color: #4a4946; opacity: 0; transform: translateY(8px); transition: opacity 0.5s, transform 0.5s var(--ease); }
.focus-desc p.on { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .focus { grid-template-columns: 1fr; }
  .focus-panel { position: sticky; top: 70px; order: -1; z-index: 2; background: #fff; padding-bottom: 12px; }
  .focus-media { aspect-ratio: 16 / 10; }
  .focus-list { padding: 10vh 0 30vh; }
}

.vision { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 110px); align-items: center; padding: var(--space) var(--g) 0; }
.vision:nth-of-type(even) .vision-media { order: -1; }
.vision-text { display: grid; gap: 26px; }
.vision-text p { max-width: 44ch; color: #4a4946; font-size: 18px; }
.vision-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--soft); }
@media (max-width: 860px) { .vision { grid-template-columns: 1fr; } .vision:nth-of-type(even) .vision-media { order: 0; } }

.background { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 110px); padding: var(--space) var(--g) 0; align-items: start; }
@media (max-width: 860px) { .background { grid-template-columns: 1fr; } }

/* founder */
.founder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 110px); padding: var(--space) var(--g) 0; align-items: start; }
.founder-portrait { position: sticky; top: 100px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--sand); }
.founder-ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, #f6f1ea, #e6dccd); }
.founder-ph span { font-weight: 300; font-size: clamp(64px, 9vw, 150px); letter-spacing: -0.07em; color: rgba(17,17,17,0.12); }
.founder-text { display: grid; gap: 24px; color: #4a4946; }
.founder-text .h-xl { color: var(--fg); }
.founder-role { margin-top: -12px; color: var(--muted); font-size: 16px; }
.journey { display: grid; gap: 10px; margin-top: 24px; }
.journey li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start; padding: 20px 22px; border-radius: calc(var(--r) - 6px); background: var(--soft); transition: background 0.4s; }
.journey li:hover { background: var(--sand); }
.journey-dot { width: 34px; height: 34px; border-radius: 50%; background: #fff; position: relative; }
.journey-dot::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--fg); }
.journey h3 { font-weight: 400; font-size: 19px; letter-spacing: -0.02em; color: var(--fg); }
.journey p { font-size: 15px; margin-top: 2px; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } .founder-portrait { position: static; max-width: 460px; } }

/* ===== inquiry form ===== */
.contact-intro .h-mega { max-width: 12ch; }
.inquiry-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 6vw, 110px); padding: clamp(64px, 8vw, 120px) var(--g) 0; align-items: start; }
.inquiry, .inquiry-done { grid-column: 1; }
.contact-aside { grid-column: 2; grid-row: 1; position: sticky; top: 110px; }
@media (max-width: 900px) { .inquiry-wrap { grid-template-columns: 1fr; } .contact-aside { grid-column: 1; grid-row: auto; position: static; } }
.inquiry { display: grid; gap: clamp(48px, 6vw, 88px); }
.q { display: grid; gap: 18px; margin: 0; padding: 0; border: 0; min-width: 0; }
.q-title { display: block; padding: 0; font-weight: 300; font-size: clamp(26px, 2.8vw, 42px); line-height: 1.12; letter-spacing: -0.035em; color: var(--fg); }
.q-hint { color: var(--muted); font-size: 15px; }
fieldset.q > legend.q-title { margin-bottom: 18px; float: left; width: 100%; }
fieldset.q > legend + * { clear: both; }
.field { width: 100%; padding: 18px 22px; border: 0; border-radius: 16px; background: var(--soft); color: var(--fg); font: 300 18px/1.4 var(--sans); outline: none; transition: background 0.25s, box-shadow 0.25s; -webkit-appearance: none; appearance: none; }
.field::placeholder { color: #a5a29b; }
.field:hover { background: #efede8; }
.field:focus { background: #fff; box-shadow: inset 0 0 0 1px var(--fg); }
.field-sm { font-size: 16px; padding: 14px 20px; max-width: 460px; }
.area { resize: vertical; min-height: 160px; }
.row-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-fields .f { display: grid; gap: 6px; }
@media (max-width: 600px) { .row-fields { grid-template-columns: 1fr; } }
.field[aria-invalid="true"] { box-shadow: inset 0 0 0 1px #b4442e; background: #fff; }
.err { color: #b4442e; font-size: 14px; min-height: 0; }
.err:empty { display: none; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--soft); font-size: 16px; font-weight: 400; transition: background 0.25s, color 0.25s, transform 0.3s var(--ease); user-select: none; }
.choice:hover span { background: #ebe8e2; }
.choice input:checked + span { background: var(--fg); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.btn-lg { padding: 18px 34px; font-size: 17px; cursor: pointer; border: 0; }
.btn-lg[disabled] { opacity: 0.55; cursor: progress; }
.form-status { color: var(--muted); font-size: 15px; }
.form-status.bad { color: #b4442e; }
.inquiry-done { display: grid; gap: 20px; padding: clamp(48px, 7vw, 110px); border-radius: var(--r); background: var(--sand); }
.inquiry-done[hidden] { display: none; }

/* ===== case study ===== */
.case { display: grid; gap: clamp(56px, 7vw, 120px); margin: var(--space) var(--g) 0; padding: clamp(40px, 6vw, 110px); border-radius: var(--r); background: var(--soft); }
.case-intro { display: grid; gap: 22px; justify-items: start; }
.case-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(20px, 5vw, 96px); align-items: start; }
.case h3 { font-weight: 400; font-size: 18px; letter-spacing: -0.015em; color: var(--muted); }
.case-steps, .case-iter { display: grid; gap: 28px; }
.case-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.case-steps li { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2.4vw, 34px); border-radius: calc(var(--r) - 6px); background: #fff; }
.case-steps li h4 { margin-top: 36px; font-weight: 400; font-size: 22px; letter-spacing: -0.025em; }
.case-steps li p { color: var(--muted); font-size: 15px; }
.case-iter ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.case-iter li { display: grid; gap: 10px; }
.case-iter figure { aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--r) - 6px); background: #fff; margin-bottom: 6px; }
.case-iter h4 { font-weight: 400; font-size: 19px; }
.case-iter p { color: var(--muted); font-size: 15px; }
.case-outcome { display: grid; gap: 22px; }
.case-outcome .h-display { max-width: 22ch; }
@media (max-width: 860px) { .case-row { grid-template-columns: 1fr; } .case-steps ol { grid-template-columns: 1fr; } }

/* ===== logo intro ===== */
.intro { display: none; }
.js .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; background: #fff; transition: background-color 0.7s var(--ease); }
.intro.reveal-page { background-color: rgba(255,255,255,0); pointer-events: none; }
.intro-lock { overflow: hidden; }
.intro-logo { --s: clamp(84px, 13vmin, 150px); --gap: 0px; display: flex; align-items: center; height: var(--s); transform-origin: 0 0; will-change: transform; }
.il-half { position: relative; width: calc(var(--s) / 2); height: var(--s); overflow: hidden; flex: none; }
.il-half img { position: absolute; top: 0; width: var(--s); height: var(--s); max-width: none; object-fit: contain; }
.il-left img { left: 0; }
.il-right img { right: 0; }
.il-gap { position: relative; width: var(--gap); height: var(--s); flex: none; overflow: hidden; transition: width 0.75s cubic-bezier(0.7, 0, 0.2, 1); }
.intro.open .intro-logo { --gap: calc(var(--s) * 1.5); }
.il-frame { position: absolute; inset: 0 calc(var(--s) * 0.08); border-radius: calc(var(--s) * 0.16); overflow: hidden; background: var(--soft); }
.il-frame img { position: absolute; inset: 0; opacity: 0; }
.il-frame img.on { opacity: 1; }
.il-words { position: absolute; left: 0; right: 0; top: calc(50% + clamp(84px, 13vmin, 150px) / 2 + 22px); height: 1.4em; text-align: center; font-size: 15px; color: var(--muted); opacity: 0; transition: opacity 0.4s; }
.intro.open .il-words { opacity: 1; }
.il-words span { position: absolute; left: 0; right: 0; opacity: 0; transform: translateY(4px); transition: opacity 0.12s, transform 0.2s; }
.il-words span.on { opacity: 1; transform: none; }
.intro-count { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); transition: opacity 0.4s; }
.intro-skip { position: absolute; right: var(--g); bottom: 22px; padding: 9px 18px; border: 0; border-radius: 999px; background: var(--soft); color: var(--fg); font-size: 13px; cursor: pointer; transition: opacity 0.4s; }
.intro.reveal-page .intro-count, .intro.reveal-page .intro-skip, .intro.reveal-page .il-words { opacity: 0; }
.intro.landed { opacity: 0; transition: opacity 0.3s; }

.intro-lock [data-brand-mark] { opacity: 0; }
[data-brand-mark] { transition: opacity 0.2s; }

.il-frame { opacity: 0; transition: opacity 0.25s; }
.intro.open .il-frame { opacity: 1; transition-delay: 0.15s; }

/* merged 360 + scroll list */
.ext .focus { padding: 0; margin-top: clamp(40px, 5vw, 80px); }
.ext .focus-list { padding: 12vh 0 34vh; }
.ext-head { margin-bottom: 0; }

.page-intro > .btn { justify-self: start; }
