@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("fonts/alte_haas_grotesk/AlteHaasGroteskRegular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("fonts/alte_haas_grotesk/AlteHaasGroteskBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ab-paper: #faf9f5;
  --ab-ink: #191b19;
  --ab-muted: #595954;
  --ab-line: rgba(25, 27, 25, .18);
  --ab-veil: rgba(9, 7, 7, .68);
  --ab-gutter: clamp(16px, 2.2vw, 28px);
  --ab-font-sans: "Alte Haas Grotesk", Arial, sans-serif;
  --ab-font-serif: "Alte Haas Grotesk", Arial, sans-serif;
  --font-index: "Alte Haas Grotesk", Arial, sans-serif;
  --font-serif: "Alte Haas Grotesk", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Standalone /about page shell (full 1-page editorial layout) */
body.about-standalone {
  margin: 0;
  background: var(--ab-paper);
  color: var(--ab-ink);
  font: 16px/1.5 var(--ab-font-sans);
  letter-spacing: -.045em;
  word-spacing: -.05em;
  overflow-x: clip;
}

a {
  color: inherit;
}

.skip {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  background: var(--ab-ink);
  color: var(--ab-paper);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  z-index: 200;
}

.skip:focus-visible {
  left: max(16px, env(safe-area-inset-left));
  top: max(16px, env(safe-area-inset-top));
  width: auto;
  height: auto;
  min-height: 44px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  overflow: visible;
  clip-path: none;
  opacity: 1;
  pointer-events: auto;
}

.ink-pending,
.card-ink-pending {
  opacity: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

body.about-standalone ::selection {
  background: var(--ab-ink);
  color: var(--ab-paper);
}

.about-page-shell {
  min-height: 100svh;
  padding: calc(var(--header-h, 64px) + clamp(32px, 5svh, 72px)) max(clamp(20px, 4vw, 68px), env(safe-area-inset-right)) clamp(56px, 8svh, 112px) max(clamp(20px, 4vw, 68px), env(safe-area-inset-left));
  display: block;
  background: var(--ab-paper);
  color: var(--ab-ink);
}

.about-page-shell .ab-sheet {
  width: 100%;
  max-width: 1480px;
  margin-inline: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.about-page-shell .ab-top {
  display: none;
}

.about-page-shell #ab-st {
  max-width: min(100%, 1180px);
  margin-top: clamp(8px, 1.5svh, 24px);
  font-size: clamp(16px, 1.95vw, 30px);
}

.about-page-shell #ab-st-im {
  width: clamp(84px, 9.2vw, 136px);
}

.about-page-shell .ab-row {
  grid-template-columns: clamp(140px, 18vw, 280px) minmax(0, 1fr);
  margin-top: clamp(44px, 5.5svh, 72px);
  padding-top: clamp(22px, 2.8svh, 36px);
}

.about-page-shell .ab-row--first {
  margin-top: clamp(40px, 5svh, 68px);
  padding-top: 0;
}

.about-page-shell .ab-row-bo {
  max-width: 780px;
}

.about-page-shell .ab-row-bo p {
  max-width: 64ch;
}

.about-page-shell #ab-im {
  width: min(100%, 560px);
  margin: clamp(40px, 5vw, 64px) 0 0 clamp(140px, 18vw, 280px);
}

body.about-standalone .portfolio-footer {
  border-top: 1px solid var(--ab-line);
}

/* Drawer overlay layer (mounted on index.html, work.html, contact.html) */
#ab_ {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  visibility: hidden;
}

#ab_.is-open,
#ab_.is-closing {
  visibility: visible;
}

#ab-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(9, 7, 7, .74);
  opacity: 0;
  pointer-events: none;
  transition: opacity .85s cubic-bezier(.33, 1, .67, 1);
  will-change: opacity;
}

#ab-bg.fx {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 1.2s cubic-bezier(.19, 1, .22, 1);
}

#ab {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  padding: max(var(--ab-gutter), env(safe-area-inset-top)) max(var(--ab-gutter), env(safe-area-inset-right)) max(var(--ab-gutter), env(safe-area-inset-bottom)) max(var(--ab-gutter), env(safe-area-inset-left));
  box-sizing: border-box;
  pointer-events: none;
}

#ab.is-animating {
  overflow-y: hidden;
  opacity: 0;
}

#ab::-webkit-scrollbar {
  display: none;
}

#ab.fx {
  pointer-events: auto;
  cursor: pointer;
}

#ab-co {
  pointer-events: none;
}

#ab-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  display: none;
}

#ab-gl.is-active {
  display: block;
}

#ab-co .ab-sheet {
  cursor: auto;
  pointer-events: auto;
  position: relative;
  transform-origin: center center;
  box-shadow: none;
  will-change: transform;
}

#ab:focus {
  outline: none;
}

/* Floating desktop CLOSE cursor on dark veil */
#ab-cu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  color: #ffffff;
  font: 700 12px/1 var(--ab-font-sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
  filter: url(#ink-bleed-xs);
  transition: opacity .16s ease;
  will-change: transform, opacity;
}

#ab-cu.fx {
  visibility: visible;
  opacity: 1;
}

/* The editorial paper sheet (6 of 12 columns right-aligned in drawer mode) */
.ab-sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-inline: auto 0;
  width: min(100%, max(520px, calc(50vw - var(--ab-gutter) * 1.5)));
  padding: clamp(24px, 3vw, 38px) clamp(20px, 2.8vw, 34px) clamp(40px, 5vw, 64px);
  box-sizing: border-box;
  background: var(--ab-paper);
  color: var(--ab-ink);
  font: 16px/1.5 var(--ab-font-sans);
  letter-spacing: -.045em;
  word-spacing: -.05em;
  pointer-events: auto;
  border-radius: 0;
}

.ab-sheet h1,
.ab-sheet h2,
.ab-sheet h3,
.ab-sheet p,
.ab-sheet figure {
  margin: 0;
}

.ab-sheet ::selection {
  background: var(--ab-ink);
  color: var(--ab-paper);
}

.ab-sheet :is(a, button):focus-visible {
  outline: 2px solid var(--ab-ink);
  outline-offset: 3px;
}

/* Sheet top bar: centered monogram + Close action */
.ab-top {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
}

#ab-lgw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 clamp(24px, 2.4vw, 32px)/.9 var(--ab-font-sans);
  letter-spacing: -.075em;
  color: var(--ab-ink);
  text-decoration: none;
  filter: url(#ink-bleed-sm);
}

#ab-close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid #eb3621;
  background: #eb3621;
  color: #ffffff;
  font: 700 12px/1 var(--ab-font-sans);
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  border-radius: 999px;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease, transform .22s ease;
}

#ab-close:hover,
#ab-close:focus-visible {
  background: #ffffff;
  border-color: rgba(25, 27, 25, .24);
  color: var(--ab-ink);
}

body.about-standalone #ab-close {
  display: none;
}

/* Split typographic statement + center inline portrait */
#ab-st {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas:
    "tl im tr"
    "tb tb tb";
  align-items: end;
  gap: 0 clamp(10px, 1.3vw, 18px);
  width: 100%;
  max-width: 660px;
  align-self: center;
  margin-top: clamp(18px, 2.6vw, 32px);
  font: 700 clamp(12px, 1.24vw, 19px)/1.06 var(--ab-font-sans);
  letter-spacing: -.06em;
  word-spacing: -.05em;
  text-transform: uppercase;
}

.ab-st-tl,
.ab-st-tr,
.ab-st-tb {
  position: relative;
  z-index: 2;
  filter: url(#ink-bleed-xs);
}

.ab-st-tl {
  grid-area: tl;
  text-align: right;
}

.ab-st-tr {
  grid-area: tr;
  text-align: left;
}

.ab-st-tl span,
.ab-st-tr span {
  display: block;
}

.ab-st-tb {
  grid-area: tb;
  text-align: center;
  margin: .18em 0 0;
}

.ab-st-tb em {
  font-family: var(--ab-font-serif);
  font-style: italic;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -.015em;
  font-size: 1.08em;
}

#ab-st-im {
  grid-area: im;
  width: clamp(68px, 7.6vw, 108px);
  aspect-ratio: .83 / 1;
  margin: 0 0 6px;
  overflow: hidden;
  border-radius: 2px;
  background: transparent;
}

.ab-media-wrap,
.ab-media-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.ab-media-wrap {
  background: rgba(18, 16, 14, .06);
}

#ab-st-im img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

/* 2-column editorial rows */
.ab-row {
  display: grid;
  grid-template-columns: minmax(96px, .58fr) minmax(0, 1.42fr);
  gap: 10px clamp(16px, 2.4vw, 32px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: clamp(16px, 2vw, 22px);
  border-top: 1px solid var(--ab-line);
}

.ab-row--first {
  border-top: 0;
  padding-top: 0;
  margin-top: clamp(28px, 4.2vw, 52px);
}

.ab-row .la {
  display: inline-block;
  padding-top: 4px;
  font: 700 11px/1.1 var(--ab-font-sans);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ab-muted);
  filter: url(#ab-ink-soft);
}

.ab-row-bo {
  min-width: 0;
  font-size: clamp(14px, 1.08vw, 16px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.045em;
  word-spacing: -.05em;
}

.ab-row-bo p {
  margin: 0;
  filter: url(#ab-ink-soft);
}

.ab-row-bo p + p {
  margin-top: 1em;
}

.ab-row-bo > ul + p {
  margin-top: clamp(20px, 2.5vw, 28px);
}

.ab-lead {
  font-weight: 700;
  font-size: clamp(15px, 1.24vw, 19px);
  line-height: 1.32;
  letter-spacing: -.055em;
  filter: url(#ink-bleed-xs) !important;
}

.ab-row-bo a:not(.copy-email):not(.ab-pill-link) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
  transition: opacity .22s ease;
}

.ab-row-bo a:not(.copy-email):not(.ab-pill-link):hover {
  opacity: .58;
}

/* Interactive click-to-copy email with underline & instant "Copied" state */
.copy-email {
  position: relative;
  display: inline-grid;
  align-items: center;
  min-height: 44px;
  padding-block: 6px;
  text-align: start;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  color: var(--ab-ink);
}

.copy-email::after {
  content: attr(data-copy-email);
  grid-area: 1 / 1;
  visibility: hidden;
}

.copy-email-print {
  position: relative;
  grid-area: 1 / 1;
  justify-self: start;
  display: inline-block;
  transition: opacity .2s ease, transform .2s ease;
}

.copy-email-print[data-copy-status] {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

.copy-email.is-copied .copy-email-print:not([data-copy-status]) {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.copy-email.is-copied .copy-email-print[data-copy-status] {
  opacity: 1;
  transform: translateY(0);
}

.copy-email-rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: currentColor;
  transform-origin: left center;
  transition: transform .26s cubic-bezier(.22, .61, .36, 1);
}

.copy-email:hover .copy-email-rule,
.copy-email:focus-visible .copy-email-rule {
  transform: scaleX(.45);
}

/* Full-width feature portrait + grain + 3D tilt SA emblem */
#ab-im {
  position: relative;
  width: 100%;
  aspect-ratio: .83 / 1;
  margin: clamp(32px, 4.5vw, 56px) 0 0;
  overflow: hidden;
  border-radius: 2px;
  background: transparent;
  perspective: 900px;
}

#ab-im .ab-media-wrap {
  background: #111111;
}

#ab-im img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: contrast(1.06) brightness(.88);
  transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}

#ab-im:hover img {
  transform: scale(1.025);
}

#ab-im::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  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='0.88' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
}

#ab-im-lgw {
  position: absolute;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  pointer-events: none;
  font: 700 clamp(44px, 5.2vw, 72px)/.88 var(--ab-font-sans);
  letter-spacing: -.08em;
  color: #ffffff;
  text-shadow: 0 8px 32px rgba(0, 0, 0, .38);
  filter: url(#ink-bleed-sm);
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .18s ease-out;
  will-change: transform;
}

/* Experience & Client lists */
.ab-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ab-item-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
}

.ab-item-title {
  font-weight: 700;
  font-size: clamp(14px, 1.1vw, 16px);
  letter-spacing: -.045em;
  filter: url(#ab-ink-soft);
}

.ab-item-meta {
  font-family: var(--ab-font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  color: var(--ab-muted);
  white-space: nowrap;
  filter: url(#ab-ink-soft);
}

.ab-item-desc {
  margin-top: 4px;
  color: #2f312e;
  font-size: clamp(13.5px, 1vw, 15px);
  line-height: 1.48;
  filter: url(#ab-ink-soft);
}

.ab-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--ab-line);
}

.ab-metric strong {
  display: block;
  font: 700 clamp(22px, 2.2vw, 30px)/.94 var(--ab-font-sans);
  letter-spacing: -.075em;
  transform: scaleX(.88);
  transform-origin: left center;
  filter: url(#ink-bleed-sm);
}

.ab-metric span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--ab-muted);
  filter: url(#ab-ink-soft);
}

.ab-clients {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ab-clients li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
}

.ab-clients .ct {
  font-family: var(--ab-font-serif);
  font-weight: 600;
  font-size: 16px;
  color: var(--ab-muted);
  margin-right: 6px;
  filter: url(#ab-ink-soft);
}

.ab-clients li > span:first-child {
  filter: url(#ab-ink-soft);
}

.ab-client-domain {
  font-size: 13px;
  color: var(--ab-muted);
  filter: url(#ab-ink-soft);
}

.ab-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.ab-cap {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid rgba(25, 27, 25, .28);
  border-radius: 999px;
  background: rgba(25, 27, 25, .03);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
}

.ab-cap > span {
  display: inline-block;
  filter: url(#ab-ink-soft);
}

.ab-subnote {
  font-size: 13.5px;
  color: var(--ab-muted);
  line-height: 1.48;
  filter: url(#ab-ink-soft);
}

.ab-subnote strong {
  color: var(--ab-ink);
  font-weight: 700;
}

/* Contact row */
#ab-ct {
  margin-bottom: 8px;
}

#ab-ct-so {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
  margin-bottom: 6px;
}

#ab-ct-so a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-weight: 700;
  filter: url(#ink-bleed-xs);
}

#ab-ct-so i {
  margin-inline: 8px;
  font-style: normal;
  color: var(--ab-muted);
}

.ab-pill-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ab-ink);
  color: var(--ab-paper);
  font: 700 12px/1 var(--ab-font-sans);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  border: 1px solid var(--ab-ink);
  transition: color .32s cubic-bezier(.34, 0, .14, 1), transform .28s cubic-bezier(.22, .88, .24, 1);
}

.ab-pill-link::before {
  content: "";
  position: absolute;
  left: var(--ink-x, 50%);
  top: var(--ink-y, 50%);
  width: 260%;
  aspect-ratio: 1;
  background: var(--ab-paper);
  border-radius: 44% 56% 52% 48% / 48% 44% 56% 52%;
  transform: translate(-50%, -50%) scale(0) rotate(0deg);
  transition: transform .5s cubic-bezier(.34, 0, .14, 1);
  z-index: 0;
  pointer-events: none;
}

.ab-pill-link .pill-label {
  position: relative;
  z-index: 1;
  display: inline-block;
  filter: url(#ink-bleed-xs);
}

.ab-pill-link:hover,
.ab-pill-link:focus-visible {
  color: var(--ab-ink);
  transform: translateY(-1px);
}

.ab-pill-link:hover::before,
.ab-pill-link:focus-visible::before {
  transform: translate(-50%, -50%) scale(1) rotate(22deg);
}

@media (max-width: 768px) {
  #ab {
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .ab-sheet {
    width: 100%;
    padding: 20px 18px 36px;
  }

  #ab-cu {
    display: none !important;
  }

  #ab-st {
    gap: 0 6px;
    font-size: clamp(12.5px, 3.35vw, 18px);
    line-height: 1.08;
  }

  #ab-st-im {
    width: clamp(54px, 16vw, 84px);
    margin-bottom: 4px;
  }

  .ab-row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
    margin-top: 24px;
    padding-top: 16px;
  }

  .about-page-shell .ab-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-page-shell #ab-im {
    width: 100%;
    margin-left: 0;
  }

  .about-page-shell #ab-st {
    font-size: clamp(13px, 3.6vw, 20px);
  }

  .about-page-shell #ab-st-im {
    width: clamp(58px, 16vw, 88px);
  }

  .ab-row--first {
    margin-top: 24px;
    padding-top: 0;
  }

  .ab-metrics {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .ab-item-meta {
    white-space: normal;
  }

  #ab-ct-so a {
    min-height: 44px;
  }
}

.ab-srv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.ab-srv-tags span {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(25, 27, 25, .18);
  background: rgba(25, 27, 25, .035);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.015em;
  word-spacing: 0;
  color: var(--ab-ink);
}

@media (prefers-reduced-motion: reduce) {
  #ab-bg,
  #ab,
  #ab-cu,
  #ab-im img,
  #ab-im-lgw,
  .copy-email-print,
  .copy-email-rule,
  .ab-pill-link {
    transition: none !important;
  }
}
