/* ===== Fonts ===== */
@font-face {
  font-family: "Cal Sans";
  src: url("../assets/fonts/CalSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Tamzen";
  src: url("../assets/fonts/TamzenForPowerline8x16r.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Kumbh Sans";
  src: url("../assets/fonts/KumbhSans-VariableFont_YOPQ,wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Radley";
  src: url("../assets/fonts/Radley-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Radley";
  src: url("../assets/fonts/Radley-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ===== Tokens ===== */
:root {
  --color-brand: #C85100;
  --color-text: #233D00;
  --color-bg: #FFFFFF;
  --color-border: rgba(35, 61, 0, 0.12);
  --color-available: #2EB82E;
  --color-unavailable: #E0301E;

  --font-logo: "Cal Sans", system-ui, sans-serif;
  --font-body: "Kumbh Sans", system-ui, sans-serif;
  --font-mono: "Tamzen", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: "Radley", Georgia, serif;

  --header-height: 45px;
  --content-max: 1200px;
  --gutter: 22px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: var(--content-max);
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Left: logo + verse */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo {
  font-family: var(--font-logo);
  font-size: 22px;
  line-height: 1;
  color: var(--color-brand);
  white-space: nowrap;
}

.verse {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text);
  white-space: nowrap;
}

/* Center: menu */
.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list a {
  font-size: 12px;
  letter-spacing: -0.01em;
  color: var(--color-text);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="page"] {
  opacity: 1;
}

.nav-list a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Right: availability + menu button */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.availability {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-available);
  box-shadow: 0 0 0 3px rgba(46, 184, 46, 0.2);
}

.availability[data-status="unavailable"] .status-dot {
  background: var(--color-unavailable);
  box-shadow: 0 0 0 3px rgba(224, 48, 30, 0.2);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-toggle-line {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--color-text);
  transition: transform 0.3s ease, top 0.3s ease;
}

.menu-toggle-line:first-child { top: 18px; }
.menu-toggle-line:last-child  { top: 25px; }

.menu-toggle[aria-expanded="true"] .menu-toggle-line:first-child {
  top: 21.5px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:last-child {
  top: 21.5px;
  transform: rotate(-45deg);
}

/* Mobile menu panel (hidden on desktop) */
.mobile-menu {
  display: none;
}

/* ===== Tablet & mobile ===== */
@media (max-width: 1179px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px var(--gutter) 40px;
    background: var(--color-bg);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mobile-nav-list li + li {
    margin-top: 0;
  }

  .mobile-nav-list a {
    display: block;
    padding: 6px 0;
    font-size: 22px;
    color: var(--color-text);
  }

  .mobile-nav-list a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 6px;
  }

  .mobile-verse {
    margin: 32px 0 0;
    color: var(--color-text);
    opacity: 0.7;
  }

  /* Keep the scrollbar's space reserved so locking scroll doesn't shift the header */
  html {
    scrollbar-gutter: stable;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* Small phones: tighten up, keep only the dot */
@media (max-width: 599px) {
  :root {
    --gutter: 16px;
  }

  .logo {
    font-size: 20px;
  }

  .verse {
    display: none;
  }

  .status-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

main {
  flex: 1;
}

/* ===== Hero banner ===== */
.hero {
  position: relative;
  width: 100%;
  height: 692px;
  overflow: hidden;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 60%;
}

/* Darkens the bottom of the photo so the copy stays readable */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.25) 35%, transparent 55%);
  pointer-events: none;
}

/* Bottom-right copy, right edge lined up with the header's content edge */
.hero-copy {
  position: absolute;
  z-index: 1;
  right: max(var(--gutter), (100% - var(--content-max)) / 2 + var(--gutter));
  bottom: 40px;
  max-width: 420px;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.7;
  color: #FFFFFF;
  opacity: 0.8;
}

.hero-copy p {
  margin: 0;
}

.hero-copy p + p {
  margin-top: 12px;
}

@media (max-width: 1179px) {
  .hero {
    height: 560px;
  }
}

@media (max-width: 599px) {
  .hero {
    height: 440px;
  }

  /* Copy fills more of the photo here, so the shade reaches higher */
  .hero::after {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.45) 50%, transparent 80%);
  }

  /* Stays anchored right like desktop; only fills the width on the narrowest phones */
  .hero-copy {
    max-width: min(420px, 100% - 2 * var(--gutter));
    bottom: 24px;
    font-size: 13px;
    line-height: 1.6;
  }

  .hero-copy p + p {
    margin-top: 8px;
  }

  .hero-image {
    object-position: 35% 60%;
  }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

/* Same width as the FAQ page content, so the footer lines up with it */
.footer-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px var(--gutter) 48px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-heading {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text);
  opacity: 0.6;
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-links a {
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 56px;
}

.footer-social a {
  display: block;
  transition: opacity 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  opacity: 0.6;
}

.footer-social img {
  display: block;
}

.footer-copy {
  margin: 40px 0 0;
  font-size: 13px;
  color: var(--color-text);
  opacity: 0.6;
}

.footer-logo {
  display: block;
  width: fit-content;
  margin: 56px auto 0;
  font-family: var(--font-logo);
  font-size: 28px;
  line-height: 1;
  color: var(--color-brand);
}

@media (max-width: 1179px) {
  .footer-inner {
    padding-left: 48px;
    padding-right: 48px;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-copy {
    text-align: center;
  }
}

@media (max-width: 599px) {
  .footer-inner {
    padding: 48px 32px 40px;
  }

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

  .footer-social {
    margin-top: 44px;
  }

  .footer-logo {
    font-size: 24px;
  }
}

/* ===== Circle title (About / Contact h1) ===== */
/* Right-aligned stacked words with a brand circle tucked behind the lower right */
.circle-title {
  position: relative;
  isolation: isolate;
  width: fit-content;
  margin: 0 auto 48px;
  padding-right: 0.4em;
  text-align: right;
  font-family: var(--font-logo);
  font-size: 48px;
  font-weight: 400;
  line-height: 0.9;
  color: var(--color-text);
}

.circle-title::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 0;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  background: var(--color-brand);
  transform: translateY(-45%);
}

@media (max-width: 1179px) {
  .circle-title {
    font-size: 40px;
  }
}

@media (max-width: 599px) {
  .circle-title {
    font-size: 32px;
  }
}

/* ===== Contact page ===== */
.contact-page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 96px var(--gutter) 112px;
}

.page-title {
  margin: 0;
  font-family: var(--font-logo);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-text);
}

.contact-intro p {
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.7;
}

.contact-details {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.contact-label {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 400;
  opacity: 0.6;
}

.contact-email {
  font-size: 15px;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  word-break: break-all;
}

.contact-email:hover,
.contact-email:focus-visible {
  opacity: 0.7;
}

.contact-note {
  margin: 12px 0 0;
  font-size: 15px;
  opacity: 0.6;
}

@media (max-width: 1179px) {
  .contact-page {
    padding-left: 48px;
    padding-right: 48px;
  }
}

@media (max-width: 599px) {
  .contact-page {
    padding: 56px 32px 72px;
  }

  .page-title {
    font-size: 32px;
  }
}

/* ===== FAQ page ===== */
.faq-page {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 96px var(--gutter) 112px;
}

/* Same size as the About / Contact circle titles */
.faq-title {
  font-size: 48px;
  text-align: center;
}

.faq-category {
  margin-top: 56px;
}

.faq-category-title {
  margin: 0 0 20px;
  font-family: var(--font-logo);
  font-size: 24px;
  font-weight: 400;
}

.faq-list {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: rgba(35, 61, 0, 0.025);
  overflow: hidden;
}

.faq-item + .faq-item {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  margin: 0;
  font-size: inherit;
  font-weight: 400;
}

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 22px 24px;
  border: 0;
  background: none;
  font: inherit;
  font-family: var(--font-logo);
  font-size: 16px;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.faq-trigger:hover {
  background: rgba(35, 61, 0, 0.04);
}

.faq-trigger:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: -2px;
}

/* Plus icon that turns into a minus */
.faq-icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  margin-top: -0.75px;
  background: var(--color-text);
  opacity: 0.6;
  transition: transform 0.35s ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-trigger[aria-expanded="true"] .faq-icon::after {
  transform: rotate(0deg);
}

/* Height animation: grid row grows from 0fr to 1fr */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease, padding 0.35s ease;
}

.faq-item.is-open .faq-answer-inner {
  padding-bottom: 22px;
  opacity: 1;
  transform: none;
}

.faq-answer-inner p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.8;
}

.faq-answer-inner a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.faq-answer-inner a:hover,
.faq-answer-inner a:focus-visible {
  color: var(--color-brand);
}

@media (max-width: 1179px) {
  .faq-page {
    padding-left: 48px;
    padding-right: 48px;
  }

  .faq-title {
    font-size: 40px;
  }
}

@media (max-width: 599px) {
  .faq-page {
    padding: 56px 32px 72px;
  }

  .faq-title {
    font-size: 32px;
  }

  .faq-category {
    margin-top: 40px;
  }

  .faq-trigger {
    padding: 18px 18px;
  }

  .faq-answer-inner {
    padding: 0 18px;
  }

  .faq-item.is-open .faq-answer-inner {
    padding-bottom: 18px;
  }
}

/* ===== About page ===== */
.about-page {
  width: 100%;
  max-width: 684px;
  margin: 0 auto;
  padding: 96px var(--gutter) 112px;
}

.about-title {
  font-size: 44px;
  line-height: 1.1;
}

.about-body {
  max-width: 640px;
  margin-top: 40px;
}

.about-body p {
  margin: 0;
  line-height: 1.8;
  opacity: 0.8;
}

.about-body p + p {
  margin-top: 20px;
}

.about-body .about-closing {
  font-family: var(--font-serif);
  opacity: 1;
}

/* Emphasized lines in the body copy */
.about-callout {
  margin: 32px 0;
}

.about-body .about-callout p {
  margin: 0;
  font-family: var(--font-logo);
  font-size: 36px;
  line-height: 1.15;
  color: var(--color-brand);
  opacity: 1;
}

@media (max-width: 1179px) {
  .about-page {
    padding-left: 48px;
    padding-right: 48px;
  }

  .about-title {
    font-size: 36px;
  }

  .about-body .about-callout p {
    font-size: 30px;
  }
}

@media (max-width: 599px) {
  .about-page {
    padding: 56px 32px 72px;
  }

  .about-title {
    font-size: 28px;
  }

  .about-body {
    margin-top: 28px;
  }

  .about-callout {
    margin: 24px 0;
  }

  .about-body .about-callout p {
    font-size: 26px;
  }
}

/* ===== Work page ===== */
/* Two frosted glass boxes over a softened photo: pick a service on the left, read about it on the right */
.work-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 692px;
  padding: 46px var(--gutter);
  background: #3A3F3C;
  color: #FFFFFF;
}

/* Same box and crop as the Home hero; height tracks .hero at each breakpoint */
.work-backdrop,
.work-page::after {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 692px;
}

.work-backdrop {
  object-fit: cover;
  object-position: 40% 60%;
}

/* Softens the photo from above, so the image itself stays at the hero's size */
.work-page::after {
  content: "";
  -webkit-backdrop-filter: blur(6px) brightness(0.82);
  backdrop-filter: blur(6px) brightness(0.82);
}

.work-layout {
  display: grid;
  grid-template-columns: 372px minmax(0, 1fr);
  gap: 32px;
  width: 100%;
  max-width: calc(var(--content-max) - 2 * var(--gutter));
  margin: 0 auto;
}

/* Matte glass: heavy blur, muted color, soft edge highlight. Tint is heavier up top, where the sky is brightest */
.work-glass {
  position: relative;
  padding: 36px 28px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(38, 44, 42, 0.66), rgba(38, 44, 42, 0.54));
  -webkit-backdrop-filter: blur(28px) saturate(115%);
  backdrop-filter: blur(28px) saturate(115%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 24px 48px -24px rgba(0, 0, 0, 0.45);
}

/* Fine grain gives the frosted texture */
.work-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.26;
  pointer-events: none;
}

.work-glass > * {
  position: relative;
}

/* No blur support: keep the text readable on a solid tint */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .work-glass {
    background: rgba(38, 44, 42, 0.82);
  }
}

/* Thin line that fades out at both ends */
.work-rule {
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75) 50%, transparent);
}

.work-title {
  margin: 0;
  font-family: var(--font-logo);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.1;
}

.work-hint {
  margin: 10px 0 0;
  line-height: 1.6;
}

.work-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 -10px;
}

.work-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: none;
  font-family: var(--font-logo);
  font-size: 18px;
  line-height: 1.2;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.work-tab:hover {
  background: rgba(255, 255, 255, 0.1);
}

.work-tab[aria-selected="true"] {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.work-tab-icon,
.work-tab-chevron {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.work-tab-icon {
  width: 24px;
  height: 24px;
}

.work-tab-label {
  flex: 1;
}

.work-tab-chevron {
  width: 18px;
  height: 18px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.work-tab:hover .work-tab-chevron {
  opacity: 0.6;
}

.work-tab[aria-selected="true"] .work-tab-chevron {
  opacity: 1;
  transform: none;
}

.work-tab:focus-visible,
.work-cta:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

.work-detail {
  padding: 40px;
}

.work-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: work-panel-in 0.35s ease;
}

@keyframes work-panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.work-eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-panel-title {
  margin: 0;
  font-family: var(--font-logo);
  font-size: 36px;
  font-weight: 400;
  line-height: 1;
}

.work-copy {
  max-width: 620px;
}

.work-copy p {
  margin: 0;
  line-height: 1.8;
}

.work-copy p + p {
  margin-top: 16px;
}

.work-list-title {
  margin: 32px 0 14px;
  font-family: var(--font-logo);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.work-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.work-chips li {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  line-height: 1.3;
}

/* Sits at the bottom of the box however short the panel is */
.work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 32px;
}

.work-cta {
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.work-cta:hover {
  background: rgba(255, 255, 255, 0.18);
}

.work-cta-primary {
  border-color: #FFFFFF;
  background: #FFFFFF;
  color: var(--color-text);
  font-family: var(--font-mono);
}

.work-cta-primary:hover {
  background: rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  .work-panel:not([hidden]) {
    animation: none;
  }
}

@media (max-width: 1179px) {
  .work-page {
    min-height: 560px;
    padding: 56px 48px 72px;
  }

  /* The boxes outgrow the hero height here, so the photo fades into the page color */
  .work-backdrop,
  .work-page::after {
    height: 560px;
  }

  .work-page::after {
    background: linear-gradient(180deg, transparent 70%, #3A3F3C);
  }

  .work-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
  }

  .work-detail {
    padding: 32px;
  }

  .work-title {
    font-size: 32px;
  }

  .work-panel-title {
    font-size: 32px;
  }
}

/* Boxes stack: list first, description under it. The list now sits entirely over sky, so the tint stays even */
@media (max-width: 899px) {
  .work-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-glass {
    background: rgba(38, 44, 42, 0.68);
  }
}

@media (max-width: 599px) {
  .work-page {
    min-height: 440px;
    padding: 24px var(--gutter) 48px;
  }

  .work-backdrop,
  .work-page::after {
    height: 440px;
  }

  .work-backdrop {
    object-position: 35% 60%;
  }

  .work-layout {
    gap: 16px;
  }

  .work-glass {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .work-title {
    font-size: 28px;
  }

  .work-rule {
    margin: 20px 0;
  }

  .work-panel-title {
    font-size: 28px;
  }


  .work-cta {
    flex: 1;
    white-space: nowrap;
    text-align: center;
  }
}

/* ===== 404 page ===== */
.notfound-page {
  width: 100%;
  max-width: 684px;
  margin: 0 auto;
  padding: 96px var(--gutter) 112px;
  text-align: center;
}

/* Number centered in the circle; extra room keeps the circle off the headline */
.notfound-code {
  margin-bottom: 1.2em;
  font-size: 72px;
  padding-right: 0;
  text-align: center;
}

.notfound-code::before {
  right: auto;
  left: 50%;
  transform: translate(-50%, -50%);
}

.notfound-text {
  max-width: 520px;
  margin: 20px auto 0;
  line-height: 1.7;
  opacity: 0.8;
}

.notfound-cta {
  display: block;
  width: fit-content;
  margin: 32px auto 0;
  padding: 12px 28px;
  border: 1px solid var(--color-text);
  border-radius: 8px;
  color: var(--color-text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.notfound-cta:hover,
.notfound-cta:focus-visible {
  background: var(--color-text);
  color: var(--color-bg);
}

.notfound-nav {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.notfound-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}

.notfound-links a,
.notfound-help a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.notfound-links a:hover,
.notfound-links a:focus-visible,
.notfound-help a:hover,
.notfound-help a:focus-visible {
  color: var(--color-brand);
}

.notfound-help {
  margin: 32px 0 0;
  line-height: 1.7;
  opacity: 0.8;
  overflow-wrap: anywhere;
}

@media (max-width: 1179px) {
  .notfound-page {
    padding-left: 48px;
    padding-right: 48px;
  }

  .notfound-code {
    font-size: 60px;
  }
}

@media (max-width: 599px) {
  .notfound-page {
    padding: 56px 32px 72px;
  }

  .notfound-code {
    font-size: 48px;
  }
}
