:root {
  --coral: #f35438;
  --coral-deep: #d93f2a;
  --ink: #171714;
  --paper: #fffefb;
  --muted: #6f6d65;
  --line: rgba(23, 23, 20, 0.16);
  --gutter: clamp(1.25rem, 4.25vw, 4.75rem);
  --content: 92rem;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--coral);
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

::selection {
  color: var(--paper);
  background: var(--coral-deep);
}

.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 {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--paper);
  border-radius: 999px;
  transform: translateY(-200%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.debug-stack {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  right: 0.75rem;
  width: min(17rem, calc(100vw - 1.5rem));
  max-height: calc(100svh - 1.5rem);
  display: grid;
  gap: 0.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

.debug-stack[hidden] {
  display: none;
}

.debug-panel {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(20, 19, 17, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.7rem;
  box-shadow: 0 0.85rem 2.5rem rgba(20, 12, 8, 0.2);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  font-size: 0.72rem;
}

.debug-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.65rem;
  padding: 0.55rem 0.55rem 0.55rem 0.8rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.debug-panel__header > div {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.debug-panel__status {
  width: 0.45rem;
  height: 0.45rem;
  background: #ff684b;
  border-radius: 50%;
  box-shadow: 0 0 0 0.2rem rgba(255, 104, 75, 0.16);
}

.debug-panel__status--shore {
  background: #ffd6cc;
  box-shadow: 0 0 0 0.2rem rgba(255, 214, 204, 0.14);
}

.debug-panel__toggle {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 0.35rem;
  cursor: pointer;
}

.debug-panel__toggle:hover,
.debug-panel__toggle:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.debug-panel__toggle-icon {
  font-size: 1rem;
  line-height: 1;
}

.debug-panel__controls {
  display: grid;
  gap: 1rem;
  padding: 0.25rem 0.8rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.debug-panel[data-collapsed="true"] .debug-panel__controls {
  display: none;
}

.debug-switch,
.debug-control {
  display: grid;
  gap: 0.5rem;
}

.debug-switch {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding-top: 0.75rem;
}

.debug-switch--compact {
  padding-top: 0;
}

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

.debug-control output {
  color: rgba(255, 255, 255, 0.58);
  font-variant-numeric: tabular-nums;
}

.debug-switch__control {
  position: relative;
  display: block;
}

.debug-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.debug-switch__track {
  position: relative;
  display: block;
  width: 2.1rem;
  height: 1.2rem;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
  transition: background 140ms ease;
}

.debug-switch__track::after {
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 0.8rem;
  height: 0.8rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  content: "";
  transition: transform 140ms ease, background 140ms ease;
}

.debug-switch input:checked + .debug-switch__track {
  background: var(--coral);
}

.debug-switch input:checked + .debug-switch__track::after {
  background: white;
  transform: translateX(0.9rem);
}

.debug-switch input:focus-visible + .debug-switch__track {
  outline: 2px solid white;
  outline-offset: 2px;
}

.debug-control input[type="range"] {
  width: 100%;
  height: 0.2rem;
  margin: 0.25rem 0;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  cursor: ew-resize;
}

.debug-control input[type="range"]::-webkit-slider-thumb {
  width: 0.85rem;
  height: 0.85rem;
  appearance: none;
  background: white;
  border: 2px solid rgba(20, 19, 17, 0.45);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--coral);
}

.debug-control input[type="range"]::-moz-range-thumb {
  width: 0.65rem;
  height: 0.65rem;
  background: white;
  border: 2px solid var(--coral);
  border-radius: 50%;
}

.debug-control input[type="range"]:focus-visible {
  outline: 2px solid white;
  outline-offset: 0.3rem;
}

.debug-panel__reset {
  justify-self: start;
  padding: 0;
  color: rgba(255, 255, 255, 0.58);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  font: inherit;
}

.debug-panel__reset:hover,
.debug-panel__reset:focus-visible {
  color: white;
  border-color: white;
  outline: none;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  color: white;
  background: var(--coral);
}

.surface {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.surface--coral {
  background: var(--coral);
}

.hero-nav {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: clamp(1.4rem, 3vw, 2.75rem) var(--gutter);
}

.wordmark {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 0.82;
  letter-spacing: -0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.contact-link {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding-bottom: 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  text-decoration: none;
  text-transform: uppercase;
  transition: gap 180ms ease, border-color 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  gap: 1rem;
  border-color: white;
}

.hero-center {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  justify-items: center;
  width: min(88vw, 42rem);
  transform: translate(-50%, -50%);
}

.logo-buoy {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(10.5rem, 19vw, 16.5rem);
  aspect-ratio: 1;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  box-shadow:
    0 0 0 0.5rem rgba(185, 45, 25, 0.12),
    0 1.25rem 4rem rgba(119, 30, 16, 0.15);
  text-decoration: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.logo-mark {
  display: block;
  width: 72%;
  height: auto;
  -webkit-user-drag: none;
  pointer-events: none;
  -webkit-filter: brightness(0) saturate(100%) invert(44%) sepia(93%) saturate(2834%) hue-rotate(340deg) brightness(104%) contrast(91%);
  filter: brightness(0) saturate(100%) invert(44%) sepia(93%) saturate(2834%) hue-rotate(340deg) brightness(104%) contrast(91%);
}

.about {
  position: relative;
  isolation: isolate;
  min-height: 120vh;
  padding-top: clamp(6.5rem, 12vw, 11rem);
  overflow: visible;
  color: var(--ink);
  background: var(--paper);
}

.shoreline {
  position: absolute;
  z-index: 1;
  top: -4.35rem;
  left: 0;
  width: 100%;
  height: 4.5rem;
  overflow: visible;
  pointer-events: auto;
}

.shoreline path {
  fill: var(--paper);
}

.about-inner {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-label {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.editorial-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.75fr);
  gap: clamp(3rem, 9vw, 10rem);
  align-items: start;
  padding-block: 0 clamp(2.75rem, 5vw, 4.75rem);
}

.editorial-primary {
  display: grid;
  gap: clamp(2.25rem, 4vw, 3.5rem);
}

.editorial-intro h1 {
  max-width: 14ch;
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(3.2rem, 6.3vw, 6.5rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--coral);
}

.editorial-intro h1 span {
  color: var(--coral);
  font-style: italic;
}

.title-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 48rem;
}

.title-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.6;
}

.profile-aside {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: rgba(243, 84, 56, 0.035);
  border: 1px solid rgba(23, 23, 20, 0.11);
  border-radius: 1.25rem;
  box-shadow: 0 1rem 3rem rgba(23, 23, 20, 0.035);
}

.profile-portrait {
  width: clamp(8rem, 14vw, 10rem);
  aspect-ratio: 1;
  margin: 0;
  padding: 0.3rem;
  overflow: hidden;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.profile-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-lead {
  position: relative;
  margin: 0;
  padding-left: 1.4rem;
  color: var(--ink);
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  font-style: italic;
  line-height: 1.62;
}

.profile-lead::before {
  position: absolute;
  top: -0.25rem;
  left: 0;
  color: var(--coral);
  content: "“";
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1.7rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
}

.profile-lead p {
  margin: 0;
}

.intro-cta {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 0 0.75rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  transition: color 180ms ease, padding-inline 180ms ease;
}

.intro-cta:hover,
.intro-cta:focus-visible {
  padding-inline: 0.75rem;
  color: var(--coral-deep);
}

.services,
.projects {
  display: grid;
  grid-template-columns: minmax(12rem, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(3rem, 9vw, 10rem);
  margin-top: clamp(8rem, 17vw, 15rem);
}

.section-label--services,
.section-label--projects {
  margin: 0;
}

.section-label h2 {
  margin: 0;
  font: inherit;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.service-item {
  min-width: 0;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.75rem, 3.5vw, 3rem) clamp(2.25rem, 4.5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.service-item:nth-child(even) {
  padding-right: 0;
  padding-left: clamp(1.75rem, 3.5vw, 3rem);
  border-left: 1px solid var(--line);
}

.service-item h3 {
  max-width: 15ch;
  margin: 0 0 1rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.service-item p {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.6;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 1.5rem;
  gap: 1.25rem;
  align-items: center;
  min-height: 6.25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 180ms ease, padding 180ms ease;
}

.project-link__url {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-link__name {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.project-link__arrow {
  font-size: 1.25rem;
  transition: transform 180ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  padding-inline: 0.75rem;
  color: var(--coral-deep);
}

.project-link:hover .project-link__arrow,
.project-link:focus-visible .project-link__arrow {
  transform: translate(0.25rem, -0.25rem);
}

.availability {
  display: grid;
  place-items: center;
  margin-top: clamp(9rem, 18vw, 17rem);
  padding-block: clamp(5rem, 10vw, 9rem);
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--coral-deep);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.availability h2 {
  margin: 0 0 2rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.7rem, 6.5vw, 6.5rem);
  font-weight: 500;
  line-height: 0.93;
  letter-spacing: -0.05em;
}

.email-cta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding-bottom: 0.35rem;
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 650;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  transition: gap 180ms ease, color 180ms ease;
}

.email-cta:hover,
.email-cta:focus-visible {
  gap: 2.25rem;
  color: var(--coral-deep);
}

.footer {
  display: flex;
  gap: 2rem;
  align-items: flex-end;
  justify-content: space-between;
  padding-block: 2.75rem 3.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.6;
}

.footer p {
  max-width: 42rem;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 0.7rem;
  white-space: nowrap;
}

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

.legal-page {
  min-height: 100svh;
  background: var(--paper);
}

.legal-header {
  color: white;
  background: var(--coral);
}

.legal-nav {
  position: static;
}

.legal-nav .wordmark:focus-visible,
.legal-nav .contact-link:focus-visible {
  outline: 2px solid white;
  outline-offset: 0.4rem;
}

.legal-main {
  width: min(100%, 70rem);
  margin-inline: auto;
  padding: clamp(5rem, 11vw, 9rem) var(--gutter) clamp(7rem, 14vw, 12rem);
}

.legal-heading {
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.legal-heading .eyebrow {
  margin-bottom: 1.25rem;
}

.legal-heading h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--coral);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(3.2rem, 8vw, 7rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.legal-intro {
  max-width: 48rem;
  margin: clamp(2.5rem, 5vw, 4.5rem) 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.65;
}

.legal-content {
  display: grid;
  gap: 0;
  margin-top: clamp(4rem, 8vw, 7rem);
  counter-reset: legal-section;
  border-top: 1px solid var(--line);
}

.legal-section {
  display: grid;
  grid-template-columns: minmax(9rem, 0.4fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  counter-increment: legal-section;
}

.legal-section h2 {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.legal-section h2::before {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--coral-deep);
  content: "0" counter(legal-section);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.13em;
}

.legal-section p {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.7;
}

.legal-footer-wrap {
  border-top: 1px solid var(--line);
}

.legal-footer-wrap .footer {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.no-script {
  position: fixed;
  z-index: 20;
  right: 1rem;
  bottom: 1rem;
  padding: 0.8rem 1rem;
  color: white;
  background: var(--ink);
  border-radius: 0.5rem;
  font-size: 0.78rem;
}

@media (min-width: 761px) {
  .profile-portrait {
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .contact-link__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .editorial-intro,
  .services,
  .projects {
    grid-template-columns: 1fr;
  }

  .editorial-intro {
    gap: 3rem;
    padding-block: 0 3.5rem;
  }

  .editorial-intro h1 {
    max-width: 13ch;
  }

  .title-copy {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 36rem;
  }

  .profile-aside {
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 1.5rem;
    align-items: center;
    max-width: 38rem;
    padding: 1.25rem;
  }

  .profile-portrait {
    width: 7rem;
  }

  .profile-lead {
    font-size: 0.98rem;
  }

  .services,
  .projects {
    gap: 2.5rem;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-item,
  .service-item:nth-child(even) {
    padding: 1.75rem 0 2rem;
    border-left: 0;
  }

  .project-link {
    grid-template-columns: minmax(0, 1fr) 1.5rem;
    min-height: 5.25rem;
  }

  .project-link__url {
    display: none;
  }

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

  .legal-section {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
