:root {
  --oak: #371f17;
  --leather: #5e3e2e;
  --birch: #f6f0e6;
  --river: #5f6d6c;
  --cabin: #936538;
  --sandbox: #bdae8f;
  --evergreen: #6d6a46;
  --forest: #403f34;
  --ink: #241914;
  --paper: #fbf8f2;
  --rule-light: rgba(246, 240, 230, 0.22);
  --rule-dark: rgba(55, 31, 23, 0.2);
  --font-display: "Bodoni Moda", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--birch);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea {
  font-family: var(--font-body);
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  background: var(--sandbox);
  color: var(--oak);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--birch);
  color: var(--oak);
  transform: translateY(-160%);
}

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

.section-shell {
  width: min(1240px, calc(100% - 6rem));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(6rem, 11vw, 10rem) 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  padding: 0 3rem;
  color: var(--birch);
  border-bottom: 1px solid transparent;
  transition:
    min-height 280ms var(--ease),
    background-color 280ms var(--ease),
    border-color 280ms var(--ease);
}

.site-header.is-scrolled {
  min-height: 4.4rem;
  background: rgba(55, 31, 23, 0.94);
  border-color: var(--rule-light);
  backdrop-filter: blur(16px);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}

.site-nav a {
  position: relative;
  padding: 0.4rem 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms var(--ease);
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: #130c09;
  color: var(--birch);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 108%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: 68% center;
  will-change: transform;
  animation: hero-arrive 1.4s var(--ease) both;
}

.hero-shade {
  z-index: -1;
  background: rgba(20, 12, 9, 0.28);
}

.hero-content {
  width: min(1240px, calc(100% - 6rem));
  margin-inline: auto;
  padding: 10rem 0 clamp(5rem, 9vw, 8rem);
}

.hero-role,
.eyebrow {
  margin: 0 0 1.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-role {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--sandbox);
  animation: rise-in 800ms 150ms var(--ease) both;
}


.hero h1 {
  max-width: 7ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(5.5rem, 17vw, 13rem);
  font-weight: 400;
  line-height: 0.73;
  letter-spacing: -0.075em;
  animation: rise-in 900ms 220ms var(--ease) both;
}

.hero-intro {
  max-width: 34rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  color: rgba(246, 240, 230, 0.86);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
  animation: rise-in 900ms 320ms var(--ease) both;
}

.text-link,
.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: fit-content;
  padding: 0.65rem 0;
  border-bottom: 1px solid currentColor;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link span,
.project-link span,
.send-button span:last-child {
  transition: transform 280ms var(--ease);
}

.text-link:hover span,
.project-link:hover span,
.send-button:hover span:last-child {
  transform: translate(0.2rem, -0.2rem);
}

.text-link--light {
  animation: rise-in 900ms 400ms var(--ease) both;
}

.hero-note {
  position: absolute;
  right: 3rem;
  bottom: 5rem;
  margin: 0;
  color: rgba(246, 240, 230, 0.68);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.about {
  background: var(--birch);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  gap: clamp(4rem, 9vw, 9rem);
  align-items: center;
}

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

.about h2,
.work h2,
.contact h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.about h2 {
  max-width: 13ch;
  font-size: clamp(3rem, 6.4vw, 6rem);
  line-height: 1.02;
}

.about-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule-dark);
  color: var(--leather);
}

.about-body p {
  margin: 0;
}

.portrait-wrap {
  margin: 0;
}

.portrait-frame {
  position: relative;
  isolation: isolate;
  padding: 0.75rem;
  border: 1px solid var(--rule-dark);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  z-index: -1;
  background: var(--sandbox);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 0.86;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(0.82) contrast(1.03);
}

.portrait-wrap figcaption {
  margin-top: 2.6rem;
  padding-left: 2.25rem;
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
}

.work {
  background: var(--oak);
  color: var(--birch);
}

.work-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.4fr);
  gap: 4rem;
  align-items: end;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.eyebrow--dark {
  color: var(--sandbox);
}

.work h2 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 7.5vw, 7.5rem);
  line-height: 0.94;
}

.work-heading > p {
  margin: 0 0 0.5rem;
  color: rgba(246, 240, 230, 0.68);
}

.projects {
  border-bottom: 1px solid rgba(246, 240, 230, 0.32);
}

.project {
  display: grid;
  grid-template-columns:
    4rem
    minmax(0, calc(44% - 4rem))
    minmax(0, 56%);
  align-items: stretch;
  padding: clamp(2.5rem, 4vw, 3.5rem) 0;
  border-top: 1px solid rgba(246, 240, 230, 0.32);
}

.project-number {
  padding-top: 0;
  color: var(--sandbox);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1;
}

.project-copy {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-items: flex-start;
  min-height: 100%;
  padding: 0 clamp(2rem, 4vw, 3.75rem) 0 1rem;
}

.project-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.9rem;
}

.project-brand img {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  object-fit: contain;
}

.project h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 4.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
}

.project-purpose {
  max-width: 34rem;
  min-height: 7rem;
  margin: 1.75rem 0 0;
  color: rgba(246, 240, 230, 0.84);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
}

.project-outcome {
  align-self: end;
  width: 100%;
  max-width: 34rem;
  min-height: 8rem;
  margin: 0 0 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-light);
}

.project-outcome span {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--sandbox);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-outcome p {
  margin: 0;
  color: rgba(246, 240, 230, 0.64);
}

.project-link {
  margin-top: 0;
}

.project-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto auto;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: clamp(1.5rem, 2.5vw, 2.4rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 42%, rgba(189, 174, 143, 0.2), transparent 38%),
    var(--paper);
  color: var(--oak);
}

.project-visual-meta,
.project-visual-number,
.project-visual-tagline {
  position: relative;
  z-index: 1;
}

.project-visual-meta {
  font-size: clamp(0.65rem, 0.85vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.project-visual-number {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  line-height: 1;
}

.project-visual-mark {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  width: clamp(7rem, 34%, 12.5rem);
  aspect-ratio: 1;
  background: linear-gradient(145deg, #24140f 0%, var(--oak) 52%, var(--leather) 100%);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  transition:
    filter 500ms ease,
    transform 900ms var(--ease);
}

.project--vibelint .project-visual-mark {
  -webkit-mask-image: url("assets/vibelint-mark.png");
  mask-image: url("assets/vibelint-mark.png");
}

.project--omnicall .project-visual-mark {
  -webkit-mask-image: url("assets/omnicall-mark.png");
  mask-image: url("assets/omnicall-mark.png");
}

.project--founderroute .project-visual-mark {
  -webkit-mask-image: url("assets/founderroute-mark.png");
  mask-image: url("assets/founderroute-mark.png");
}

.project-visual-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}

.project-visual-name {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.project-visual-tagline {
  grid-column: 1 / -1;
  margin-top: 0.6rem;
  color: rgba(55, 31, 23, 0.62);
  font-size: clamp(0.72rem, 1.05vw, 0.9rem);
  letter-spacing: 0.09em;
}

.project-visual:hover .project-visual-mark {
  filter: brightness(1.08);
  transform: scale(1.035);
}

.contact {
  background: var(--birch);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(430px, 1fr);
  gap: clamp(4rem, 10vw, 10rem);
  align-items: start;
}

.contact h2 {
  max-width: 9ch;
  font-size: clamp(3.7rem, 7.5vw, 7.4rem);
  line-height: 0.95;
}

.contact-intro > p:last-child {
  max-width: 31rem;
  margin: 2.5rem 0 0;
  color: var(--leather);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--rule-dark);
  border-radius: 2px;
  color: var(--oak);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    background-color 260ms ease,
    border-color 260ms ease,
    color 260ms ease;
}

.contact-email:hover {
  background: var(--oak);
  border-color: var(--oak);
  color: var(--birch);
}

.contact-email svg {
  flex-shrink: 0;
  transition: transform 260ms ease;
}

.contact-email:hover svg {
  transform: translateY(-1px);
}

.contact-form {
  padding-top: 0.5rem;
}

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

.field {
  display: block;
  margin-bottom: 2.25rem;
}

.field > span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
  color: var(--cabin);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field small {
  color: var(--river);
  font-size: inherit;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0 1rem;
  border: 0;
  border-bottom: 1px solid var(--rule-dark);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--oak);
  font-size: 1.05rem;
  transition: border-color 220ms ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--oak);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(55, 31, 23, 0.43);
}

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

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #7b281f;
}

.website-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-action {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 3.75rem;
}

.send-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.5rem;
  min-width: 13.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--oak);
  border-radius: 0;
  background: var(--oak);
  color: var(--birch);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition:
    background-color 220ms ease,
    color 220ms ease;
}

.send-button:hover {
  background: transparent;
  color: var(--oak);
}

.send-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.form-status {
  margin: 0;
  color: var(--leather);
  font-size: 0.88rem;
}

.form-status.is-error {
  color: #7b281f;
}

.form-privacy,
.contact-form noscript {
  display: block;
  margin: 1.25rem 0 0;
  color: var(--river);
  font-size: 0.76rem;
}

.site-footer {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2.25rem 3rem;
  background: var(--oak);
  color: rgba(246, 240, 230, 0.72);
  border-top: 1px solid var(--rule-light);
  font-size: 0.76rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  text-align: right;
}

.wordmark--footer {
  color: var(--birch);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(246, 240, 230, 0.52);
  transition: color 260ms ease;
}

.social-icon:hover {
  color: var(--birch);
}

.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 800ms var(--ease),
    transform 800ms var(--ease);
}

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

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-arrive {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1180px) and (min-width: 1021px) {
  .project {
    grid-template-columns: 3.25rem 1fr;
    padding: 2.75rem 0;
  }

  .project-copy {
    min-height: 0;
    padding: 0 0 2.75rem 1rem;
  }

  .project-brand {
    margin-top: 0;
  }

  .project-purpose,
  .project-outcome {
    min-height: 0;
  }

  .project-outcome {
    margin: 2rem 0;
  }

  .project-visual {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1020px) {
  .section-shell,
  .hero-content {
    width: min(100% - 3rem, 800px);
  }

  .site-header {
    padding-inline: 1.5rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about h2,
  .contact h2 {
    max-width: 11ch;
  }

  .portrait-wrap {
    width: min(100%, 34rem);
    justify-self: end;
  }

  .work-heading {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .work-heading > p {
    max-width: 34rem;
  }

  .project {
    grid-template-columns: 3.25rem 1fr;
    padding: 2.75rem 0;
  }

  .project-copy {
    min-height: 0;
    padding: 0 0 2.75rem 1rem;
  }

  .project-brand {
    margin-top: 0;
  }

  .project-purpose,
  .project-outcome {
    min-height: 0;
  }

  .project-outcome {
    margin: 2rem 0;
  }

  .project-visual {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .section-shell,
  .hero-content {
    width: calc(100% - 2rem);
  }

  .section {
    padding: 5.5rem 0;
  }

  .site-header {
    min-height: 4.5rem;
    padding-inline: 1rem;
  }

  .site-header.is-scrolled {
    min-height: 4.1rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav a {
    font-size: 0.65rem;
    letter-spacing: 0.11em;
  }

  .hero-image {
    object-position: 72% center;
  }

  .hero-shade {
    background: rgba(20, 12, 9, 0.54);
  }

  .hero-content {
    padding-bottom: 4rem;
  }

  .hero h1 {
    font-size: clamp(5rem, 27vw, 8rem);
  }

  .hero-intro {
    max-width: 20rem;
  }

  .hero-note {
    display: none;
  }

  .about-grid {
    gap: 4.5rem;
  }

  .about-body,
  .field-pair {
    grid-template-columns: 1fr;
  }

  .about-body {
    gap: 1.5rem;
  }

  .portrait-wrap {
    width: calc(100% - 1.25rem);
  }

  .portrait-frame::before {
    inset: 1rem -1rem -1rem 1rem;
  }

  .project {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .project-number {
    padding-top: 0;
  }

  .project-copy {
    padding: 0 0 2.5rem 0.75rem;
  }

  .project h3 {
    font-size: clamp(2.2rem, 12vw, 3.3rem);
  }

  .project-brand img {
    width: 2.35rem;
    height: 2.35rem;
  }

  .field-pair {
    gap: 0;
  }

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

  .send-button {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 2rem 1rem;
  }

  .site-footer p:last-child {
    text-align: left;
  }
}

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

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

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

.site-preferences-panel {
  display: none;
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1000;
  width: min(31rem, calc(100% - 2.5rem));
  padding: 1.15rem;
  color: #f8f3ec;
  background: #251813;
  border: 1px solid rgba(248, 243, 236, 0.2);
  box-shadow: 0 1.25rem 3rem rgba(25, 12, 7, 0.25);
}

.site-preferences-panel.is-visible {
  display: block !important;
}

.site-preferences-panel strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
}

.site-preferences-panel p {
  margin: 0;
  color: rgba(248, 243, 236, 0.72);
  font-family: "Manrope", sans-serif;
  font-size: 0.78rem;
  line-height: 1.55;
}

.site-preferences-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1rem;
}

.preference-button {
  min-height: 2.5rem;
  padding: 0.55rem 0.85rem;
  color: #251813;
  background: #f8f3ec;
  border: 1px solid #f8f3ec;
  cursor: pointer;
  font: 600 0.72rem/1 "Manrope", sans-serif;
}

.preference-button--secondary {
  color: #f8f3ec;
  background: transparent;
}

.preference-button:focus-visible {
  outline: 2px solid #f8f3ec;
  outline-offset: 3px;
}

.privacy-choice {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  font: inherit;
}

.privacy-choice:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .site-preferences-panel {
    right: 1rem;
    bottom: 1rem;
    width: calc(100% - 2rem);
  }

  .site-preferences-actions {
    justify-content: stretch;
  }

  .preference-button {
    flex: 1;
  }
}
