:root {
  --bg: #fff8f5;
  --bg-low: #fef1ea;
  --bg-high: #f4e5de;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-soft: rgba(254, 241, 234, 0.82);
  --surface-blue: rgba(203, 230, 255, 0.42);
  --text: #201a16;
  --muted: #64514d;
  --muted-strong: #4f3f3b;
  --primary: #902923;
  --primary-dark: #70110f;
  --secondary: #006495;
  --secondary-soft: rgba(0, 100, 149, 0.12);
  --tertiary: #8c5416;
  --tertiary-soft: rgba(140, 84, 22, 0.13);
  --line: rgba(144, 41, 35, 0.14);
  --line-strong: rgba(144, 41, 35, 0.24);
  --line-soft: rgba(144, 41, 35, 0.08);
  --shadow: 0 24px 64px rgba(144, 41, 35, 0.08);
  --shadow-soft: 0 18px 48px rgba(144, 41, 35, 0.06);
  --radius-xl: 2.5rem;
  --radius-lg: 2rem;
  --radius-md: 1.15rem;
  --max-width: 1180px;
  --display: "Newsreader", Georgia, serif;
  --body: "Plus Jakarta Sans", "Trebuchet MS", sans-serif;
  --mono: "Space Grotesk", "Trebuchet MS", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  color: var(--text);
  font-family: var(--body);
  line-height: 1.65;
  background:
    radial-gradient(circle at 12% 14%, rgba(0, 100, 149, 0.11), transparent 20%),
    radial-gradient(circle at 88% 22%, rgba(144, 41, 35, 0.08), transparent 18%),
    radial-gradient(circle at 64% 84%, rgba(140, 84, 22, 0.08), transparent 16%),
    linear-gradient(180deg, #fffaf7 0%, #fff5ef 42%, #fff8f5 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(144, 41, 35, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 72%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.36), transparent 38%),
    radial-gradient(circle at 18% 72%, rgba(255, 255, 255, 0.18), transparent 28%);
  pointer-events: none;
  z-index: -2;
}

main {
  position: relative;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

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

p,
ul {
  margin: 0;
}

ul {
  padding-left: 1.15rem;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 350, "GRAD" 0, "opsz" 24;
}

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

.shell {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff7f4;
}

.skip-link:focus {
  top: 1rem;
}

.page-glow {
  position: fixed;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

.page-glow-left {
  left: -8rem;
  top: 8rem;
  background: rgba(0, 100, 149, 0.18);
}

.page-glow-right {
  right: -8rem;
  top: 18rem;
  background: rgba(144, 41, 35, 0.14);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: fit-content;
}

.brand-logo,
.footer-logo,
.error-logo {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.8rem;
  object-fit: contain;
}

.brand-wordmark {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.site-nav a {
  position: relative;
  padding: 0.2rem 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: -0.02em;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.28rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(144, 41, 35, 0.35);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--primary);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-button,
.header-badge {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(144, 41, 35, 0.08);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.icon-button {
  color: var(--primary);
}

.header-badge {
  overflow: hidden;
}

.header-badge img {
  width: 1.8rem;
  height: 1.8rem;
  object-fit: contain;
}

.icon-button:hover,
.icon-button:focus-visible,
.header-badge:hover,
.header-badge:focus-visible {
  transform: translateY(-1px);
  background: var(--surface-strong);
  box-shadow:
    inset 0 0 0 1px rgba(144, 41, 35, 0.08),
    0 12px 24px rgba(144, 41, 35, 0.08);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

h1 {
  font-size: clamp(3.4rem, 8vw, 6.4rem);
}

h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.9rem);
}

h3 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

h4 {
  font-size: 1.15rem;
}

.eyebrow,
.panel-kicker,
.stat-label,
.route-map-number,
.postcard-meta,
.project-label,
.album-count-label,
.timeline-date,
.note-date {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--secondary);
}

.panel-kicker,
.route-map-number {
  color: var(--primary);
}

.lead,
.section-copy {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading,
.page-intro {
  display: grid;
  gap: 1rem;
}

.accent-word {
  color: var(--primary);
  font-style: italic;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff7f4;
  box-shadow: 0 16px 36px rgba(144, 41, 35, 0.2);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(144, 41, 35, 0.14);
  color: var(--text);
}

.button-tertiary {
  padding-inline: 0;
  border-radius: 0;
  min-height: auto;
  color: var(--secondary);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(0, 100, 149, 0.18);
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 245, 0.76));
  box-shadow: var(--shadow);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.65), transparent);
}

.site-footer {
  padding: 1rem 0 2.5rem;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(144, 41, 35, 0.12);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--primary);
}

.footer-copy {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--primary);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.home-hero,
.photo-lab,
.experience-layout-new {
  display: grid;
  gap: 1.5rem;
}

.home-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  align-items: end;
  padding-top: 2.25rem;
}

.hero-copy {
  display: grid;
  gap: 1.4rem;
}

.hero-copy h1 {
  max-width: 11ch;
}

.hero-figure {
  min-height: 31rem;
  display: grid;
  gap: 1rem;
  align-content: start;
  background:
    radial-gradient(circle at top right, rgba(0, 100, 149, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(252, 240, 235, 0.88));
}

.hero-figure::after {
  content: "";
  position: absolute;
  width: 14rem;
  height: 14rem;
  right: -4rem;
  bottom: -5rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(144, 41, 35, 0.12), transparent 65%);
}

.hero-seal {
  width: min(10rem, 48%);
  aspect-ratio: 1;
  justify-self: end;
  display: grid;
  place-items: center;
  padding: 1.15rem;
  border-radius: 2.1rem;
  background: linear-gradient(180deg, #433533, #1e1817);
  box-shadow: 0 30px 70px rgba(32, 26, 22, 0.22);
}

.hero-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-figure-copy {
  color: var(--muted);
  max-width: 38ch;
}

.hero-mini-grid {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-mini-card {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(144, 41, 35, 0.06);
}

.hero-mini-card strong {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.hero-mini-card span:last-child {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-mini-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.service-grid,
.stat-grid,
.postcard-grid,
.photo-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.service-card {
  display: grid;
  gap: 1rem;
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(144, 41, 35, 0.08);
  color: var(--primary);
}

.service-card:nth-child(2) .service-icon {
  background: rgba(0, 100, 149, 0.1);
  color: var(--secondary);
}

.service-card:nth-child(3) .service-icon {
  background: rgba(140, 84, 22, 0.12);
  color: var(--tertiary);
}

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

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

.stat-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.2rem;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.stat-value {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 0.95;
  color: var(--primary);
  letter-spacing: -0.05em;
}

.stat-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.route-map-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 16rem;
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.route-map-card:hover,
.route-map-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.route-map-card h3 {
  margin-top: 0.35rem;
}

.route-map-card p {
  max-width: 28ch;
  color: var(--muted-strong);
}

.route-map-card-large {
  grid-column: span 8;
}

.route-map-card-small {
  grid-column: span 4;
}

.route-map-card-wide {
  grid-column: span 8;
}

.route-map-card-narrow {
  grid-column: span 4;
}

.route-map-icon {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 3.4rem;
  opacity: 0.16;
}

.route-map-experience {
  background:
    radial-gradient(circle at 100% 100%, rgba(144, 41, 35, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(248, 235, 228, 0.95), rgba(255, 255, 255, 0.92));
}

.route-map-writing {
  background: linear-gradient(180deg, rgba(255, 220, 194, 0.84), rgba(255, 245, 236, 0.92));
}

.route-map-projects {
  background: linear-gradient(180deg, rgba(203, 230, 255, 0.82), rgba(244, 251, 255, 0.92));
}

.route-map-photography {
  background:
    linear-gradient(0deg, rgba(24, 27, 30, 0.18), rgba(24, 27, 30, 0.18)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 235, 228, 0.92));
}

.route-map-photography::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(17, 18, 22, 0.24)),
    linear-gradient(135deg, rgba(0, 100, 149, 0.22), rgba(140, 84, 22, 0.18));
  opacity: 0.9;
}

.route-map-photography > * {
  position: relative;
  z-index: 1;
}

.postcard-card {
  display: grid;
  gap: 1rem;
}

.postcard-card:nth-child(2) {
  margin-top: 2.25rem;
}

.postcard-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius-xl) + 0.1rem);
  box-shadow: var(--shadow-soft);
}

.postcard-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.14));
}

.postcard-short .postcard-visual {
  background:
    linear-gradient(135deg, rgba(18, 18, 20, 0.92), rgba(84, 82, 80, 0.7)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 10%, transparent 10% 28%, rgba(255, 255, 255, 0.08) 28% 36%, transparent 36%);
}

.postcard-first .postcard-visual {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.38), transparent 16%),
    linear-gradient(180deg, rgba(75, 83, 102, 0.9), rgba(205, 215, 227, 0.42) 58%, rgba(38, 43, 52, 0.82));
}

.postcard-reset .postcard-visual {
  background:
    linear-gradient(180deg, rgba(242, 242, 242, 0.86), rgba(212, 214, 218, 0.84)),
    linear-gradient(90deg, rgba(84, 82, 78, 0.12) 0 18%, transparent 18% 22%, rgba(84, 82, 78, 0.12) 22% 38%, transparent 38%);
}

.postcard-title {
  font-size: 1.55rem;
}

.postcard-copy {
  color: var(--muted);
}

.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem;
  padding: 2.6rem;
  border-radius: calc(var(--radius-xl) + 0.3rem);
  background: linear-gradient(135deg, #8c211c, #a73a31 42%, #902923 100%);
  box-shadow: 0 28px 70px rgba(144, 41, 35, 0.22);
  color: #fff6f2;
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  right: -6rem;
  bottom: -8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-band .eyebrow,
.cta-band p {
  color: rgba(255, 246, 242, 0.82);
}

.cta-band p {
  max-width: 45ch;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-band .button-primary {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.cta-band .button-secondary {
  background: rgba(255, 255, 255, 0.92);
}

.experience-hero,
.writing-hero,
.projects-hero,
.photo-hero {
  padding-top: 2.25rem;
}

.experience-hero,
.writing-hero,
.projects-hero {
  max-width: 62rem;
}

.experience-layout-new {
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.75fr);
  align-items: start;
}

.timeline {
  position: relative;
  padding-left: 0.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 1rem;
  bottom: 1rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(144, 41, 35, 0.32), rgba(144, 41, 35, 0.14) 66%, transparent);
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  display: grid;
  gap: 0.75rem;
}

.timeline-item + .timeline-item {
  margin-top: 2.85rem;
}

.timeline-node {
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #ead2cd;
  border: 4px solid rgba(255, 248, 245, 0.98);
  box-shadow: 0 0 0 1px rgba(144, 41, 35, 0.08);
}

.timeline-item.is-current .timeline-node {
  background: var(--primary);
}

.timeline-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.timeline-role {
  font-size: 1.95rem;
}

.timeline-date {
  color: var(--primary);
}

.timeline-company {
  color: var(--secondary);
  font-weight: 600;
}

.timeline-copy {
  color: var(--muted);
}

.timeline-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  color: var(--muted);
}

.timeline-list li {
  position: relative;
  padding-left: 1.4rem;
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: var(--primary);
}

.theme-panel,
.competency-list,
.photo-composer-card,
.photo-form,
.album-grid-panel {
  display: grid;
  gap: 1rem;
}

.theme-chip-row,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.theme-chip,
.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(144, 41, 35, 0.08);
  color: var(--muted-strong);
  font-size: 0.86rem;
}

.competency-card {
  display: grid;
  gap: 0.55rem;
  padding: 1.1rem 1.15rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.competency-icon {
  color: var(--secondary);
}

.competency-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.experience-cta {
  margin-top: 0.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.85rem;
}

.experience-cta p {
  color: var(--muted);
  font-style: italic;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.filter-pill {
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(144, 41, 35, 0.12);
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted-strong);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.filter-pill:hover,
.filter-pill:focus-visible {
  transform: translateY(-1px);
}

.filter-pill[data-selected="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff8f5;
}

.writing-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.note-card {
  display: grid;
  gap: 1rem;
}

.note-card-wide {
  grid-column: span 2;
}

.note-card[hidden] {
  display: none !important;
}

.note-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius-xl) + 0.1rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 235, 228, 0.9));
  box-shadow: var(--shadow-soft);
}

.note-card-wide .note-media {
  aspect-ratio: auto;
  min-height: 18rem;
}

.note-media::before {
  content: "";
  position: absolute;
  inset: auto -2rem -3rem auto;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(144, 41, 35, 0.12), transparent 68%);
}

.note-media-handoff {
  background:
    radial-gradient(circle at 26% 24%, rgba(255, 255, 255, 0.9), transparent 16%),
    linear-gradient(180deg, rgba(215, 211, 208, 0.92), rgba(83, 79, 77, 0.9));
}

.note-media-escalation {
  background:
    linear-gradient(180deg, rgba(255, 248, 245, 0.96), rgba(248, 235, 228, 0.96));
  box-shadow:
    inset 0 0 0 2px rgba(144, 41, 35, 0.12),
    var(--shadow-soft);
}

.note-media-feedback {
  background:
    linear-gradient(180deg, rgba(35, 35, 37, 0.9), rgba(80, 75, 73, 0.92)),
    linear-gradient(135deg, rgba(0, 100, 149, 0.12), transparent);
}

.note-media-metrics {
  background:
    linear-gradient(180deg, rgba(255, 248, 245, 0.98), rgba(250, 236, 228, 0.98));
}

.note-media-icon {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  font-size: 3rem;
  opacity: 0.22;
  color: var(--primary);
}

.note-badges {
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.note-badge {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--secondary);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.note-badge-status {
  color: var(--primary);
}

.note-summary {
  color: var(--muted);
}

.note-card-wide .note-summary {
  max-width: 55ch;
}

.note-quote {
  font-size: 1.08rem;
  color: var(--muted);
  font-style: italic;
  max-width: 56ch;
}

.note-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(144, 41, 35, 0.08);
}

.note-link {
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.note-link:hover,
.note-link:focus-visible {
  color: var(--primary-dark);
}

.projects-hero h1 {
  max-width: 10ch;
}

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

.project-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 16rem;
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.project-card-feature {
  grid-column: span 8;
  min-height: 24rem;
}

.project-card-compact {
  grid-column: span 4;
}

.project-card-wide {
  grid-column: span 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.9fr);
  align-items: center;
}

.project-art {
  min-height: 8rem;
  border-radius: 1.6rem;
}

.project-art-flow {
  position: absolute;
  right: -4rem;
  bottom: -3rem;
  width: 62%;
  height: 70%;
  border-radius: 2.25rem;
  background:
    radial-gradient(circle at 18% 45%, rgba(255, 255, 255, 0.84), transparent 12%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(144, 41, 35, 0.84), rgba(0, 100, 149, 0.55));
  opacity: 0.72;
  transform: rotate(-6deg);
}

.project-art-dashboard {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 235, 228, 0.92));
}

.project-art-dashboard::before {
  content: "";
  position: absolute;
  inset: 18% 18% 18% 18%;
  border-radius: 1rem;
  background:
    linear-gradient(0deg, rgba(0, 100, 149, 0.2), rgba(0, 100, 149, 0.2)) left 18% bottom 12% / 12% 32% no-repeat,
    linear-gradient(0deg, rgba(140, 84, 22, 0.24), rgba(140, 84, 22, 0.24)) left 36% bottom 12% / 12% 56% no-repeat,
    linear-gradient(0deg, rgba(144, 41, 35, 0.24), rgba(144, 41, 35, 0.24)) left 54% bottom 12% / 12% 42% no-repeat,
    linear-gradient(0deg, rgba(0, 100, 149, 0.18), rgba(0, 100, 149, 0.18)) left 72% bottom 12% / 12% 68% no-repeat,
    linear-gradient(180deg, rgba(240, 248, 252, 0.9), rgba(253, 247, 244, 0.94));
  box-shadow: inset 0 0 0 1px rgba(144, 41, 35, 0.06);
}

.project-art-grid {
  background:
    linear-gradient(90deg, rgba(144, 41, 35, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(0, 100, 149, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(203, 230, 255, 0.4));
  background-size: 26px 26px, 26px 26px, auto;
}

.project-art-photo {
  background:
    radial-gradient(circle at 64% 38%, rgba(255, 216, 165, 0.76), transparent 18%),
    linear-gradient(135deg, rgba(50, 41, 35, 0.94), rgba(108, 84, 66, 0.64));
}

.collab-band {
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
  padding: 3rem 2rem;
  border-radius: calc(var(--radius-xl) + 0.2rem);
  background: linear-gradient(180deg, rgba(254, 241, 234, 0.95), rgba(255, 255, 255, 0.74));
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.collab-band::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: 5rem;
  height: 5rem;
  border-radius: 1.5rem;
  background: rgba(144, 41, 35, 0.05);
}

.collab-band p {
  max-width: 42ch;
  margin: 0 auto;
  color: var(--muted);
}

.collab-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.photo-hero {
  display: grid;
  gap: 1.25rem;
}

.photo-hero-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.photo-hero-head h1 {
  max-width: 8ch;
}

.photo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.album-stage {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: calc(var(--radius-xl) + 0.3rem);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.album-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.album-count {
  display: grid;
  justify-items: end;
  gap: 0.15rem;
  min-width: 8rem;
  padding: 0.9rem 1rem;
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 0 0 1px rgba(144, 41, 35, 0.08);
}

.album-count-number {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.3rem);
  line-height: 0.92;
  color: var(--primary);
}

.album-count-label {
  color: var(--secondary);
}

.album-feature {
  position: relative;
  display: grid;
}

.album-feature-media {
  display: grid;
  min-height: clamp(20rem, 50vw, 34rem);
  border-radius: calc(var(--radius-xl) + 0.1rem);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 14, 18, 0.26), rgba(10, 14, 18, 0.26)),
    linear-gradient(135deg, rgba(0, 100, 149, 0.22), rgba(140, 84, 22, 0.18));
}

.album-feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-feature-placeholder,
.photo-preview-placeholder,
.album-empty {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
}

.album-feature-placeholder,
.photo-preview-placeholder {
  width: 100%;
  height: 100%;
  place-content: center;
  padding: 1.5rem;
}

.album-feature-copy {
  display: grid;
  gap: 0.55rem;
  padding: 1.4rem 0 0;
}

.album-feature:not(.is-empty) .album-feature-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem;
  background: linear-gradient(180deg, transparent, rgba(13, 11, 10, 0.82));
}

.album-feature:not(.is-empty) .album-feature-date,
.album-feature:not(.is-empty) .album-feature-caption,
.album-feature:not(.is-empty) .album-feature-description {
  color: #fff8f5;
}

.album-feature:not(.is-empty) .album-feature-date {
  color: rgba(255, 248, 245, 0.72);
}

.album-feature:not(.is-empty) .album-feature-description {
  color: rgba(255, 248, 245, 0.78);
  max-width: 40ch;
}

.album-feature-date {
  color: var(--secondary);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.album-feature-caption {
  font-size: clamp(1.95rem, 4vw, 2.85rem);
}

.album-feature-description {
  color: var(--muted);
}

.photo-lab {
  grid-template-columns: minmax(20rem, 0.42fr) minmax(0, 1fr);
  align-items: start;
}

.photo-composer-card {
  align-content: start;
}

.photo-dropzone {
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding: 1.2rem;
  border: 1px dashed rgba(144, 41, 35, 0.22);
  border-radius: 1.6rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(254, 241, 234, 0.74));
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.photo-dropzone:hover,
.photo-dropzone:focus-within,
.photo-dropzone.is-dragging,
.photo-dropzone.has-file {
  transform: translateY(-1px);
  border-color: rgba(144, 41, 35, 0.3);
  box-shadow: var(--shadow-soft);
}

.photo-dropzone-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-dropzone-copy {
  display: grid;
  gap: 0.35rem;
}

.photo-dropzone-title {
  font-family: var(--display);
  font-size: 1.4rem;
}

.photo-dropzone-meta {
  color: var(--muted);
  font-size: 0.93rem;
}

.photo-preview {
  display: grid;
  min-height: 15rem;
  aspect-ratio: 4 / 3;
  border-radius: 1.6rem;
  overflow: hidden;
  border: 1px solid rgba(144, 41, 35, 0.08);
  background:
    radial-gradient(circle at top right, rgba(0, 100, 149, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(254, 241, 234, 0.86));
}

.photo-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.field-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  color: var(--primary);
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(144, 41, 35, 0.14);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(144, 41, 35, 0.22);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid rgba(0, 100, 149, 0.32);
  outline-offset: 2px;
  border-color: rgba(0, 100, 149, 0.26);
}

.field-help {
  color: var(--muted);
  font-size: 0.9rem;
}

.photo-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.photo-form-actions .button {
  flex: 1 1 12rem;
}

.photo-status {
  min-height: 3.4rem;
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1px rgba(144, 41, 35, 0.08);
  color: var(--muted);
}

.photo-status[data-tone="info"] {
  background: rgba(0, 100, 149, 0.08);
  color: var(--secondary);
}

.photo-status[data-tone="success"] {
  background: rgba(140, 84, 22, 0.1);
  color: var(--tertiary);
}

.photo-status[data-tone="error"] {
  background: rgba(144, 41, 35, 0.08);
  color: var(--primary);
}

.album-grid-heading {
  display: grid;
  gap: 0.75rem;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.album-empty {
  padding: 1.25rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(144, 41, 35, 0.08);
}

.photo-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.8rem;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.photo-card.is-selected {
  box-shadow:
    inset 0 0 0 1px rgba(0, 100, 149, 0.18),
    0 22px 44px rgba(0, 100, 149, 0.12);
}

.photo-card-button {
  width: 100%;
  display: grid;
  gap: 0.8rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.photo-card-media {
  overflow: hidden;
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 235, 228, 0.76));
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.photo-card-button:hover .photo-card-media,
.photo-card-button:focus-visible .photo-card-media {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(144, 41, 35, 0.12);
}

.photo-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card-body {
  display: grid;
  gap: 0.3rem;
}

.photo-card-caption {
  font-size: 1.2rem;
}

.photo-card-meta,
.photo-card-hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.photo-card-actions {
  display: flex;
  justify-content: flex-end;
}

.photo-card-action {
  min-height: 2.4rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1px rgba(144, 41, 35, 0.08);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.photo-card-action:hover,
.photo-card-action:focus-visible {
  transform: translateY(-1px);
}

.photo-card-action-delete {
  color: var(--primary);
}

.photo-notes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-note {
  padding: 1.25rem;
  border-radius: 1.7rem;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(144, 41, 35, 0.06);
}

.photo-note p {
  color: var(--muted);
}

.error-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 10rem);
  padding: 4rem 0;
}

.error-card {
  max-width: 44rem;
  text-align: center;
  display: grid;
  gap: 1rem;
  padding: 2.4rem;
}

.error-card .lead {
  max-width: 36ch;
  margin: 0 auto;
}

.error-brand {
  justify-self: center;
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(0, 100, 149, 0.38);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .home-hero,
  .experience-layout-new,
  .photo-lab,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .hero-mini-grid,
  .service-grid,
  .stat-grid,
  .postcard-grid,
  .photo-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-map-card-large,
  .route-map-card-small,
  .route-map-card-wide,
  .route-map-card-narrow,
  .project-card-feature,
  .project-card-compact,
  .project-card-wide {
    grid-column: span 12;
  }

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

  .note-card-wide {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 3.2rem 0;
  }

  .site-header {
    position: static;
    padding: 0.8rem 0 0;
  }

  .header-inner {
    border-radius: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-mini-grid,
  .service-grid,
  .stat-grid,
  .route-map-grid,
  .postcard-grid,
  .writing-shelf,
  .project-grid,
  .photo-notes,
  .photo-lab {
    grid-template-columns: 1fr;
  }

  .postcard-card:nth-child(2) {
    margin-top: 0;
  }

  .route-map-card-large,
  .route-map-card-small,
  .route-map-card-wide,
  .route-map-card-narrow,
  .project-card-feature,
  .project-card-compact,
  .project-card-wide {
    grid-column: auto;
  }

  .note-card-wide {
    grid-column: span 1;
  }

  .project-card-wide {
    grid-template-columns: 1fr;
  }

  .album-stage-head,
  .photo-hero-head,
  .timeline-header,
  .note-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .album-count {
    justify-items: start;
  }

  .album-feature:not(.is-empty) .album-feature-copy {
    position: static;
    background: linear-gradient(180deg, rgba(13, 11, 10, 0.88), rgba(13, 11, 10, 0.88));
    border-radius: 0 0 calc(var(--radius-xl) + 0.1rem) calc(var(--radius-xl) + 0.1rem);
  }

  .photo-form-actions,
  .cta-row,
  .cta-band-actions,
  .collab-actions,
  .photo-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .photo-form-actions .button,
  .cta-row .button,
  .cta-band-actions .button,
  .collab-actions .button,
  .photo-hero-actions .button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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