:root {
  --ink: #24211d;
  --muted: #6f675f;
  --paper: #f7f2eb;
  --warm: #e8ddcf;
  --sage: #50584f;
  --deep: #151411;
  --line: rgba(36, 33, 29, 0.16);
  --white: #fffaf4;
  --intro-bg: linear-gradient(135deg, #111915 0%, #25362b 52%, #0d1210 100%);
  --intro-text: #e7d3a5;
  --logo-gold-filter: invert(79%) sepia(27%) saturate(574%) hue-rotate(3deg) brightness(91%) contrast(91%);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
}

body.page-transition .site-header {
  animation: pageHeaderIn 560ms cubic-bezier(0.2, 0.8, 0.18, 1) both;
}

body.page-transition main {
  animation: pageContentIn 820ms cubic-bezier(0.2, 0.8, 0.18, 1) 80ms both;
  transform-origin: top center;
}

body.page-transition .site-footer {
  animation: pageFooterIn 720ms cubic-bezier(0.2, 0.8, 0.18, 1) 180ms both;
}

.site-intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
  color: var(--intro-text);
  pointer-events: none;
  animation: introOpen 900ms cubic-bezier(0.76, 0, 0.24, 1) 2300ms forwards;
}

.skip-site-intro .site-intro {
  display: none;
}

.site-intro::before,
.site-intro::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 50.2%;
  background: var(--intro-bg);
  animation: introCurtain 950ms cubic-bezier(0.76, 0, 0.24, 1) 2300ms forwards;
}

.site-intro::before {
  left: 0;
  border-right: 1px solid rgba(231, 211, 165, 0.16);
  transform-origin: left center;
}

.site-intro::after {
  right: 0;
  border-left: 1px solid rgba(231, 211, 165, 0.16);
  transform-origin: right center;
}

.site-intro-mark {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 18px;
  overflow: hidden;
  padding: 8px clamp(24px, 6vw, 72px) 18px;
  text-align: center;
  animation: introMarkOut 520ms ease 2050ms forwards;
}

.site-intro-logo {
  width: clamp(118px, 18vw, 218px);
  opacity: 0;
  filter: var(--logo-gold-filter) drop-shadow(0 12px 28px rgba(0, 0, 0, 0.38));
  transform: translateY(18px) scale(0.96);
  animation: introLogoIn 850ms cubic-bezier(0.2, 0.8, 0.18, 1) 120ms forwards;
}

.site-intro-script {
  position: relative;
  display: block;
  clip-path: inset(0 100% 0 0);
  color: var(--intro-text);
  font-size: clamp(13px, 1.6vw, 18px);
  font-weight: 700;
  letter-spacing: 0.42em;
  line-height: 1.1;
  text-transform: uppercase;
  animation: introWrite 1050ms cubic-bezier(0.2, 0.8, 0.18, 1) 780ms forwards;
}

.site-intro-script::after {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 6%;
  right: -12px;
  width: 18px;
  background: linear-gradient(90deg, transparent, rgba(231, 211, 165, 0.42), transparent);
  opacity: 0;
  animation: introPen 1050ms ease 780ms forwards;
}

.site-intro-loading {
  display: grid;
  gap: 10px;
  width: min(220px, 46vw);
  margin-top: 4px;
  opacity: 0;
  color: rgba(217, 199, 165, 0.78);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.34em;
  line-height: 1;
  text-transform: uppercase;
  animation: introLoadingIn 420ms ease 1150ms forwards;
}

.site-intro-loading > span:first-child {
  display: block;
  text-align: center;
}

.site-intro-loading > span:last-child {
  position: relative;
  display: block;
  height: 1px;
  overflow: hidden;
  background: rgba(217, 199, 165, 0.24);
}

.site-intro-loading > span:last-child::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--intro-text);
  transform: scaleX(0);
  transform-origin: left center;
  animation: introLoadingLine 900ms cubic-bezier(0.2, 0.8, 0.18, 1) 1240ms forwards;
}

img,
video {
  display: block;
  width: 100%;
}

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

.site-header {
  position: relative;
  z-index: 20;
  min-height: clamp(96px, 7.4vw, 142px);
  padding: 0 clamp(30px, 3vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: #f4f3f1;
  color: #050505;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: clamp(78px, 6.8vw, 112px);
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(22px, 2.4vw, 42px);
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.site-nav a {
  opacity: 1;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  border-color: currentColor;
}

.site-nav .instagram-link {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
}

.instagram-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.instagram-link circle:last-child {
  fill: currentColor;
  stroke: none;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(5, 5, 5, 0.28);
  background: transparent;
  color: currentColor;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  margin: 6px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: var(--deep);
}

.hero-media,
.hero > img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.2) 34%, rgba(0, 0, 0, 0.68));
}

.home-hero {
  align-items: center;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  min-height: auto;
  padding: 0;
}

.home-hero .hero-media {
  transform: none;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.82) contrast(1.02);
}

.home-hero .hero-overlay {
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 40px));
  margin: 0 clamp(20px, 5vw, 72px) clamp(42px, 8vw, 92px);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.98;
}

h1 {
  max-width: 980px;
  font-size: clamp(56px, 10vw, 142px);
}

h2 {
  font-size: clamp(34px, 5vw, 72px);
}

h3 {
  font-size: clamp(26px, 3vw, 40px);
}

p {
  line-height: 1.7;
}

.hero-content p:not(.eyebrow),
.page-hero p,
.intro p,
.media-copy p {
  max-width: 680px;
  font-size: clamp(16px, 1.4vw, 20px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button.light {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.button.ghost-light {
  color: var(--white);
}

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

.button:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
}

.button.dark:disabled:hover,
.button.dark[aria-disabled="true"]:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.section,
.page,
.intro,
.media-feature,
.video-band,
.gallery,
.service-grid {
  padding: clamp(56px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.band.warm {
  background: var(--warm);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: start;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 32px;
}

.home-portfolio .section-heading h2 {
  font-family: "Great Vibes", cursive;
  font-size: clamp(64px, 6vw, 78px);
  font-weight: 400;
  line-height: 1;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 34px);
}

.project-grid.large {
  padding: 0 clamp(20px, 5vw, 72px) clamp(64px, 8vw, 110px);
}

.project-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--deep);
  color: var(--white);
}

.project-card img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  transition: transform 700ms ease;
}

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

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

.project-card.is-visible img {
  animation: cardImageSettle 1200ms cubic-bezier(0.2, 0.8, 0.18, 1) both;
}

.project-card div {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
}

.project-card p,
.project-card span {
  margin: 0;
  color: rgba(255, 250, 244, 0.78);
}

.project-card span {
  display: block;
  max-width: 620px;
  margin-top: 12px;
  line-height: 1.55;
}

.media-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  background: var(--sage);
  color: var(--white);
}

.media-feature.reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  background: var(--warm);
  color: var(--ink);
}

.media-feature img,
.media-feature video {
  max-height: 760px;
  object-fit: cover;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 850ms ease, transform 850ms cubic-bezier(0.2, 0.8, 0.18, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-group] [data-reveal]:nth-child(2) {
  transition-delay: 120ms;
}

.project-grid [data-reveal]:nth-child(2n) {
  transition-delay: 120ms;
}

.project-grid [data-reveal]:nth-child(3n) {
  transition-delay: 210ms;
}

.page {
  padding-top: 132px;
}

.portfolio-template {
  background: #f4f3f1;
  color: #050505;
}

.portfolio-page {
  padding: 10rem clamp(22px, 2.7vw, 58px) clamp(72px, 8vw, 128px);
}

.portfolio-intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(320px, 0.88fr);
  gap: clamp(44px, 9vw, 150px);
  align-items: center;
  max-width: 1350px;
  margin: 0 auto 6rem;
}

.portfolio-intro h1 {
  justify-self: center;
  color: #050505;
  font-family: "Great Vibes", cursive;
  font-size: clamp(64px, 6vw, 78px);
  font-weight: 400;
  line-height: 1;
}

.portfolio-intro p {
  max-width: 520px;
  margin: 0;
  color: #514c45;
  font-family: var(--serif);
  font-size: clamp(18px, 1.45vw, 22px);
  font-weight: 400;
  line-height: 1.45;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(28px, 3.6vw, 38px);
  row-gap: clamp(48px, 5.2vw, 76px);
}

.portfolio-item {
  display: block;
}

.portfolio-item img {
  aspect-ratio: 1 / 1.05;
  height: auto;
  object-fit: cover;
}

.portfolio-item h2 {
  margin-top: 24px;
  color: #050505;
  font-size: clamp(24px, 1.8vw, 28px);
  font-weight: 500;
  line-height: 1.1;
}

.service-portfolio-item p {
  max-width: 92%;
  margin: 12px 0 0;
  color: #514c45;
  font-size: 14px;
  line-height: 1.65;
}

.page-hero {
  padding-bottom: clamp(44px, 7vw, 96px);
}

.page-hero.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
}

.page-hero.split img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.image-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 clamp(20px, 5vw, 72px) clamp(64px, 8vw, 110px);
}

.image-row img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-template {
  background: #ffffff;
  color: #050505;
}

.about-page {
  background: #ffffff;
}

.about-lede {
  display: grid;
  justify-items: center;
  gap: clamp(22px, 3vw, 38px);
  min-height: auto;
  padding: clamp(74px, 8vw, 126px) clamp(24px, 7vw, 140px) clamp(72px, 7vw, 112px);
  background: #ecebea;
  text-align: center;
}

.about-kicker {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(13px, 1vw, 17px);
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.about-lede h1 {
  max-width: 1120px;
  margin: 0;
  font-size: clamp(30px, 2.55vw, 46px);
  line-height: 1.28;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(380px, 1fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(72px, 8vw, 118px) clamp(24px, 5vw, 72px) clamp(84px, 9vw, 132px);
}

.about-story h2,
.about-team h2 {
  font-size: clamp(38px, 3.8vw, 62px);
  line-height: 1;
}

.about-story-copy p {
  max-width: 560px;
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: clamp(17px, 1.25vw, 22px);
  line-height: 1.48;
}

.about-story-figure {
  margin: 0;
}

.about-story-figure img {
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
}

.about-story-figure figcaption {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(14px, 1vw, 17px);
  font-style: italic;
  line-height: 1.35;
  text-align: right;
}

.about-team {
  padding: clamp(72px, 8vw, 116px) clamp(24px, 5vw, 72px) clamp(72px, 8vw, 118px);
  background: #ecebea;
  text-align: center;
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(22px, 3.2vw, 48px);
  max-width: 1240px;
  margin: clamp(44px, 5vw, 72px) auto 0;
}

.about-team-member img {
  width: min(100%, 168px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.about-team-member h3 {
  margin-top: 20px;
  font-size: clamp(18px, 1.25vw, 23px);
  line-height: 1.1;
}

.about-team-member p {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(11px, 0.85vw, 14px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.service-card {
  min-height: 310px;
  padding: 28px;
  background: var(--paper);
}

.service-card span {
  display: block;
  margin-bottom: 38px;
  color: var(--muted);
}

.service-card p {
  color: var(--muted);
}

.project-hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: end;
  color: var(--white);
  background: var(--deep);
}

.project-hero img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
}

.project-hero div {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 40px));
  margin: 0 clamp(20px, 5vw, 72px) clamp(44px, 7vw, 86px);
}

.video-band {
  background: var(--deep);
}

.video-band video {
  max-width: 1100px;
  max-height: 82vh;
  margin: 0 auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 22px);
}

.gallery-item {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-item img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery-item:nth-child(5n + 1) {
  grid-column: span 2;
}

.gallery-item:nth-child(5n + 1) img {
  aspect-ratio: 8 / 5;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 70px 20px 20px;
  background: rgba(0, 0, 0, 0.86);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  width: auto;
  max-width: 96vw;
  max-height: 84vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: white;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  max-width: 820px;
  margin: 0 auto;
}

.contact-form label {
  display: grid;
  gap: 10px;
  color: #514c45;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-form .full,
.contact-form button {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(5, 5, 5, 0.16);
  border-radius: 0;
  padding: 13px 0;
  background: transparent;
  color: #050505;
  font: inherit;
  font-size: 15px;
}

textarea {
  resize: vertical;
}

.notice {
  max-width: 780px;
  padding: 32px;
  background: var(--warm);
}

.contact-page {
  min-height: 68vh;
}

.contact-intro {
  margin-bottom: clamp(44px, 5vw, 76px);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border-width: 0 0 1px;
}

.contact-form textarea {
  min-height: 132px;
}

.contact-form button {
  justify-self: start;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 22px;
  background: #050505;
  border-color: #050505;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.contact-notice {
  margin: 0 auto;
  background: transparent;
  border: 1px solid rgba(5, 5, 5, 0.14);
  text-align: center;
}

.contact-notice h2 {
  font-size: clamp(34px, 4vw, 54px);
}

.contact-notice p {
  margin-bottom: 0;
  color: #514c45;
  font-family: var(--serif);
  font-size: clamp(17px, 1.3vw, 21px);
}

.simple {
  min-height: 78vh;
}

.site-footer {
  padding: clamp(54px, 7vw, 92px) clamp(20px, 5vw, 72px) 28px;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(42px, 7vw, 112px);
  color: var(--white);
  background: var(--deep);
}

.footer-main {
  display: grid;
  align-content: start;
  gap: 24px;
}

.footer-brand {
  display: inline-flex;
  width: clamp(96px, 9vw, 138px);
}

.footer-brand img {
  filter: invert(98%) sepia(12%) saturate(426%) hue-rotate(320deg) brightness(104%) contrast(102%);
}

.footer-main p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 250, 244, 0.76);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.06;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 54px);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 13px;
  font-size: 12px;
  line-height: 1.35;
}

.footer-column h2 {
  margin: 0 0 6px;
  color: rgba(255, 250, 244, 0.48);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-column a {
  width: fit-content;
  color: rgba(255, 250, 244, 0.78);
  transition: color 180ms ease, transform 180ms ease;
}

.footer-column a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(24px, 4vw, 46px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 250, 244, 0.14);
  color: rgba(255, 250, 244, 0.54);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
}

.footer-social-links a {
  color: rgba(255, 250, 244, 0.72);
  transition: color 180ms ease;
}

.footer-social-links a:hover {
  color: var(--white);
}

.admin-template {
  min-height: 100vh;
  background: #eef0ed;
  color: #161616;
}

.admin-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #101411 0%, #263126 100%);
}

.admin-auth-card {
  width: min(420px, 100%);
  padding: 30px;
  border: 1px solid rgba(255, 250, 244, 0.16);
  background: #fffaf4;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.admin-auth-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 38px;
  color: #6b675f;
  font-size: 12px;
  font-weight: 700;
}

.admin-auth-brand img {
  width: 74px;
}

.admin-auth-copy {
  margin-bottom: 24px;
}

.admin-auth-copy h1,
.admin-topbar h1,
.admin-panel h2 {
  margin: 0;
  color: #151515;
  font-family: var(--sans);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.12;
}

.admin-auth-copy p:not(.admin-kicker) {
  max-width: 320px;
  margin: 10px 0 0;
  color: #6b675f;
  font-size: 14px;
  line-height: 1.55;
}

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  padding: 28px 18px;
  background: #151814;
  color: #fffaf4;
}

.admin-logo {
  display: inline-flex;
  width: 82px;
}

.admin-logo img {
  filter: invert(98%) sepia(12%) saturate(426%) hue-rotate(320deg) brightness(104%) contrast(102%);
}

.admin-menu {
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-menu a,
.admin-logout {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: rgba(255, 250, 244, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.admin-menu a.active,
.admin-menu a:hover,
.admin-logout:hover {
  background: rgba(255, 250, 244, 0.1);
  color: #fffaf4;
}

.admin-workspace {
  padding: clamp(24px, 4vw, 46px);
}

.admin-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.admin-kicker {
  margin: 0 0 8px;
  color: #747066;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.admin-status,
.admin-section-head span,
.admin-success,
.admin-alert {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 750;
}

.admin-status,
.admin-section-head span,
.admin-success {
  background: rgba(80, 88, 79, 0.12);
  color: #50584f;
}

.admin-alert {
  margin: 0 0 18px;
  background: rgba(138, 49, 35, 0.12);
  color: #8a3123;
}

.admin-success {
  margin: 0 0 16px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-panel,
.admin-preview {
  border: 1px solid rgba(22, 22, 22, 0.1);
  background: #fffaf4;
  box-shadow: 0 14px 38px rgba(22, 22, 22, 0.06);
}

.admin-panel {
  padding: clamp(22px, 3vw, 30px);
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.admin-form {
  display: grid;
  gap: 18px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: #555049;
  font-size: 12px;
  font-weight: 700;
}

.admin-form input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(22, 22, 22, 0.16);
  background: #ffffff;
  font-size: 13px;
}

.admin-form textarea {
  min-height: 92px;
  padding: 10px 12px;
  border: 1px solid rgba(22, 22, 22, 0.16);
  background: #ffffff;
  font: inherit;
  font-size: 13px;
  resize: vertical;
}

.admin-file-field {
  padding: 14px;
  border: 1px dashed rgba(22, 22, 22, 0.22);
  background: #ffffff;
}

.admin-file-field input {
  border: 0;
  padding: 8px 0 0;
  background: transparent;
}

.admin-file-field span {
  overflow-wrap: anywhere;
  color: #747066;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.admin-repeaters {
  display: grid;
  gap: 14px;
}

.admin-repeater {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(22, 22, 22, 0.12);
  background: #ffffff;
}

.admin-repeater legend {
  padding: 0 6px;
  color: #747066;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-button {
  justify-self: start;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 0 18px;
  border: 0;
  background: #151814;
  color: #fffaf4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-danger-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(138, 49, 35, 0.24);
  background: rgba(138, 49, 35, 0.08);
  color: #8a3123;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-preview {
  padding: 18px;
}

.admin-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-preview-head a {
  color: #50584f;
  font-size: 12px;
  font-weight: 750;
}

.admin-preview video {
  aspect-ratio: 16 / 10;
  max-height: 420px;
  border: 1px solid rgba(22, 22, 22, 0.08);
  background: #111111;
  object-fit: cover;
}

.admin-services-panel {
  margin-top: 18px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 13px;
}

.admin-table th,
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(22, 22, 22, 0.1);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #747066;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.admin-table td:first-child {
  width: 96px;
}

.admin-table td:nth-child(2) {
  width: 24%;
  font-weight: 750;
}

.admin-table td:last-child {
  width: 170px;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-link-button,
.admin-row-actions > a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 0;
  background: rgba(80, 88, 79, 0.1);
  color: #50584f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-table-thumb {
  width: 76px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef0ed;
}

.admin-muted {
  color: #747066;
  font-size: 12px;
}

.admin-service-form-page {
  padding: 16px;
  border: 1px solid rgba(22, 22, 22, 0.1);
  background: #ffffff;
}

.admin-service-image-preview {
  max-width: 280px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef0ed;
}

@keyframes introWrite {
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes introPen {
  0% {
    opacity: 0;
    transform: translateX(-220px);
  }

  15%,
  72% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(14px);
  }
}

@keyframes introLogoIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes introLoadingIn {
  to {
    opacity: 1;
  }
}

@keyframes introLoadingLine {
  to {
    transform: scaleX(1);
  }
}

@keyframes introMarkOut {
  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes introCurtain {
  to {
    transform: scaleX(0);
  }
}

@keyframes introOpen {
  0% {
    visibility: visible;
  }

  99% {
    visibility: visible;
  }

  100% {
    visibility: hidden;
  }
}

@keyframes heroMediaIn {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1);
  }
}

@keyframes cardImageSettle {
  from {
    transform: scale(1.08);
  }

  to {
    transform: scale(1);
  }
}

@keyframes pageHeaderIn {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageContentIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pageFooterIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 20px 24px;
    background: #f4f3f1;
    border-top: 1px solid rgba(5, 5, 5, 0.12);
  }

  .site-nav.open {
    display: grid;
    justify-items: end;
  }

  .intro,
  .about-story,
  .media-feature,
  .media-feature.reverse,
  .page-hero.split,
  .portfolio-intro,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .portfolio-grid,
  .about-team-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .about-lede {
    padding-top: 64px;
  }

  .about-story {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .about-story-figure figcaption {
    text-align: left;
  }

  .about-team-grid {
    max-width: 420px;
    gap: 40px;
  }

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

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

  .admin-sidebar {
    position: static;
    height: auto;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    align-items: center;
  }

  .admin-menu {
    display: flex;
    justify-content: center;
  }

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

  .admin-table {
    min-width: 720px;
  }

  .portfolio-page {
    padding-top: clamp(150px, 24vw, 190px);
  }

  .portfolio-intro {
    gap: 30px;
    margin-bottom: 64px;
  }

  .portfolio-intro h1 {
    justify-self: start;
  }

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

@media (max-width: 620px) {
  .site-header {
    min-height: 78px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand {
    width: 68px;
  }

  .hero {
    min-height: 92svh;
  }

  .home-hero {
    min-height: auto;
    padding: 0;
  }

  .about-lede {
    gap: 22px;
    padding: 56px 18px 58px;
  }

  .about-lede h1 {
    font-size: clamp(28px, 8.5vw, 38px);
  }

  .about-story,
  .about-team {
    padding-left: 18px;
    padding-right: 18px;
  }

  .about-story h2,
  .about-team h2 {
    font-size: clamp(38px, 11vw, 50px);
  }

  .site-intro-script {
    letter-spacing: 0.28em;
  }

  h1 {
    font-size: clamp(48px, 18vw, 84px);
  }

  .section,
  .page,
  .intro,
  .media-feature,
  .video-band,
  .gallery,
  .service-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .project-card,
  .project-card img {
    min-height: 430px;
  }

  .portfolio-item img {
    aspect-ratio: 1 / 1.12;
  }

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

  .gallery-item:nth-child(5n + 1) {
    grid-column: span 1;
  }

  .gallery-item:nth-child(5n + 1) img {
    aspect-ratio: 4 / 5;
  }

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

  .site-footer {
    gap: 34px;
  }

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

  .footer-bottom {
    display: grid;
    justify-content: stretch;
  }

  .admin-topbar,
  .admin-section-head {
    display: grid;
  }

  .admin-sidebar {
    grid-template-columns: 1fr;
  }

  .admin-menu {
    justify-content: start;
  }

  .admin-workspace {
    padding: 18px;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .site-intro {
    display: none;
  }

  body.page-transition .site-header,
  body.page-transition main,
  body.page-transition .site-footer {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}
