:root {
  --bg: #171816;
  --surface: #22231f;
  --text: #f3f0e9;
  --muted: #b8b9b0;
  --accent: #b49a78;
  --line: #3c4037;
  --pad: clamp(20px, 4vw, 64px);
  --header-height: 110px;
  color-scheme: dark;
  font-family: "Manrope", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(390px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 32px;
  padding: 16px var(--pad);
  border-bottom: 1px solid rgba(243, 240, 233, 0.12);
  background: linear-gradient(180deg, rgba(23, 24, 22, .9), rgba(23, 24, 22, .18));
  backdrop-filter: blur(14px);
}

.brand { display: block; }
.brand-lockup { display: flex; align-items: center; gap: 18px; width: max-content; max-width: 100%; }
.brand-lockup img { display: block; width: 124px; flex: 0 0 124px; filter: invert(1); }
.brand-lockup span { display: grid; gap: 4px; min-width: 0; line-height: 1.2; }
.brand-lockup strong { font-size: 15px; font-weight: 500; letter-spacing: .04em; }
.brand-lockup small { color: var(--muted); font-size: 10px; line-height: 1.45; letter-spacing: .025em; }
.site-nav { display: flex; gap: clamp(20px, 3vw, 48px); font-size: 14px; color: var(--muted); }
.site-nav a { position: relative; padding: 10px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: 3px; width: 0; height: 1px; background: var(--accent); transition: width .22s ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { width: 100%; }

.text-button {
  justify-self: end;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--accent);
  padding: 8px 0;
  cursor: pointer;
}

.hero-scroll { min-height: 100svh; position: relative; }
.hero-sticky { position: relative; min-height: 100svh; overflow: hidden; background: radial-gradient(circle at 55% 45%, #272922 0, var(--bg) 58%); }
.hero-copy { position: absolute; z-index: 20; left: var(--pad); top: 50%; width: min(36vw, 570px); transform: translateY(-45%); }
.hero-meta { display: flex; align-items: center; gap: 18px; width: min(100%, 500px); margin-bottom: 38px; font-size: 14px; color: var(--muted); letter-spacing: .08em; }
.meta-line { height: 1px; flex: 1; background: var(--line); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(48px, 5.5vw, 86px); line-height: .98; font-weight: 300; letter-spacing: -.045em; text-transform: uppercase; }
.hero-lead { width: min(100%, 430px); margin-bottom: 24px; color: var(--muted); font-size: clamp(18px, 1.45vw, 24px); line-height: 1.45; }
.hero-philosophy { margin-bottom: 36px; color: var(--accent); font-size: 13px; letter-spacing: .28em; text-transform: uppercase; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.primary-button {
  min-height: 48px;
  padding: 14px 24px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.primary-button:hover { background: var(--text); transform: translateY(-2px); }
.primary-button.large { min-height: 58px; padding-inline: 34px; }
.arrow-link { color: var(--muted); font-size: 15px; }
.arrow-link span { display: inline-block; margin-left: 10px; transition: transform .2s ease; }
.arrow-link:hover span { transform: translate(4px, 4px); }

.hero-media { position: absolute; z-index: 5; inset: 0 -6vw 0 34vw; transform-origin: 60% 50%; }
.hero-image, .hero-aura { position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover; object-position: center; clip-path: polygon(27% 0, 100% 0, 76% 100%, 0 100%); }
.hero-image { transform: scale(1.035); transform-origin: 50% 55%; mask-image: linear-gradient(103deg, transparent 0%, #000 4.5%, #000 95.5%, transparent 100%); -webkit-mask-image: linear-gradient(103deg, transparent 0%, #000 4.5%, #000 95.5%, transparent 100%); }
.hero-aura { transform: scale(1.03); filter: blur(28px) saturate(.9); opacity: .55; }
.hero-transition-blur { display: none; }

.orbit { position: absolute; z-index: 12; pointer-events: none; border: 1px solid rgba(180, 154, 120, .42); border-radius: 50%; }
.orbit-one { width: 66vw; height: 66vw; left: 34vw; top: -18vw; }
.orbit-two { width: 54vw; height: 54vw; left: 40vw; bottom: -37vw; }

.projects-scroll { position: relative; min-height: 100svh; background: #11120f; }
.projects-sticky { position: relative; min-height: 100svh; overflow: hidden; padding: 168px 0 44px; }
.section-heading { position: relative; z-index: 5; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; padding: 0 var(--pad) 26px; }
.section-heading h2 { margin: 8px 0 0; font-size: clamp(36px, 4vw, 64px); line-height: 1; font-weight: 300; letter-spacing: -.035em; }
.section-heading p { justify-self: end; max-width: 470px; margin-bottom: 2px; color: var(--muted); line-height: 1.6; }
.eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .24em; }
.project-viewport { width: 100%; overflow: hidden; touch-action: pan-y; }
.project-track { display: flex; align-items: stretch; gap: 22px; width: max-content; padding: 0 var(--pad); will-change: transform; transition: transform .72s cubic-bezier(.22,.72,.2,1); }
.project-card { position: relative; width: min(58vw, 880px); height: min(53vh, 580px); flex: 0 0 auto; overflow: hidden; background: var(--surface); }
.project-card:nth-child(3n + 2) { clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%); }
.project-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.project-card:hover img { transform: scale(1.025); }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(8,9,8,.8)); }
.project-caption { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 24px; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.project-card:nth-child(3n + 2) .project-caption { left: 9%; right: 9%; }
.project-caption h3 { max-width: 72%; margin: 0; font-size: clamp(22px, 2vw, 32px); line-height: 1.08; font-weight: 400; }
.project-caption span { max-width: 36%; color: var(--muted); font-size: 13px; line-height: 1.35; text-align: right; overflow-wrap: anywhere; }
.project-controls { display: flex; align-items: center; gap: 14px; padding: 20px var(--pad); }
.circle-button { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
.project-dots { display: flex; flex: 1; align-items: center; gap: 6px; min-width: 0; }
.project-dots button { flex: 1; min-width: 5px; height: 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: transparent; cursor: pointer; }
.project-dots button.active { border-color: var(--accent); border-bottom-width: 2px; }

.process-scroll { position: relative; min-height: 100svh; padding-top: var(--header-height); background: var(--bg); scroll-margin-top: var(--header-height); }
.process-sticky { position: relative; min-height: calc(100svh - var(--header-height)); overflow: hidden; padding: 68px var(--pad) 60px; }
.process-media { position: absolute; inset: 0 -8vw 0 39%; width: 69vw; height: 100%; overflow: hidden; clip-path: polygon(22% 0, 100% 0, 77% 100%, 0 100%); mask-image: linear-gradient(103deg, transparent 0%, #000 6%, #000 94%, transparent 100%); -webkit-mask-image: linear-gradient(103deg, transparent 0%, #000 6%, #000 94%, transparent 100%); }
.process-image { position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover; opacity: 0; filter: blur(10px) brightness(.52) saturate(.72); transform: rotate(1.5deg) scale(1.08); transition: opacity .55s ease, filter .55s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.process-image.active { opacity: 1; filter: blur(0) brightness(.6) saturate(.8); transform: rotate(0) scale(1.03); }
.process-blur { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0 38%, transparent 60%), radial-gradient(circle at 73% 50%, rgba(180,154,120,.13), transparent 42%); pointer-events: none; }
.process-heading { position: relative; z-index: 2; width: min(48vw, 700px); }
.process-heading h2 { margin: 18px 0 0; font-size: clamp(42px, 5vw, 78px); line-height: 1; font-weight: 300; letter-spacing: -.045em; }
.process-line { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: 315px; height: 1px; background: var(--line); }
.process-line span { display: block; width: 0; height: 100%; background: var(--accent); box-shadow: 0 0 20px rgba(180,154,120,.55); }
.process-steps { position: absolute; z-index: 4; left: var(--pad); right: var(--pad); bottom: 98px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process-step { position: relative; min-height: 170px; padding-top: 24px; border-top: 1px solid var(--line); opacity: .28; transform: translateY(18px); cursor: pointer; transition: opacity .35s ease, transform .35s ease, border-color .35s ease; }
.process-step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: background .35s ease, box-shadow .35s ease; }
.process-step.active { opacity: 1; transform: none; border-color: var(--accent); }
.process-step.active::before { background: var(--accent); box-shadow: 0 0 18px rgba(180,154,120,.75); }
.process-step > span { color: var(--accent); font-size: 12px; }
.process-step h3 { margin: 16px 0 12px; font-size: clamp(20px, 1.7vw, 28px); font-weight: 400; }
.process-step p { max-width: 300px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.process-actions { position: absolute; z-index: 6; left: var(--pad); bottom: 34px; display: flex; gap: 22px; }
.process-actions button { padding: 7px 0; border: 0; border-bottom: 1px solid var(--accent); background: transparent; color: var(--text); cursor: pointer; }
.process-actions button:disabled { opacity: .25; cursor: default; }
.process-rail { position: absolute; z-index: 7; right: 24px; top: 50%; display: grid; gap: 12px; transform: translateY(-50%); }
.process-rail::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 1px; background: var(--line); transform: translateX(-50%); }
.process-rail button { position: relative; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: #777a72; cursor: pointer; font-size: 10px; transition: border-color .25s ease, color .25s ease, background .25s ease; }
.process-rail button.active { border-color: var(--accent); background: var(--accent); color: var(--bg); }

.contacts { position: relative; min-height: 100svh; overflow: hidden; display: flex; align-items: center; padding: 130px var(--pad) 80px; }
.contacts-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) brightness(.62); }
.contacts-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,16,14,.98) 0 42%, rgba(15,16,14,.55) 66%, rgba(15,16,14,.25)); clip-path: polygon(0 0, 72% 0, 54% 100%, 0 100%); }
.contacts-shade::after { content: ""; position: absolute; inset: -3%; background: inherit; filter: blur(24px); opacity: .7; }
.contacts-content { position: relative; z-index: 3; width: min(670px, 54vw); }
.contacts h2 { margin: 18px 0 28px; font-size: clamp(44px, 5.8vw, 88px); line-height: .98; font-weight: 300; letter-spacing: -.05em; }
.contacts p { max-width: 560px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.contact-links { display: flex; flex-wrap: wrap; gap: 20px 28px; margin: 32px 0; font-size: clamp(16px, 1.45vw, 22px); }
.contact-links a { padding-bottom: 7px; border-bottom: 1px solid var(--accent); }
.footer-brand { position: absolute; z-index: 4; right: var(--pad); bottom: 38px; color: var(--text); }
.site-footer { padding: 20px var(--pad); border-top: 1px solid rgba(243, 240, 233, .12); background: #20221f; color: var(--muted); }
.site-footer small { display: block; font-size: 12px; line-height: 1.6; letter-spacing: .01em; }

.order-dialog { width: min(920px, calc(100vw - 32px)); height: min(790px, calc(100svh - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 0; background: var(--bg); color: var(--text); overflow: hidden; }
.order-dialog::backdrop { background: rgba(7,8,7,.78); backdrop-filter: blur(16px); }
.order-frame { display: block; width: 100%; height: calc(100% - 42px); border: 0; background: #181a17; }
.order-dialog .order-close { position: absolute; z-index: 2; top: 17px; right: 17px; background: #181a17; }
.order-fallback { display: block; height: 42px; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }
.order-form { padding: clamp(24px, 5vw, 64px); }
.form-topline { display: flex; justify-content: space-between; align-items: center; color: var(--accent); font-size: 12px; letter-spacing: .2em; }
.close-button { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; font-size: 28px; font-weight: 300; }
.order-form h2 { margin: 34px 0 42px; font-size: clamp(38px, 5vw, 66px); line-height: 1; font-weight: 300; letter-spacing: -.04em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-grid label { display: grid; gap: 9px; color: var(--muted); font-size: 13px; }
.form-wide { grid-column: 1 / -1; }
input, textarea { width: 100%; border: 0; border-bottom: 1px solid #7f8278; border-radius: 0; outline: 0; background: transparent; color: var(--text); padding: 10px 0 12px; }
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 2px 0 -1px var(--accent); }
.file-field input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.form-honey { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.file-button { width: max-content; padding: 11px 16px; border: 1px solid var(--line); color: var(--text); cursor: pointer; }
.file-list { color: #8e9188; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 34px; }
.form-footer p { margin: 0; color: var(--muted); font-size: 13px; }
.form-footer button:disabled { opacity: .55; cursor: wait; transform: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; gap: 20px; }
  .site-header .brand-lockup img { width: 92px; flex-basis: 92px; }
  .site-header .brand-lockup { gap: 12px; }
  .site-header .brand-lockup strong { font-size: 13px; }
  .site-header .brand-lockup small { font-size: 9px; }
  .site-nav { display: none; }
  .hero-copy { top: auto; bottom: 92px; width: calc(100% - 40px); transform: none; }
  .hero-copy h1 { font-size: clamp(42px, 12vw, 64px); }
  .hero-media { inset: 0 -45vw 28% -5vw; opacity: .68; }
  .hero-image, .hero-aura { clip-path: polygon(15% 0, 100% 0, 78% 100%, 0 100%); }
  .hero-meta, .hero-philosophy { margin-bottom: 16px; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .section-heading p { justify-self: start; max-width: 100%; font-size: 14px; }
  .projects-sticky { min-height: 100svh; padding-top: 128px; }
  .project-card { width: 82vw; height: clamp(390px, 51vh, 540px); }
  .contacts-shade { clip-path: none; background: rgba(15,16,14,.78); }
  .contacts-content { width: 100%; }
  .contact-links { flex-direction: column; align-items: flex-start; }
  .footer-brand { right: auto; left: var(--pad); }
  .form-grid { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .process-sticky { min-height: max(calc(100svh - var(--header-height)), 650px); padding-top: 18px; }
  .process-media { inset: 0 -44vw 42% 25%; width: 120vw; height: 58%; opacity: .58; }
  .process-heading { width: 100%; }
  .process-heading h2 { font-size: clamp(38px, 10vw, 58px); }
  .process-line { display: none; }
  .process-steps { bottom: 78px; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
  .process-step { min-height: 134px; padding-top: 12px; }
  .process-step h3 { margin: 8px 0 5px; font-size: 17px; }
  .process-step p { font-size: 12px; }
  .process-actions { bottom: 24px; }
  .process-rail { right: 10px; }
}

@media (max-width: 540px) {
  .site-header { padding-block: 16px; }
  .site-header .brand-lockup img { width: 82px; flex-basis: 82px; }
  .site-header .brand-lockup span { display: none; }
  .text-button { font-size: 13px; }
  .hero-scroll, .hero-sticky { min-height: 100svh; }
  .hero-sticky { display: flex; flex-direction: column; padding-bottom: max(20px, env(safe-area-inset-bottom)); background: #171816; }
  .hero-sticky::before { display: none; }
  .hero-media { position: relative; order: 1; flex: 1 1 42svh; min-height: 210px; inset: auto; width: 100%; height: auto; opacity: 1; overflow: hidden; }
  .hero-image, .hero-aura { inset: 0; width: 100%; height: 100%; clip-path: none; }
  .hero-image { object-position: 54% 65%; mask-image: none; -webkit-mask-image: none; }
  .hero-aura { display: none; }
  .hero-copy { position: relative; order: 2; left: auto; right: auto; top: auto; bottom: auto; width: 100%; padding: 18px 20px 0; }
  .hero-meta { max-width: 320px; margin-bottom: 14px; font-size: 10px; line-height: 1.45; letter-spacing: .05em; }
  .hero-meta .meta-line { display: none; }
  .hero-copy h1 { max-width: 430px; margin-bottom: 14px; font-size: clamp(35px, 9vw, 44px); line-height: 1.02; }
  .hero-lead { max-width: 340px; margin-bottom: 14px; color: #d5d4cc; font-size: 15px; line-height: 1.45; }
  .hero-philosophy { margin-bottom: 18px; font-size: 10px; letter-spacing: .18em; }
  .hero-actions { gap: 16px; }
  .orbit { opacity: .42; }
  .projects-sticky { padding: 112px 0 28px; }
  .section-heading h2 { font-size: 38px; }
  .section-heading p { line-height: 1.45; }
  .project-card { width: calc(100vw - 40px); height: clamp(360px, 56vh, 520px); }
  .project-controls { gap: 8px; }
  .circle-button { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; }
  .project-dots { gap: 3px; }
  .project-dots button { min-width: 3px; height: 20px; }
  .project-caption { left: 18px; right: 18px; }
  .project-caption { align-items: flex-start; flex-direction: column; gap: 7px; }
  .project-caption h3 { max-width: 100%; }
  .project-card:nth-child(3n + 2) .project-caption { left: 10%; right: 10%; }
  .project-caption span { max-width: 100%; text-align: left; }
  .contacts { padding-top: 100px; }
  .contacts h2 { font-size: 44px; }
  .order-form { padding: 24px 20px; }
  .process-sticky { min-height: max(calc(100svh - var(--header-height)), 650px); padding: 20px 20px 24px; }
  .process-heading h2 { font-size: 38px; }
  .process-media { inset: 0 -64vw 44% 12vw; width: 148vw; height: 56%; }
  .process-steps { grid-template-columns: 1fr; bottom: 148px; }
  .process-step { display: none; min-height: 168px; padding: 18px; border: 1px solid var(--line); background: rgba(23,24,22,.86); backdrop-filter: blur(12px); }
  .process-step.active { display: block; }
  .process-actions { left: 20px; bottom: 88px; }
  .process-rail { top: auto; right: 18px; bottom: 24px; grid-auto-flow: column; transform: none; }
  .process-rail::before { left: 6px; right: 6px; top: 50%; bottom: auto; width: auto; height: 1px; transform: translateY(-50%); }
  .footer-brand { bottom: 24px; }
  .footer-brand img { width: 104px; flex-basis: 104px; }
  .footer-brand small { font-size: 9px; }
  .contacts { padding-bottom: 170px; }
}

@media (max-width: 540px) and (max-height: 620px) {
  .hero-copy { padding-top: 12px; }
  .hero-meta { margin-bottom: 10px; }
  .hero-copy h1 { margin-bottom: 10px; font-size: clamp(32px, 8.5vw, 40px); }
  .hero-lead { margin-bottom: 10px; }
  .hero-philosophy { margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero-image, .hero-aura, .process-image { transform: none !important; }
}
