/*
  Bosky Sheth — site styles
  Wardrobe-department identity: indigo dye, dressmaker's pattern paper,
  tailor's tape yellow, and a dark edit suite for the player.
  Plain CSS, mobile first. No framework.
*/

:root {
  --indigo: #1E2266;
  --muted: #4B4F7C;
  --paper: #F1F1EC;
  --paper-deep: #E4E5DC;
  --line: rgba(30, 34, 102, 0.18);
  --tape: #F2C12E;
  --tape-ink: #17171A;
  --red: #C8262E;
  --suite: #0C0E2B;
  --suite-raised: #191C48;
  --on-dark: #F1F1EC;
  --on-dark-muted: #B9BBD6;

  --display: "Rozha One", Georgia, "Times New Roman", serif;
  --body: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tag: "Courier Prime", "Courier New", Courier, monospace;

  --gutter: 16px;
  --max: 1200px;
  --radius: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--indigo);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
  /* Dressmaker's pattern paper: a cross every inch, a dot between. */
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cg fill='none' stroke='%231E2266' stroke-opacity='.16' stroke-width='1'%3E%3Cpath d='M5 8h6M8 5v6'/%3E%3C/g%3E%3Ccircle cx='40' cy='40' r='1' fill='%231E2266' fill-opacity='.16'/%3E%3C/svg%3E");
  -webkit-tap-highlight-color: transparent;
}

main { flex: 1; }

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

a { color: inherit; }

p { margin: 0; }

h1, h2, h3 { margin: 0; font-weight: 400; }

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

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--tape);
}

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--tape);
  color: var(--tape-ink);
  font-family: var(--tag);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Courier labels: the type on a garment tag or continuity sheet. */
.tag {
  font-family: var(--tag);
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lede {
  max-width: 34rem;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--muted);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: 1;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  border: 2px solid var(--indigo);
  border-radius: var(--radius);
  background: transparent;
  color: var(--indigo);
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.btn:hover { background: var(--paper-deep); }

.btn--solid {
  background: var(--indigo);
  color: var(--on-dark);
}
.btn--solid:hover { background: #2B3080; }

.btn--tape {
  border-color: var(--tape);
  background: var(--tape);
  color: var(--tape-ink);
}
.btn--tape:hover { background: #F7CF52; }

.arrow { font-family: var(--body); font-weight: 400; }

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(241, 241, 236, 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .masthead { background: rgba(241, 241, 236, 0.82); backdrop-filter: blur(8px); }
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.wordmark {
  font-family: var(--display);
  font-size: 1.375rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  padding-block: 8px;
}

.nav {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: 12px 8px;
  font-family: var(--tag);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--tape);
  text-decoration-thickness: 5px;
  text-underline-offset: 6px;
}

@media (min-width: 720px) {
  .masthead__inner { min-height: 72px; }
  .wordmark { font-size: 1.625rem; }
  .nav { gap: 12px; }
}

/* ---------- home: hero ---------- */

.hero {
  position: relative;
  padding-top: 40px;
}

.hero__grid {
  display: grid;
  gap: 28px;
}

.hero__name {
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(4.25rem, 24vw, 11.5rem);
  line-height: 0.82;
  letter-spacing: -0.01em;
}

.hero__lede { margin-top: 22px; }

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

.hero__photo {
  position: relative;
  margin: 0;
  width: 78%;
  justify-self: end;
}

/* The whole photo, uncropped: its own shape, no frame, no rounded corners. */
.hero__photo img {
  width: 100%;
  height: auto;
}

.hero__caption {
  margin-top: 8px;
  color: var(--muted);
}

@media (min-width: 900px) {
  .hero { padding-top: 64px; }
  .hero__grid {
    grid-template-columns: 1.25fr 1fr;
    align-items: end;
    gap: 48px;
  }
  .hero__text { padding-bottom: 72px; }
  .hero__photo { width: 100%; }
}

/* ---------- home: "Seen on", a slow scrolling strip of channel names (text only) ---------- */

.marquee {
  --marquee-gap: clamp(28px, 6vw, 64px);
  padding-top: 36px;
}

.marquee__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.marquee__label { color: var(--muted); }

.marquee__toggle {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.marquee__toggle:hover { color: var(--indigo); }

.marquee__viewport {
  margin-top: 4px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

/* Two identical lists side by side; moving left by exactly one list's width loops with no jump. */
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-duration, 50s) linear infinite;
}

.marquee__list {
  display: flex;
  align-items: center;
  gap: var(--marquee-gap);
  margin: 0;
  padding: 16px var(--marquee-gap) 16px 0; /* trailing space = the gap, so the join is even */
  list-style: none;
  white-space: nowrap;
}

.marquee__item--big {
  font-family: var(--display);
  font-size: clamp(2.125rem, 8vw, 3.5rem);
  line-height: 1;
}

.marquee__item--small {
  font-weight: 600;
  font-size: clamp(0.9375rem, 2.6vw, 1.125rem);
  letter-spacing: 0.16em;
  color: var(--muted);
}

.marquee.is-paused .marquee__track { animation-play-state: paused; }
@media (hover: hover) {
  .marquee__viewport:hover .marquee__track { animation-play-state: paused; }
}

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

/* Motion turned off: a still row of the names, no copy, no button. */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; width: auto; }
  .marquee__list { flex-wrap: wrap; row-gap: 8px; padding: 16px var(--gutter); white-space: normal; }
  .marquee__list[aria-hidden="true"] { display: none; }
  .marquee__toggle { display: none; }
  .marquee__viewport { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- home: the rail (one hanger per format) ---------- */

.rail {
  padding-block: 48px 56px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}

.more {
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.rail__rod {
  position: relative;
  margin-top: 28px;
}
/* The rail the hangers hang from. */
.rail__rod::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  border-radius: 2px;
  background: var(--indigo);
}

.rail__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 62%;
  gap: 14px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 12px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.rail__item { scroll-snap-align: start; }

.hanger {
  position: relative;
  display: block;
  padding-top: 26px;
  text-decoration: none;
}
/* The hook over the rod. */
.hanger::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 18px;
  height: 22px;
  margin-left: -9px;
  border: 3px solid var(--indigo);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.hanger__frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--suite);
}
.hanger__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 400ms var(--ease);
}
.hanger:hover .hanger__frame img { scale: 1.04; }

.hanger__count {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.hanger__name {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.05;
}

@media (min-width: 720px) {
  .rail__list { grid-auto-columns: 30%; }
}
@media (min-width: 1100px) {
  .rail__list {
    grid-auto-flow: row;
    grid-template-columns: repeat(6, 1fr);
    margin: 0;
    padding: 0;
    overflow: visible;
  }
}

/* ---------- home: about + contact bands ---------- */

.band {
  padding-block: 56px;
  border-top: 1px solid var(--line);
}

.band__grid {
  display: grid;
  gap: 20px;
}

.band__text {
  max-width: 40rem;
  font-size: 1.1875rem;
}

@media (min-width: 900px) {
  .band { padding-block: 80px; }
  .band__grid { grid-template-columns: 1fr 1.6fr; gap: 48px; }
}

.band--dark {
  background: var(--indigo);
  color: var(--on-dark);
  border-top: 0;
}
.band--dark .lede { color: var(--on-dark-muted); }
.band--dark :focus-visible { outline-color: var(--on-dark); }

.direct {
  display: grid;
  gap: 4px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(1.25rem, 5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
}
.direct a {
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}

/* ---------- footer ---------- */

.footer {
  padding-block: 40px 32px;
  background: var(--suite);
  color: var(--on-dark);
}
.footer :focus-visible { outline-color: var(--on-dark); }

.footer__grid {
  display: grid;
  gap: 24px;
}

.footer__name {
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1;
}

.footer__role,
.footer__place { color: var(--on-dark-muted); margin-top: 6px; }

.footer__links {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__links a {
  display: inline-block;
  padding-block: 6px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.footer__small {
  margin-top: 32px;
  color: var(--on-dark-muted);
}

@media (min-width: 720px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

/* ---------- page heads ---------- */

.page-head {
  padding-block: 40px 20px;
}

.page-title {
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(3.5rem, 18vw, 7.5rem);
  line-height: 0.88;
}

.page-head .lede { margin-top: 16px; }

@media (min-width: 900px) {
  .page-head { padding-block: 64px 28px; }
}

/* ---------- work: the ruler (one tick per project) ---------- */

.ruler {
  display: flex;
  height: 30px;
  margin-top: 28px;
  border: 1px solid var(--indigo);
  border-radius: 2px;
  overflow: hidden;
  background: #FBFAF4;
}

.ruler__seg {
  --n: 1;
  position: relative;
  flex: var(--n) 1 0;
  min-width: 6px;
  border-right: 2px solid var(--indigo);
  background-image:
    linear-gradient(90deg, var(--indigo) 1px, transparent 1px),
    linear-gradient(90deg, var(--indigo) 1px, transparent 1px);
  background-size: calc(1000% / var(--n)) 16px, calc(100% / var(--n)) 8px;
  background-repeat: repeat-x;
  background-position: 0 0, 0 0;
  cursor: pointer;
  transition: background-color 200ms var(--ease);
}
.ruler__seg:last-child { border-right: 0; }
.ruler__seg.is-active { background-color: var(--tape); }

.ruler-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
}

/* ---------- work: format tabs ---------- */

.formats {
  position: sticky;
  top: 60px;
  z-index: 10;
  background: rgba(241, 241, 236, 0.96);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .formats { top: 72px; }
}

.formats__list {
  position: relative;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 10px var(--gutter);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: var(--max);
  margin-inline: auto;
}
.formats__list::-webkit-scrollbar { display: none; }

.formats__link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--indigo);
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.formats__link:hover { background: var(--paper-deep); }
.formats__link[aria-current="true"] {
  background: var(--indigo);
  color: var(--on-dark);
}
.formats__count {
  font-family: var(--tag);
  font-size: 0.8125rem;
  font-weight: 400;
}

/* ---------- work: project grid ---------- */

.panel {
  padding-block: 28px 64px;
}

.panel__head {
  display: grid;
  gap: 6px;
  margin-bottom: 22px;
}

.panel__title {
  font-family: var(--display);
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
}

.panel__summary { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
  .grid--poster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--poster { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card__frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--suite);
  container-type: inline-size;
}
.grid--poster .card__frame { aspect-ratio: 2 / 3; }

.card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 400ms var(--ease);
}
a.card:hover .card__frame img { scale: 1.04; }

/* A 4:3 YouTube thumbnail has black bars; in a tall frame, size it so only the picture shows. */
.hanger__frame img.is-letterboxed,
.card__frame img.is-letterboxed {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 133.4%;
  max-width: none;
  object-fit: fill;
  translate: -50% -50%;
}

/* Play cue: a yellow swing tag in the corner. */
.card__cue {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 7px;
  border-radius: 2px;
  background: var(--tape);
  color: var(--tape-ink);
  font-family: var(--tag);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}
.card__cue::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 7px solid currentColor;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
}
.card__cue--photo::before {
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 1px;
}

.card__title {
  display: -webkit-box;
  margin-top: 10px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card__meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

a.card:hover .card__title { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 720px) {
  .card__title { font-size: 1.0625rem; }
  .card__cue { left: 10px; bottom: 10px; }
}

/* Title card: a project with no video and no photo yet. Indigo cloth, a stitched edge. */
.title-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px 16px;
  background: var(--indigo);
  color: var(--on-dark);
  text-align: center;
}
.title-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.5px dashed rgba(241, 241, 236, 0.5);
  border-radius: 2px;
  pointer-events: none;
}
.title-card__format {
  color: var(--tape);
  font-family: var(--tag);
  font-size: clamp(0.5625rem, 5cqw, 0.75rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.title-card__title {
  display: -webkit-box;
  font-family: var(--display);
  font-size: clamp(1rem, 10cqw, 2.25rem);
  line-height: 1.05;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.loading,
.empty {
  padding: 24px 0;
  color: var(--muted);
}

/* ---------- the edit suite (video / photo player) ---------- */

.suite {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--suite);
  color: var(--on-dark);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.suite::backdrop { background: rgba(12, 14, 43, 0.8); }
.suite :focus-visible { outline-color: var(--on-dark); }

.suite__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

.suite__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(8px, env(safe-area-inset-top)) var(--gutter) 8px;
}

.suite__pos { color: var(--on-dark-muted); }

.suite__close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--on-dark-muted);
  border-radius: var(--radius);
  background: transparent;
  color: var(--on-dark);
  font-family: var(--tag);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.suite__close:hover { border-color: var(--on-dark); }

.suite__screen {
  position: relative;
  margin-top: auto; /* centres the player vertically on a phone */
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.suite__screen iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.suite__screen--photo {
  aspect-ratio: auto;
  display: flex;
  justify-content: center;
  background: var(--suite);
}
.suite__screen--photo img {
  max-height: 72vh;
  width: auto;
  object-fit: contain;
}

.suite__info {
  margin-bottom: auto;
  padding: 18px var(--gutter) max(24px, env(safe-area-inset-bottom));
}

.suite__title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.credits {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 16px 0 0;
}
.credits dt {
  color: var(--on-dark-muted);
  font-family: var(--tag);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 3px;
}
.credits dd { margin: 0; }

.suite__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.suite__nav .btn { color: var(--on-dark); border-color: var(--on-dark-muted); }
.suite__nav .btn:hover { background: var(--suite-raised); border-color: var(--on-dark); }
.suite__nav .btn[disabled] { opacity: 0.4; cursor: default; }
.suite__nav .btn--tape { color: var(--tape-ink); border-color: var(--tape); }
.suite__nav .btn--tape:hover { background: #F7CF52; }
.suite__spacer { flex: 1; }

@media (min-width: 900px) {
  .suite {
    width: min(1100px, calc(100% - 64px));
    height: auto;
    max-height: calc(100% - 64px);
    margin: auto;
    border-radius: 4px;
  }
  .suite__inner { min-height: 0; }
  .suite__info { padding: 22px 28px 28px; }
  .suite__bar { padding: 10px 28px; }
}

@media (prefers-reduced-motion: no-preference) {
  .suite[open] { animation: suite-in 240ms var(--ease); }
  @keyframes suite-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- about ---------- */

.about {
  display: grid;
  gap: 32px;
  padding-block: 40px 56px;
}

.about__photo {
  margin: 0;
  width: 86%;
}
.about__photo img {
  width: 100%;
  height: auto;
}

.about__bio {
  margin-top: 22px;
  font-size: 1.1875rem;
  line-height: 1.65;
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
    align-items: start;
    padding-block: 64px 80px;
  }
  .about__photo { width: 100%; position: sticky; top: 104px; }
}

.columns {
  display: grid;
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.columns__title {
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1.1;
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.plain-list li {
  padding-block: 8px;
  border-bottom: 1px dashed var(--line);
}

@media (min-width: 720px) {
  .columns { grid-template-columns: 1fr 1fr; }
}

.services {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

/* Each service sits under a stitched seam. */
.service {
  padding: 22px 0 24px;
  border-top: 2px dashed var(--indigo);
}
.service__name {
  font-family: var(--display);
  font-size: 1.625rem;
  line-height: 1.1;
}
.service__text {
  margin-top: 8px;
  color: var(--muted);
}

@media (min-width: 720px) {
  .services { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
@media (min-width: 1100px) {
  .services { grid-template-columns: repeat(4, 1fr); column-gap: 32px; }
}

/* ---------- contact ---------- */

.contact {
  display: grid;
  gap: 40px;
  padding-block: 8px 64px;
}

@media (min-width: 900px) {
  .contact { grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
}

.reach {
  display: grid;
  gap: 22px;
  margin: 0;
}
.reach dt { color: var(--muted); }
.reach dd {
  margin: 4px 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.reach a { text-decoration-thickness: 2px; text-underline-offset: 5px; }

.form {
  display: grid;
  gap: 20px;
  padding: 22px 18px 26px;
  border: 1.5px solid var(--indigo);
  border-radius: var(--radius);
  background: #FBFAF4;
}
@media (min-width: 720px) {
  .form { grid-template-columns: 1fr 1fr; padding: 32px; gap: 22px 20px; }
  .field--wide, .form__end, .form__status { grid-column: 1 / -1; }
}

.field { display: grid; gap: 6px; align-content: start; }

.field label {
  font-weight: 600;
  font-size: 1rem;
}
.field .optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid var(--muted);
  border-radius: var(--radius);
  background: #fff;
  font-size: 1.0625rem; /* 17px: no zoom-on-focus on iPhone */
  line-height: 1.4;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--indigo) 50%), linear-gradient(135deg, var(--indigo) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--indigo);
  outline-offset: 1px;
}
.field [aria-invalid="true"] { border-color: var(--red); }

.field__error {
  min-height: 0;
  color: var(--red);
  font-size: 0.9375rem;
  font-weight: 600;
}
.field__error:empty { display: none; }

/* Honeypot: off screen for people, still in the form for bots. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form__end .btn { min-width: 180px; }
.form__end .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }

.form__status:empty { display: none; }

.notice {
  padding: 16px 18px;
  border-left: 6px solid var(--indigo);
  background: #fff;
}
.notice--ok { border-left-color: #1F7A4D; }
.notice--fail { border-left-color: var(--red); }
.notice__title { font-weight: 700; }
.notice p + p { margin-top: 6px; }
.notice a { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- sheet check + 404 ---------- */

.check {
  display: grid;
  gap: 18px;
  max-width: 46rem;
  padding-block: 8px 64px;
}
.check__box {
  padding: 18px;
  border: 1.5px solid var(--indigo);
  border-radius: var(--radius);
  background: #FBFAF4;
}
.check__box h2 { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; margin-bottom: 8px; }
.check__box ul { margin: 8px 0 0; padding-left: 1.2em; }
.check__box li + li { margin-top: 6px; }
.check__good { border-color: #1F7A4D; }
.check__warn { border-color: var(--red); }

/* ---------- motion preferences ---------- */

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

.spaced { margin-top: 22px; }
.spaced-sm { margin-top: 10px; }
