:root {
  --night: #151612;
  --night-soft: #1d1e19;
  --ink: #24251f;
  --paper: #f1ece2;
  --paper-deep: #e4dbcd;
  --olive: #777b37;
  --olive-dark: #5c6029;
  --sage: #b7b98b;
  --white: #fffdf8;
  --muted-light: rgba(255, 253, 248, 0.67);
  --muted-dark: #69685e;
  --line-light: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(36, 37, 31, 0.14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
  font-family: var(--sans);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
}

h2 {
  margin-bottom: 0;
  font-size: 66px;
  line-height: 0.98;
}

:focus-visible {
  outline: 3px solid #c6c98b;
  outline-offset: 3px;
}

.section-shell {
  width: min(1380px, calc(100% - 72px));
  margin: 0 auto;
}

.section-dark {
  color: var(--white);
  background: var(--night);
}

.overline {
  margin-bottom: 16px;
  color: var(--olive);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-dark .overline {
  color: #b8ba77;
}

.section-heading {
  margin-bottom: 46px;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted-dark);
  font-size: 17px;
  line-height: 1.65;
}

.section-dark .section-heading > p:last-child {
  color: var(--muted-light);
}

.heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: end;
  gap: 64px;
}

.centered {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 750;
  line-height: 1;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-accent {
  color: var(--white);
  background: var(--olive);
}

.button-accent:hover {
  background: var(--olive-dark);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
  background: rgba(15, 16, 13, 0.24);
  backdrop-filter: blur(14px);
}

.button-dark {
  color: var(--white);
  background: var(--night);
}

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  font-size: 20px;
}

/* Header */
.topbar {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  width: min(1420px, calc(100% - 36px));
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 10px 12px 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--white);
  background: rgba(18, 18, 15, 0.67);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.19);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.logo {
  font-size: 19px;
  font-weight: 800;
}

.logo span {
  color: #c7c98a;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 36px;
  font-size: 14px;
}

.desktop-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.76);
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: #c7c98a;
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 180ms ease, transform 180ms ease;
}

.desktop-nav a:hover {
  color: var(--white);
}

.desktop-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 0 18px;
  border-radius: 4px;
  color: var(--white);
  background: var(--olive);
  font-size: 13px;
  font-weight: 750;
}

.menu-button,
.mobile-menu {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 760px;
  height: 100svh;
  max-height: 1020px;
  overflow: hidden;
  color: var(--white);
  background: #11120f;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  transform: scale(1.01);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 13, 10, 0.9) 0%, rgba(15, 13, 10, 0.63) 42%, rgba(15, 13, 10, 0.13) 78%),
    linear-gradient(0deg, rgba(12, 11, 9, 0.63), transparent 47%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 110px));
  margin-left: max(74px, calc((100% - 1380px) / 2 + 64px));
  padding-top: 23vh;
}

.hero-content h1 {
  max-width: 650px;
  margin-bottom: 28px;
  font-size: 88px;
  line-height: 0.91;
}

.hero-lead {
  max-width: 500px;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-rail {
  position: absolute;
  z-index: 2;
  top: 33%;
  left: 30px;
  display: grid;
  gap: 20px;
}

.hero-rail::before {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 4px;
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
  content: "";
}

.hero-rail i {
  position: relative;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(13, 13, 11, 0.76);
}

.hero-rail i:first-child {
  border-color: #d1d38c;
  background: var(--olive);
  box-shadow: 0 0 0 4px rgba(199, 201, 138, 0.18);
}

.hero-tour {
  position: absolute;
  z-index: 2;
  top: 37%;
  right: max(42px, calc((100% - 1380px) / 2));
  min-width: 300px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 9px 18px 9px 9px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(55, 48, 40, 0.55);
  backdrop-filter: blur(16px);
}

.hero-tour span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.hero-tour small {
  color: rgba(255, 255, 255, 0.64);
}

.tour-play {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--olive-dark);
  background: var(--paper);
  font-size: 14px;
}

.hero-facts {
  position: absolute;
  z-index: 2;
  right: max(42px, calc((100% - 1380px) / 2));
  bottom: 42px;
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-facts span {
  width: 170px;
  display: grid;
  gap: 5px;
  padding: 18px 18px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.hero-facts strong {
  color: var(--white);
  font-size: 17px;
}

.scroll-link {
  position: absolute;
  z-index: 2;
  bottom: 43px;
  left: max(74px, calc((100% - 1380px) / 2 + 64px));
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

/* Portfolio */
.portfolio {
  padding: 118px 0 126px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-tabs button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  background: #282923;
}

.filter-tabs button.is-active {
  color: var(--night);
  background: #b2b568;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 138px;
  gap: 14px;
}

.project-card,
.compare-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: #20211c;
  transition: opacity 200ms ease, transform 200ms ease;
}

.project-card[hidden],
.compare-card[hidden] {
  display: none;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.project-card:hover img {
  transform: scale(1.025);
}

.project-card::after {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(0deg, rgba(11, 12, 10, 0.9), transparent);
  content: "";
}

.project-caption {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 20px;
  left: 22px;
}

.project-caption span {
  color: #c6c88b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-caption h3 {
  margin: 8px 0 3px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
}

.project-caption p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.project-wide {
  grid-column: span 5;
  grid-row: span 3;
}

.project-tall {
  grid-column: span 4;
  grid-row: span 5;
}

.project-small {
  grid-column: span 3;
  grid-row: span 2;
}

.project-low {
  grid-column: span 5;
  grid-row: span 2;
}

.project-card[data-project-style="modern"] img {
  object-position: center 56%;
}

.project-card[data-project-style="classic"] img {
  object-position: 55% center;
}

.project-card[data-project-style="minimal"] img {
  object-position: center 62%;
}

.project-card[data-project-style="japandi"] img {
  object-position: center 58%;
}

.project-card[data-project-style="loft"] img {
  object-position: center 44%;
}

.compare-card {
  grid-column: span 5;
  grid-row: span 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.compare-stage {
  position: relative;
  min-height: 190px;
  overflow: hidden;
}

.compare-stage > img,
.compare-after,
.compare-after img {
  width: 100%;
  height: 100%;
}

.compare-stage img {
  object-fit: cover;
  object-position: center;
}

.compare-before {
  position: absolute;
  inset: 0;
}

.compare-after {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 0 0 50%);
}

.compare-after img {
  width: 100%;
}

.compare-range {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.compare-handle {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--night);
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  transform: translate(-50%, -50%);
}

.compare-handle::before {
  position: absolute;
  top: -100vh;
  bottom: -100vh;
  left: 50%;
  width: 2px;
  background: var(--paper);
  content: "";
  transform: translateX(-50%);
}

.compare-label {
  position: absolute;
  z-index: 3;
  bottom: 12px;
  padding: 6px 9px;
  border-radius: 3px;
  color: var(--white);
  background: rgba(15, 15, 13, 0.65);
  font-size: 11px;
}

.before-label {
  left: 12px;
}

.after-label {
  right: 12px;
}

.compare-copy {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.compare-copy span {
  color: #bfc17e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compare-copy h3 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

.compare-copy > strong {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

/* Packages */
.packages {
  padding: 118px 0;
  background: var(--paper);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.package-card {
  position: relative;
  min-height: 590px;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.35);
}

.package-card.featured {
  border-color: var(--olive);
  color: var(--white);
  background: var(--night);
  transform: translateY(-12px);
}

.package-card.is-selected {
  box-shadow: 0 22px 60px rgba(71, 73, 38, 0.2);
}

.package-mark {
  margin: -32px -32px 26px;
  padding: 10px 32px;
  border-radius: 7px 7px 0 0;
  color: var(--white);
  background: var(--olive);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.package-card header > span {
  color: var(--olive);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.package-card.featured header > span {
  color: #c5c786;
}

.package-card h3 {
  margin: 14px 0 10px;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
}

.package-card header p {
  min-height: 52px;
  margin-bottom: 22px;
  color: var(--muted-dark);
  line-height: 1.55;
}

.package-card.featured header p {
  color: var(--muted-light);
}

.package-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
  padding: 20px 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.package-price small {
  color: var(--muted-dark);
}

.featured .package-price small {
  color: var(--muted-light);
}

.package-price strong {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
}

.package-card ul {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.package-card li {
  position: relative;
  padding-left: 26px;
  color: var(--muted-dark);
  line-height: 1.35;
}

.package-card.featured li {
  color: rgba(255, 255, 255, 0.77);
}

.package-card li::before {
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--olive);
  content: "✓";
  font-weight: 800;
}

.package-select {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 4px;
  background: transparent;
  font-weight: 750;
}

.package-card.is-selected .package-select {
  border-color: var(--olive);
  color: var(--white);
  background: var(--olive);
}

.package-note {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 22px;
  padding: 22px 28px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
}

.package-note > div {
  display: grid;
  gap: 7px;
}

.package-note strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

.package-note span {
  color: var(--muted-dark);
}

/* Quiz */
.quiz {
  padding: 118px 0;
}

.quiz-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.68fr) minmax(0, 1.32fr);
  gap: 72px;
  align-items: start;
}

.quiz-intro {
  position: sticky;
  top: 112px;
}

.quiz-intro h2 {
  margin-bottom: 24px;
}

.quiz-intro > p:not(.overline) {
  max-width: 480px;
  color: var(--muted-light);
  font-size: 17px;
  line-height: 1.65;
}

.quiz-summary {
  display: grid;
  gap: 8px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line-light);
}

.quiz-summary span {
  color: var(--muted-light);
  font-size: 12px;
}

.quiz-summary strong {
  color: #c9cb8d;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
}

.quiz-panel {
  min-height: 620px;
  padding: 30px;
  border: 1px solid var(--line-light);
  border-radius: 7px;
  background: var(--night-soft);
}

.quiz-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 12px;
}

.progress-track {
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.progress-track i {
  width: 20%;
  height: 100%;
  display: block;
  background: #b7b971;
  transition: width 260ms ease;
}

.quiz-content {
  min-height: 454px;
  padding-top: 38px;
}

.quiz-question h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
}

.quiz-question > p {
  margin-bottom: 28px;
  color: var(--muted-light);
}

.visual-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.visual-option,
.text-option {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: 5px;
  color: var(--white);
  background: #282923;
  text-align: left;
}

.visual-option {
  aspect-ratio: 0.82;
}

.visual-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-option span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 62px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(0deg, rgba(11, 12, 10, 0.92), transparent);
  font-weight: 750;
}

.visual-option.is-selected,
.text-option.is-selected {
  border-color: #d3d590;
  box-shadow: inset 0 0 0 2px #d3d590;
}

.visual-option.is-selected::after,
.text-option.is-selected::after {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--night);
  background: #d3d590;
  content: "✓";
  font-weight: 900;
}

.text-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.text-option {
  min-height: 92px;
  padding: 18px 50px 18px 18px;
}

.text-option strong {
  display: block;
  margin-bottom: 7px;
}

.text-option small {
  color: var(--muted-light);
  line-height: 1.4;
}

.quiz-result {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: center;
}

.quiz-result h3 {
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
}

.quiz-result p {
  color: var(--muted-light);
  line-height: 1.65;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.result-tags span {
  padding: 8px 10px;
  border: 1px solid var(--line-light);
  border-radius: 3px;
  color: #cfd19a;
  font-size: 12px;
}

.quiz-result img {
  width: 220px;
  aspect-ratio: 0.78;
  object-fit: cover;
  border-radius: 5px;
}

.quiz-controls {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}

.quiz-controls .icon-button {
  color: rgba(255, 255, 255, 0.68);
}

.quiz-controls .icon-button:disabled {
  opacity: 0.28;
  cursor: default;
}

/* Supervision */
.supervision {
  padding: 118px 0;
  background: var(--paper-deep);
}

.supervision-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.timeline-panel {
  grid-row: span 2;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: 620px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.44);
}

.timeline-tabs {
  padding: 18px 0;
  border-right: 1px solid var(--line-dark);
}

.timeline-tabs button {
  width: 100%;
  min-height: 92px;
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  text-align: left;
}

.timeline-tabs button.is-active {
  border-left-color: var(--olive);
  background: rgba(119, 123, 55, 0.09);
}

.timeline-tabs span {
  font-weight: 750;
}

.timeline-tabs small {
  color: var(--muted-dark);
}

.stage-detail {
  padding: 38px;
}

.stage-detail > span {
  color: var(--olive);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stage-detail h3 {
  max-width: 540px;
  margin: 14px 0 18px;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
}

.stage-detail > p {
  max-width: 600px;
  color: var(--muted-dark);
  line-height: 1.65;
}

.stage-checklist {
  display: grid;
  gap: 10px;
  margin: 30px 0;
}

.stage-checklist label {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
}

.stage-checklist input {
  width: 18px;
  height: 18px;
  accent-color: var(--olive);
}

.stage-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stage-meta div {
  padding: 16px;
  border-top: 1px solid var(--line-dark);
}

.stage-meta small,
.stage-meta strong {
  display: block;
}

.stage-meta small {
  margin-bottom: 6px;
  color: var(--muted-dark);
}

.report-panel,
.calendar-panel {
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.5);
}

.report-panel {
  padding: 22px;
}

.report-panel > header,
.calendar-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.report-panel > header div {
  display: grid;
  gap: 5px;
}

.report-panel > header span {
  color: var(--muted-dark);
  font-size: 12px;
}

.report-media {
  position: relative;
  height: 180px;
  margin: 18px 0;
  overflow: hidden;
  border-radius: 5px;
}

.report-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.report-media span {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 7px 10px;
  border-radius: 3px;
  color: var(--white);
  background: rgba(19, 20, 17, 0.78);
  font-size: 11px;
}

.report-panel ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-panel li {
  position: relative;
  padding-left: 20px;
  color: var(--muted-dark);
  font-size: 13px;
}

.report-panel li::before {
  position: absolute;
  left: 0;
  color: var(--olive);
  content: "✓";
  font-weight: 800;
}

.calendar-panel {
  padding: 20px;
}

.calendar-panel .icon-button {
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-weekdays {
  margin: 18px 0 8px;
  color: var(--muted-dark);
  font-size: 10px;
  text-align: center;
}

.calendar-days button,
.calendar-days span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 12px;
}

.calendar-days button.has-report {
  color: var(--olive-dark);
  background: rgba(119, 123, 55, 0.12);
  font-weight: 800;
}

.calendar-days button.is-selected {
  color: var(--white);
  background: var(--olive);
}

.calendar-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  color: var(--muted-dark);
  font-size: 11px;
}

.calendar-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(119, 123, 55, 0.34);
}

/* Brief */
.brief {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
}

.brief-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.brief-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 18, 15, 0.96) 0%, rgba(18, 18, 15, 0.87) 48%, rgba(18, 18, 15, 0.58)),
    linear-gradient(0deg, rgba(18, 18, 15, 0.55), transparent);
}

.brief-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(300px, 0.68fr) minmax(0, 1.32fr);
  align-items: start;
  gap: 80px;
}

.brief-copy {
  position: sticky;
  top: 110px;
}

.brief-copy h2 {
  margin-bottom: 24px;
}

.brief-copy > p:not(.overline) {
  color: var(--muted-light);
  font-size: 17px;
  line-height: 1.65;
}

.brief-facts {
  display: grid;
  gap: 17px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}

.brief-facts span {
  display: grid;
  gap: 4px;
  color: var(--muted-light);
  font-size: 13px;
}

.brief-facts strong {
  color: var(--white);
}

.brief-form {
  padding: 30px;
  border: 1px solid var(--line-light);
  border-radius: 7px;
  background: rgba(24, 25, 21, 0.84);
  backdrop-filter: blur(18px);
}

.form-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span,
.services-field legend {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  outline: 0;
}

.field textarea {
  min-height: 106px;
  padding-top: 13px;
  resize: vertical;
}

.field select {
  color-scheme: dark;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #c7c98a;
}

.field .is-invalid {
  border-color: #d68370;
}

.field small,
.consent-error {
  min-height: 15px;
  color: #eca18e;
  font-size: 11px;
}

.field-wide {
  margin-top: 14px;
}

.services-field {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.services-field legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.services-field label {
  position: relative;
  min-height: 50px;
}

.services-field input {
  position: absolute;
  opacity: 0;
}

.services-field span {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  text-align: center;
}

.services-field input:checked + span {
  border-color: #bfc17d;
  color: var(--white);
  background: rgba(119, 123, 55, 0.28);
}

.upload-field {
  min-height: 100px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  cursor: pointer;
}

.upload-field.is-dragging {
  border-color: #d1d38c;
  background: rgba(119, 123, 55, 0.16);
}

.upload-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--night);
  background: #c5c78a;
  font-size: 22px;
}

.upload-field > span:nth-of-type(2) {
  display: grid;
  gap: 5px;
}

.upload-field small {
  color: var(--muted-light);
}

.upload-field button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  font-size: 20px;
}

.consent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 12px;
}

.consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--olive);
}

.form-submit {
  width: 100%;
  margin-top: 16px;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-note {
  min-height: 22px;
  margin-top: 12px;
  color: #d3d59b;
  font-size: 13px;
  text-align: center;
}

.form-note.is-error {
  color: #eca18e;
}

/* Footer and toast */
.footer {
  min-height: 110px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 24px max(36px, calc((100% - 1380px) / 2));
  color: var(--white);
  background: #10110e;
}

.footer p {
  margin: 0;
  color: var(--muted-light);
  text-align: center;
}

.footer > div {
  display: grid;
  gap: 4px;
  text-align: right;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  color: var(--white);
  background: #26271f;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  h2 {
    font-size: 54px;
  }

  .desktop-nav {
    gap: 18px;
  }

  .hero-content h1 {
    font-size: 72px;
  }

  .hero-tour {
    top: auto;
    right: 36px;
    bottom: 150px;
  }

  .portfolio-grid {
    grid-auto-rows: 122px;
  }

  .project-wide,
  .project-low,
  .compare-card {
    grid-column: span 6;
  }

  .project-tall {
    grid-column: span 6;
    grid-row: span 4;
  }

  .project-small {
    grid-column: span 3;
  }

  .quiz-shell,
  .brief-shell {
    gap: 42px;
  }

  .supervision-layout {
    grid-template-columns: 1fr;
  }

  .timeline-panel {
    grid-row: auto;
  }

  .report-panel,
  .calendar-panel {
    min-height: 0;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 78px;
  }

  h2 {
    font-size: 46px;
  }

  .section-shell {
    width: min(100% - 36px, 720px);
  }

  .topbar {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 58px;
    grid-template-columns: 1fr auto;
    padding: 8px 9px 8px 15px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--paper);
  }

  .menu-button span {
    width: 18px;
    height: 2px;
    display: block;
    background: var(--night);
    transition: transform 180ms ease;
  }

  .menu-button[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .mobile-menu {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;
    background: rgba(18, 18, 15, 0.97);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-menu a {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .hero {
    min-height: 720px;
    height: 100svh;
  }

  .hero-image {
    object-position: 61% center;
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 auto;
    padding-top: 150px;
  }

  .hero-content h1 {
    max-width: 560px;
    font-size: 64px;
  }

  .hero-rail {
    display: none;
  }

  .hero-tour {
    right: 18px;
    bottom: 104px;
    left: 18px;
    min-width: 0;
  }

  .hero-facts {
    display: none;
  }

  .scroll-link {
    display: none;
  }

  .heading-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .portfolio,
  .packages,
  .quiz,
  .supervision,
  .brief {
    padding: 88px 0;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 210px;
  }

  .project-wide,
  .project-tall,
  .project-small,
  .project-low,
  .compare-card {
    grid-column: span 1;
    grid-row: span 2;
  }

  .compare-card,
  .project-low {
    grid-column: span 2;
    grid-row: span 2;
  }

  .package-grid {
    grid-template-columns: 1fr;
  }

  .package-card {
    min-height: 0;
  }

  .package-card.featured {
    transform: none;
  }

  .quiz-shell,
  .brief-shell {
    grid-template-columns: 1fr;
  }

  .quiz-intro,
  .brief-copy {
    position: static;
  }

  .timeline-panel {
    grid-template-columns: 1fr;
  }

  .timeline-tabs {
    display: flex;
    overflow-x: auto;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .timeline-tabs button {
    min-width: 150px;
    min-height: 78px;
    border-bottom: 3px solid transparent;
    border-left: 0;
  }

  .timeline-tabs button.is-active {
    border-bottom-color: var(--olive);
    border-left: 0;
  }

  .footer {
    grid-template-columns: 1fr;
    padding: 34px 18px;
    text-align: center;
  }

  .footer > div {
    text-align: center;
  }
}

@media (max-width: 560px) {
  h2 {
    font-size: 40px;
  }

  .hero {
    min-height: 730px;
  }

  .hero-image {
    object-position: 66% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(15, 13, 10, 0.86), rgba(15, 13, 10, 0.28)),
      linear-gradient(0deg, rgba(12, 11, 9, 0.8), transparent 65%);
  }

  .hero-content {
    padding-top: 128px;
  }

  .hero-content h1 {
    margin-bottom: 20px;
    font-size: 50px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-tour {
    grid-template-columns: 48px 1fr auto;
    bottom: 28px;
  }

  .tour-play {
    width: 48px;
    height: 48px;
  }

  .filter-tabs {
    flex-wrap: nowrap;
    margin-right: -18px;
    margin-left: -18px;
    padding: 0 18px 6px;
    overflow-x: auto;
  }

  .filter-tabs button {
    flex: 0 0 auto;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 215px;
  }

  .project-wide,
  .project-tall,
  .project-small,
  .project-low,
  .compare-card {
    grid-column: span 1;
    grid-row: span 2;
  }

  .compare-card {
    grid-row: span 2;
  }

  .package-card,
  .quiz-panel,
  .brief-form {
    padding: 22px;
  }

  .package-mark {
    margin: -22px -22px 22px;
    padding-right: 22px;
    padding-left: 22px;
  }

  .package-note {
    align-items: stretch;
    flex-direction: column;
  }

  .visual-options,
  .text-options {
    grid-template-columns: 1fr;
  }

  .visual-option {
    aspect-ratio: 1.45;
  }

  .quiz-content {
    min-height: 500px;
  }

  .quiz-result {
    grid-template-columns: 1fr;
  }

  .quiz-result img {
    width: 100%;
    aspect-ratio: 1.7;
  }

  .timeline-panel {
    min-height: 0;
  }

  .stage-detail {
    padding: 24px;
  }

  .stage-detail h3 {
    font-size: 34px;
  }

  .stage-meta {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-field {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upload-field {
    grid-template-columns: 40px 1fr auto;
  }

  .upload-icon {
    width: 40px;
    height: 40px;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
