:root {
  color-scheme: dark;
  --ink: oklch(10% 0.012 38);
  --ink-2: oklch(15% 0.014 38);
  --panel: oklch(18% 0.017 42);
  --panel-2: oklch(22% 0.02 48);
  --bone: oklch(92% 0.018 78);
  --muted: oklch(73% 0.031 74);
  --quiet: oklch(54% 0.03 72);
  --oxblood: oklch(54% 0.16 31);
  --ember: oklch(69% 0.16 42);
  --verdigris: oklch(67% 0.1 154);
  --line: oklch(31% 0.021 52);
  --shadow: 0 30px 80px oklch(3% 0.01 38 / 0.42);
  --display: "Big Shoulders Display", Impact, sans-serif;
  --body: "Sora", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(90deg, oklch(100% 0 0 / 0.026) 1px, transparent 1px) 0 0 / clamp(64px, 8vw, 120px) 100%,
    repeating-linear-gradient(0deg, oklch(100% 0 0 / 0.02) 0 1px, transparent 1px 7px),
    linear-gradient(126deg, oklch(26% 0.06 33 / 0.28) 0 14rem, transparent 36rem),
    var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

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

button {
  color: inherit;
}

::selection {
  background: var(--ember);
  color: var(--ink);
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 1000;
  width: auto;
  height: auto;
  clip: auto;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bone);
  color: var(--ink);
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(0.85rem, 2vw, 1.35rem) clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, oklch(9% 0.011 38 / 0.96), oklch(9% 0.011 38 / 0.72));
  transition: border-color 240ms ease, background 240ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: oklch(10% 0.012 38 / 0.98);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 42px;
  letter-spacing: 0;
}

.brand-mark span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ember);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
}

.brand-mark strong {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2rem);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 0.35rem 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--ember);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-2);
}

.nav-toggle__bar {
  display: block;
  width: 19px;
  height: 1px;
  margin: 6px auto;
  background: var(--bone);
  transition: transform 220ms ease, opacity 220ms ease;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(82svh, 840px);
  padding: clamp(6rem, 10vw, 8.5rem) clamp(1rem, 5vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
  background:
    linear-gradient(90deg, oklch(8% 0.015 38 / 0.92) 0 28%, oklch(8% 0.015 38 / 0.68) 48%, oklch(8% 0.015 38 / 0.34)),
    linear-gradient(0deg, oklch(8% 0.015 38 / 0.92), transparent 35%),
    url("assets/castro/castro-gallery-44.webp") center / cover;
  background-color: var(--ink);
  background-blend-mode: normal, normal, luminosity;
  overflow: hidden;
}

.hero__grain {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(112deg, oklch(100% 0 0 / 0.025) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(18deg, oklch(0% 0 0 / 0.18) 0 1px, transparent 1px 18px);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1060px, 100%);
  align-self: end;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--ember);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  color: var(--bone);
  font-family: var(--display);
  line-height: 0.91;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin-bottom: clamp(1rem, 2vw, 1.35rem);
  font-size: clamp(4.8rem, 13.5vw, 12.6rem);
  font-weight: 800;
}

.hero__summary {
  width: min(620px, 100%);
  margin-bottom: clamp(1.3rem, 3vw, 2rem);
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.35rem);
}

.hero__actions,
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.78rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease, background 220ms ease;
}

.button svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button:hover,
.button:focus-visible,
.filter-tab:hover,
.filter-tab:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--ember);
  color: var(--ink);
}

.button--ghost {
  border-color: oklch(88% 0.019 78 / 0.34);
  color: var(--bone);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: var(--ember);
  background: oklch(69% 0.16 42 / 0.08);
}

.hero__panel {
  position: absolute;
  z-index: 2;
  right: clamp(1rem, 5vw, 4rem);
  bottom: clamp(1rem, 4vw, 3.5rem);
  width: min(320px, calc(100% - 2rem));
  padding-top: 1rem;
  border-top: 1px solid oklch(87% 0.017 76 / 0.34);
}

.hero__panel span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--verdigris);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero__panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink-2);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: drift 38s linear infinite;
}

.ticker span {
  padding: 0.9rem clamp(1.8rem, 4vw, 3.5rem);
  color: var(--quiet);
  font-family: var(--display);
  font-size: clamp(1.4rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-shell {
  width: min(1440px, 100%);
  margin-inline: auto;
  padding: clamp(4.5rem, 10vw, 9rem) clamp(1rem, 5vw, 4rem);
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.72fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: start;
}

.intro-section h2,
.section-heading h2,
.approach h2,
.booking h2 {
  max-width: 12ch;
  margin-bottom: 0;
  font-size: clamp(3rem, 8vw, 7.2rem);
  font-weight: 800;
}

.intro-section__text {
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
}

.intro-section__text p {
  max-width: 62ch;
  margin-bottom: 1.15rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.6rem, 5vw, 3.2rem);
}

.section-heading h2 {
  max-width: 11ch;
}

.gallery-toolbar {
  margin-bottom: 1.2rem;
}

.filter-tab {
  min-width: 86px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: oklch(16% 0.014 42 / 0.8);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), color 220ms ease, background 220ms ease, border-color 220ms ease;
}

.filter-tab.is-active {
  border-color: var(--ember);
  background: oklch(69% 0.16 42 / 0.12);
  color: var(--bone);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(220px, 18vw);
  gap: clamp(0.8rem, 2vw, 1.2rem);
}

.gallery-item {
  position: relative;
  grid-column: span 2;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: opacity 240ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1), filter 240ms ease;
}

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 4;
}

.gallery-item--portrait img {
  object-position: 50% 26%;
}

.gallery-item.is-hidden {
  opacity: 0.16;
  filter: saturate(0.2);
  transform: scale(0.985);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.24) contrast(1.08) brightness(0.82);
  transition: filter 360ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img,
.gallery-item:focus-within img {
  filter: grayscale(0) contrast(1.05) brightness(0.98);
  transform: scale(1.035);
}

.gallery-item__meta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(0deg, oklch(7% 0.012 38 / 0.92), transparent);
}

.gallery-item__meta span {
  color: var(--ember);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.gallery-item__meta strong {
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 0.95;
  text-align: right;
  text-transform: uppercase;
}

.flash-card {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 100%;
  place-items: center;
  background:
    linear-gradient(135deg, oklch(22% 0.023 48), oklch(14% 0.015 38)),
    var(--panel);
}

.flash-card svg {
  width: min(78%, 280px);
  color: var(--bone);
  opacity: 0.86;
}

.flash-line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.flash-line.heavy {
  stroke-width: 6.5;
}

.portfolio-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(88px, 1fr));
  gap: clamp(0.6rem, 1.4vw, 0.9rem);
  margin-top: clamp(0.8rem, 2vw, 1.2rem);
}

.portfolio-strip img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.08) brightness(0.82);
  transition: filter 260ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-strip img:hover {
  filter: grayscale(0) contrast(1.05) brightness(1);
  transform: translateY(-3px);
}

.approach {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1fr);
  min-height: 760px;
  border-block: 1px solid var(--line);
  background: var(--ink-2);
}

.approach__media {
  min-height: 520px;
}

.approach__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  filter: grayscale(0.5) contrast(1.08) brightness(0.68);
}

.approach__content {
  display: grid;
  align-content: center;
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 7vw, 6rem);
}

.approach__content > p {
  max-width: 62ch;
  color: var(--muted);
}

.approach__list {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.5rem, 4vw, 3rem);
}

.approach__list div {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 0.6fr) minmax(200px, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.approach__list span,
.process-steps span {
  color: var(--verdigris);
  font-size: 0.74rem;
  font-weight: 700;
}

.approach__list strong {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}

.approach__list p {
  margin-bottom: 0;
  color: var(--muted);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-steps li {
  min-height: 260px;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
}

.process-steps li:last-child {
  border-right: 0;
}

.process-steps h3 {
  margin: 1rem 0 0.8rem;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.process-steps p {
  max-width: 30ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.booking {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.74fr);
  gap: clamp(2rem, 7vw, 7rem);
  padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 5vw, 4rem);
  background:
    linear-gradient(145deg, oklch(54% 0.16 31 / 0.14), transparent 42%),
    var(--ink);
}

.booking__intro {
  align-self: start;
  position: sticky;
  top: 6rem;
}

.booking__intro p {
  max-width: 60ch;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: 0.5rem;
  color: var(--ember);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.28rem;
}

.booking-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2.5vw, 1.4rem);
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    repeating-linear-gradient(135deg, oklch(100% 0 0 / 0.018) 0 1px, transparent 1px 10px),
    var(--panel);
  box-shadow: var(--shadow);
}

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

label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid oklch(37% 0.025 52);
  border-radius: 4px;
  background: oklch(12% 0.013 38);
  color: var(--bone);
  font-size: 0.95rem;
  font-weight: 400;
  outline: none;
  padding: 0.86rem 0.9rem;
  text-transform: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

textarea {
  min-height: 142px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px oklch(69% 0.16 42 / 0.16);
  background: oklch(14% 0.015 38);
}

::placeholder {
  color: oklch(56% 0.025 72);
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--verdigris);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--quiet);
  font-size: 0.82rem;
}

.site-footer div {
  display: grid;
  gap: 0.15rem;
}

.site-footer strong {
  color: var(--bone);
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1;
  text-transform: uppercase;
}

.site-footer p {
  margin-bottom: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 680ms cubic-bezier(0.16, 1, 0.3, 1), transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes drift {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1020px) {
  .hero {
    min-height: 84svh;
    background-position: 57% center;
  }

  .hero__panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(440px, 100%);
    margin-top: 2.4rem;
  }

  .intro-section,
  .approach,
  .booking {
    grid-template-columns: 1fr;
  }

  .approach__content {
    padding-inline: clamp(1rem, 5vw, 4rem);
  }

  .booking__intro {
    position: static;
  }

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

  .gallery-item {
    grid-column: span 2;
  }

  .gallery-item--wide {
    grid-column: span 4;
  }

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

  .portfolio-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .process-steps li:nth-child(2) {
    border-right: 0;
  }

  .process-steps li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  body.nav-open .nav-toggle__bar:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  body.nav-open .nav-toggle__bar:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 70px 0 auto;
    display: grid;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--ink);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 220ms ease, transform 220ms ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 0.92rem 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: 82svh;
    padding-top: 6.5rem;
    background-position: 61% center;
  }

  h1 {
    font-size: clamp(4.4rem, 23vw, 7.4rem);
  }

  .hero__summary {
    font-size: 1rem;
  }

  .intro-section h2,
  .section-heading h2,
  .approach h2,
  .booking h2 {
    font-size: clamp(2.6rem, 14vw, 5.2rem);
  }

  .section-heading {
    display: block;
  }

  .gallery-grid {
    display: block;
  }

  .gallery-item,
  .gallery-item--wide,
  .gallery-item--tall {
    min-height: 430px;
    margin-bottom: 1rem;
  }

  .gallery-item--ink {
    min-height: 390px;
  }

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

  .approach__list div {
    grid-template-columns: 2.4rem 1fr;
  }

  .approach__list p {
    grid-column: 2;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .process-steps li,
  .process-steps li:nth-child(2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-steps li:last-child {
    border-bottom: 0;
  }

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

@media (max-width: 460px) {
  .hero__actions,
  .gallery-toolbar {
    display: grid;
  }

  .button,
  .filter-tab {
    width: 100%;
  }

  .gallery-item,
  .gallery-item--wide,
  .gallery-item--tall {
    min-height: 360px;
  }

  .site-footer {
    display: grid;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
