/*
  Åsa Andersson — site stylesheet.

  1. Tokens            colours, fonts, radius
  2. @layer base       the small part of the Tailwind reset this page relies on
  3. @layer ui         the shadcn button / dialog styles the markup uses
  4. Design rules      the page's own styles, copied from the original in the
                       original order (later rules deliberately override
                       earlier ones). They are unlayered, so they win over
                       layers 2 and 3, exactly as in the original build.
*/

@layer base, ui;

/* 1. Tokens ---------------------------------------------------------------- */

:root {
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-signature: "Caveat", cursive;

  --background: oklch(98.2% .006 85);
  --foreground: oklch(33% .025 245);
  --card: oklch(100% 0 0);
  --card-foreground: oklch(33% .025 245);
  --primary: oklch(33% .025 245);
  --primary-foreground: oklch(97% .05 95);
  --secondary: oklch(95% .08 95);
  --secondary-foreground: oklch(33% .025 245);
  --muted: oklch(95% .008 85);
  --muted-foreground: oklch(52% .02 245);
  --accent: oklch(95% .08 95);
  --accent-foreground: oklch(33% .025 245);
  --border: oklch(90% .01 85);
  --ring: oklch(73% .03 245);
}

/* 2. Base ------------------------------------------------------------------ */

@layer base {
  *, ::before, ::after { box-sizing: border-box; border: 0 solid; margin: 0; padding: 0; }
  html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--font-sans);
    -webkit-tap-highlight-color: transparent;
  }
  h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
  a { color: inherit; text-decoration: inherit; }
  b, strong { font-weight: bolder; }
  ol, ul, menu { list-style: none; }
  img, svg, video { display: block; vertical-align: middle; }
  img, video { max-width: 100%; height: auto; }
  button { font: inherit; letter-spacing: inherit; color: inherit; background-color: transparent; border-radius: 0; appearance: button; }
  [hidden]:where(:not([hidden="until-found"])) { display: none !important; }
  * { border-color: var(--border); }
  body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.02em; font-weight: 400; }
}

/* 3. UI components (shadcn button + dialog) ------------------------------- */

@layer ui {
  .eyebrow { font-family: var(--font-mono); letter-spacing: .3em; text-transform: uppercase; font-size: .72rem; }
  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border-width: 0;
  }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    white-space: nowrap; border-radius: calc(var(--radius) - 2px);
    font-size: .875rem; line-height: calc(1.25 / .875); font-weight: 500; cursor: pointer;
    transition: color .15s, background-color .15s, border-color .15s, text-decoration-color .15s;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    height: 2.25rem; padding: .5rem 1rem;
  }
  .btn:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--ring); }
  .btn svg { pointer-events: none; width: 1rem; height: 1rem; flex-shrink: 0; }
  .btn-icon { width: 2.25rem; padding: 0; }
  .btn-secondary {
    background-color: var(--secondary); color: var(--secondary-foreground);
    box-shadow: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;
  }
  .btn-link { color: var(--primary); text-underline-offset: 4px; }
  @media (hover: hover) {
    .btn-secondary:hover { background-color: color-mix(in oklab, var(--secondary) 80%, transparent); }
    .btn-ghost:hover { background-color: var(--accent); color: var(--accent-foreground); }
    .btn-link:hover { text-decoration-line: underline; }
  }

  /* Dialog (case studies): overlay + centred panel, fade/zoom in and out */
  .dialog-overlay {
    position: fixed; inset: 0; z-index: 50;
    background-color: color-mix(in oklab, var(--ink) 80%, transparent);
    animation: dialog-fade-in .15s ease both;
  }
  .dialog-content {
    position: fixed; left: 50%; top: 50%; z-index: 50;
    translate: -50% -50%;
    width: 100%; max-width: 32rem; gap: 1rem;
    border-width: 1px; background-color: var(--background); padding: 1.5rem;
    box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
    animation: dialog-zoom-in .2s ease both;
  }
  .dialog-content:focus { outline: none; }
  .dialog-overlay.is-closing { animation: dialog-fade-out .15s ease both; }
  .dialog-content.is-closing { animation: dialog-zoom-out .2s ease both; }
  .dialog-close {
    position: absolute; right: 1rem; top: 1rem;
    border-radius: calc(var(--radius) - 4px); opacity: .7; cursor: pointer;
    transition: opacity .15s cubic-bezier(.4, 0, .2, 1);
  }
  .dialog-close:hover { opacity: 1; }
  .dialog-close:focus { outline: none; box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring); }
  .dialog-close svg { width: 1rem; height: 1rem; }
}

@keyframes dialog-fade-in { from { opacity: 0; } }
@keyframes dialog-fade-out { to { opacity: 0; } }
@keyframes dialog-zoom-in { from { opacity: 0; transform: scale(.95); } }
@keyframes dialog-zoom-out { to { opacity: 0; transform: scale(.95); } }

/* 4. Design rules ---------------------------------------------------------- */

:root {
  --radius: .5rem;
  --ink: oklch(14% .004 250);
  --ink-foreground: oklch(97% .006 90);
  --cream: oklch(96.5% .065 96);
  --gold: oklch(95% .1 96);
  --hero-text: oklch(86% .008 90);
  --header: oklch(30% .023 245);
  --available: oklch(79% .09 155);
  --blush: oklch(95% .035 60);
  --blush-deep: oklch(86% .06 45);
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
}
h1, h2, h3, .eyebrow {
  letter-spacing: 0;
}
a {
  text-decoration: none;
}
a, button, input, textarea {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}
section:not(.portfolio-hero) a:focus-visible {
  outline-color: var(--primary);
}
.page-width {
  width: min(1200px,100% - 96px);
  margin-inline: auto;
}
.eyebrow {
  font-size: 11px;
  line-height: 1.8;
}
.section-space {
  padding-block: 100px;
}
.section-heading {
  max-width: 850px;
  margin-top: 20px;
  font-size: 56px;
  line-height: 1.1;
}
.section-heading em {
  font-weight: 400;
}
p {
  line-height: 1.75;
}
.skip-link {
  z-index: 100;
  background: var(--gold);
  color: var(--primary);
  padding: 12px;
  position: fixed;
  top: -100px;
  left: 20px;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  z-index: 40;
  background: var(--header);
  color: var(--ink-foreground);
  position: sticky;
  top: 0;
}
.header-inner {
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 84px;
  display: flex;
}
.wordmark {
  font-family: var(--font-display);
  flex-shrink: 0;
  font-size: 27px;
  line-height: 1;
}
.wordmark span {
  font-family: var(--font-mono);
  margin-top: 8px;
  font-size: 8px;
  display: block;
}
.site-header .wordmark {
  font-family: var(--font-signature);
  color: var(--gold);
  font-size: 36px;
  font-weight: 500;
  line-height: 1.15;
}
.site-header .signature-link {
  align-items: center;
  display: flex;
}
.site-header .signature-art {
  background: var(--gold);
  width: 230px;
  height: 38px;
  margin: 0;
  display: block;
  -webkit-mask-position: 50%;
  mask-position: 50%;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.desktop-nav {
  gap: 26px;
  font-size: 12px;
  display: flex;
}
.desktop-nav a {
  padding-block: 12px;
}
.desktop-nav a:hover {
  color: var(--gold);
}
.assignment-button {
  height: 52px;
  color: var(--primary);
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  gap: 20px;
  padding: 6px 7px 6px 24px;
  font-size: 14px;
  font-weight: 700;
}
@supports (color:color-mix(in lab, red, red)) {
  .assignment-button {
    border: 1px solid color-mix(in oklab, var(--gold) 70%, var(--ink-foreground));
  }
}
.assignment-button {
  box-shadow: 0 4px 0 var(--ink);
}
@supports (color:color-mix(in lab, red, red)) {
  .assignment-button {
    box-shadow: 0 4px 0 color-mix(in oklab, var(--ink) 35%, transparent);
  }
}
.assignment-button {
  transition: transform .2s,box-shadow .2s;
}
.assignment-button:hover {
  background: var(--gold);
  box-shadow: 0 6px 0 var(--ink);
  transform: translateY(-2px);
}
@supports (color:color-mix(in lab, red, red)) {
  .assignment-button:hover {
    box-shadow: 0 6px 0 color-mix(in oklab, var(--ink) 35%, transparent);
  }
}
.assignment-arrow {
  background: var(--primary);
  width: 36px;
  height: 36px;
  color: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}
.assignment-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform .2s;
}
.assignment-button:hover .assignment-arrow svg {
  transform: rotate(45deg);
}
.mobile-menu {
  display: none;
}
.portfolio-hero {
  isolation: isolate;
  background: var(--ink);
  color: var(--ink-foreground);
  position: relative;
  overflow: hidden;
}
.hero-main {
  grid-template-columns: minmax(0,1fr) 280px;
  align-items: center;
  gap: 64px;
  display: grid;
}
.hero-portrait {
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 25%;
  filter: grayscale();
  border-radius: 50%;
  width: 280px;
}
.hero-content {
  padding-block: 64px 38px;
  position: relative;
}
.portfolio-hero h1 {
  max-width: 880px;
  margin-top: 24px;
  font-size: 72px;
  line-height: 1.04;
}
.portfolio-hero h1 em {
  color: var(--gold);
}
.hero-introduction {
  max-width: 720px;
  color: var(--hero-text);
  margin-top: 24px;
  font-size: 15px;
}
.hero-credentials {
  border-top: 1px solid var(--ink-foreground);
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
  padding-top: 24px;
  display: grid;
}
@supports (color:color-mix(in lab, red, red)) {
  .hero-credentials {
    border-top: 1px solid color-mix(in oklab, var(--ink-foreground) 20%, transparent);
  }
}
.hero-credentials>div+div {
  border-left: 1px solid var(--ink-foreground);
}
@supports (color:color-mix(in lab, red, red)) {
  .hero-credentials>div+div {
    border-left: 1px solid color-mix(in oklab, var(--ink-foreground) 20%, transparent);
  }
}
.hero-credentials>div+div {
  padding-left: 32px;
}
.hero-credentials .eyebrow {
  color: var(--hero-text);
  font-size: 9px;
}
.hero-credential-title {
  font-family: var(--font-display);
  margin-top: 10px;
  font-size: 25px;
  line-height: 1.25;
}
.hero-credential-detail {
  color: var(--hero-text);
  margin-top: 5px;
  font-size: 11px;
}
.availability {
  color: var(--ink-foreground);
  align-items: baseline;
  gap: 9px;
  max-width: 250px;
  margin-top: 12px;
  font-size: 13px;
  display: flex;
}
.availability span {
  background: var(--available);
  border-radius: 50%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
}
.client-strip {
  border-bottom: 1px solid var(--border);
  padding-block: 32px 36px;
}
.client-strip .eyebrow {
  color: var(--muted-foreground);
}
.client-strip ul {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  display: flex;
}
.client-strip li {
  font-family: var(--font-display);
  font-size: 25px;
}
.capabilities {
  border-top: 1px solid var(--border);
  margin-top: 52px;
}
.capability {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 60px 1fr 1.35fr;
  gap: 24px;
  padding-block: 32px;
  display: grid;
}
.section-number {
  font-family: var(--font-mono);
  color: var(--muted-foreground);
  font-size: 12px;
}
.capability h3 {
  max-width: 320px;
  font-size: 29px;
  line-height: 1.2;
}
.capability p, .engagements p {
  font-size: 14px;
}
.supporting-labels {
  font-family: var(--font-mono);
  color: var(--muted-foreground);
  margin-top: 18px;
  line-height: 1.9;
  font-size: 10px!important;
}
.selected-work {
  background: var(--ink);
  color: var(--ink-foreground);
}
.selected-work .eyebrow, .selected-work h2 em {
  color: var(--gold);
}
.selected-work .supporting-labels {
  color: var(--hero-text);
}
.work-heading {
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  display: flex;
}
.work-count {
  font-family: var(--font-mono);
  color: var(--hero-text);
  white-space: nowrap;
  padding-bottom: 8px;
  font-size: 11px;
}
.work-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 40px 28px;
  margin-top: 48px;
  display: grid;
}
.work-item {
  min-width: 0;
}
.work-thumbnail {
  aspect-ratio: 4/3;
  background: var(--header);
  border-radius: 4px;
  width: 100%;
  height: auto;
  padding: 0;
  display: block;
  position: relative;
  overflow: hidden;
}
.work-thumbnail:hover {
  background: var(--header);
}
.work-thumbnail img {
  object-fit: cover;
  object-position: top;
  width: 100%;
  height: 100%;
  transition: transform .4s;
}
.work-thumbnail:hover img {
  transform: scale(1.04);
}
.work-thumbnail-arrow {
  background: var(--gold);
  width: 34px;
  height: 34px;
  color: var(--primary);
  border-radius: 50%;
  place-items: center;
  display: grid;
  position: absolute;
  bottom: 12px;
  right: 12px;
}
.work-item-meta {
  margin-top: 22px;
}
.work-item-meta .eyebrow {
  font-size: 9px;
}
.work-item h3 {
  margin-top: 10px;
  font-size: 29px;
  line-height: 1.15;
}
.work-summary {
  color: var(--hero-text);
  margin-top: 16px;
  font-size: 13px;
}
.work-case-link {
  color: var(--gold);
  margin-top: 18px;
  padding: 0;
  font-size: 12px;
}
.case-dialog {
  background: var(--card);
  width: min(1180px,100% - 48px);
  max-width: 1180px;
  max-height: calc(100dvh - 48px);
  color: var(--card-foreground);
  border-radius: 8px;
  padding: 0;
  display: block;
  overflow-y: auto;
}
.case-dialog>button {
  z-index: 3;
  position: fixed;
  top: 17px;
  right: 18px;
}
.case-dialog>button svg {
  width: 20px;
  height: 20px;
}
.case-toolbar {
  z-index: 2;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  min-height: 58px;
  padding: 8px 64px 8px 24px;
  display: flex;
  position: sticky;
  top: 0;
}
.case-toolbar>div {
  gap: 4px;
  display: flex;
}
.case-layout {
  grid-template-columns: 5fr 7fr;
  display: grid;
}
.case-visual {
  background: var(--header);
  color: var(--ink-foreground);
  flex-direction: column;
  min-width: 0;
  display: flex;
}
.case-image-button {
  background: var(--header);
  border-radius: 0;
  width: 100%;
  height: auto;
  padding: 0;
  display: block;
  position: relative;
  overflow: hidden;
}
.case-image-button:hover {
  background: var(--header);
}
.case-image-button img {
  object-fit: contain;
  width: 100%;
  height: auto;
  display: block;
}
.case-image-button.is-expanded {
  overflow-x: auto;
}
.case-image-button.is-expanded img {
  width: 160%;
  max-width: none;
}
.case-expand-icon {
  background: var(--gold);
  width: 36px;
  height: 36px;
  color: var(--primary);
  border-radius: 50%;
  place-items: center;
  display: grid;
  position: absolute;
  top: 16px;
  right: 16px;
}
.case-client {
  margin-top: auto;
  padding: 28px;
}
.case-client>p:not(.eyebrow) {
  font-family: var(--font-display);
  margin-top: 10px;
  font-size: 38px;
  line-height: 1.1;
}
.case-client>span {
  color: var(--hero-text);
  margin-top: 12px;
  font-size: 12px;
  display: block;
}
.case-details {
  min-width: 0;
  padding: 38px;
}
.case-title {
  font-family: var(--font-display);
  letter-spacing: 0;
  margin-top: 12px;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.1;
}
.case-lead {
  margin-top: 22px;
}
.case-lead>p:last-child {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
}
.case-description {
  color: var(--foreground);
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.65;
}
.case-introduction, .case-challenge p {
  margin-top: 14px;
  font-size: 14px;
}
.case-challenge {
  margin-top: 30px;
}
.case-results {
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
  display: grid;
}
.case-details h3.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
}
.case-results ul {
  margin-top: 16px;
  list-style: none;
}
.case-results li {
  margin-top: 10px;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.7;
  position: relative;
}
.case-results li:before {
  content: "·";
  position: absolute;
  left: 0;
}
.case-outcomes li:before {
  content: "→";
}
.case-expertise {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 24px;
}
.case-expertise p {
  font-family: var(--font-mono);
  margin-top: 12px;
  font-size: 10px;
  line-height: 2;
}
@media (width<=1100px) {
  .case-details {
    padding: 28px;
  }
}
@media (width<=900px) {
  .work-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (width<=760px) {
  .work-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 18px;
  }
  .work-item h3 {
    font-size: 24px;
  }
  .work-item-meta .eyebrow {
    font-size: 8px;
  }
  .work-summary {
    font-size: 12px;
  }
  .work-heading {
    display: block;
  }
  .work-count {
    display: none;
  }
  .case-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
  }
  .case-layout, .case-results {
    grid-template-columns: 1fr;
  }
  .case-details {
    padding: 26px 22px;
  }
  .case-title {
    font-size: 32px;
  }
  .case-client {
    padding: 22px;
  }
}
.section-intro, .about-layout {
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  display: grid;
}
.about-layout .section-heading {
  font-size: 50px;
}
.about-copy {
  padding-top: 38px;
  font-size: 15px;
}
.about-copy p+p {
  margin-top: 20px;
}
.about-copy .location {
  color: var(--muted-foreground);
  font-size: 12px;
}
.about-photos {
  gap: 18px;
  margin-top: 32px;
  display: grid;
}
.about-photo {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  height: auto;
  max-height: 250px;
  display: block;
}
.ways-to-work {
  background: var(--gold);
  color: var(--primary);
}
.ways-to-work .section-number {
  color: var(--primary);
}
.ways-intro {
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 64px;
  display: grid;
}
.ways-lead {
  max-width: 560px;
  font-size: 19px;
  line-height: 1.6;
}
.engagements {
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}
.engagements li {
  border-top: 1px solid var(--primary);
  grid-template-columns: 80px 1fr 1fr;
  gap: 40px;
  padding: 32px 0;
  display: grid;
}
@supports (color:color-mix(in lab, red, red)) {
  .engagements li {
    border-top: 1px solid color-mix(in oklab, var(--primary) 25%, transparent);
  }
}
.engagements li:last-child {
  border-bottom: 1px solid var(--primary);
}
@supports (color:color-mix(in lab, red, red)) {
  .engagements li:last-child {
    border-bottom: 1px solid color-mix(in oklab, var(--primary) 25%, transparent);
  }
}
.engagements h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}
.engagements p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}
.ways-link {
  text-underline-offset: 4px;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  text-decoration: underline;
  display: inline-flex;
}
.contact-layout {
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  display: grid;
}
.contact-section .section-heading {
  margin-bottom: 26px;
  font-size: 49px;
}
.contact-section p {
  font-size: 14px;
}
.contact-layout>div>p+p {
  margin-top: 18px;
}
footer {
  background: var(--ink);
  color: var(--hero-text);
  padding-block: 28px;
}
.footer-inner {
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 10px;
  display: flex;
}
footer .wordmark {
  font-size: 23px;
}
.footer-brand {
  align-items: center;
  gap: 22px;
  display: flex;
}
.footer-logo {
  object-fit: contain;
  width: 112px;
  height: 50px;
}
.footer-contact {
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  display: flex;
}
.footer-contact a {
  overflow-wrap: anywhere;
}
.footer-contact a:hover {
  color: var(--gold);
}
@media (width>=1600px) {
  .hero-content {
    padding-block: 76px 54px;
  }
}
@media (width<=1100px) {
  .page-width {
    width: calc(100% - 64px);
  }
  .header-inner {
    gap: 16px;
  }
  .desktop-nav {
    gap: 18px;
    font-size: 11px;
  }
  .header-cta {
    padding-inline: 16px;
    font-size: 11px;
  }
  .portfolio-hero h1 {
    font-size: 61px;
  }
  .hero-main {
    grid-template-columns: minmax(0,1fr) 220px;
    gap: 36px;
  }
  .hero-portrait {
    width: 220px;
  }
  .section-heading {
    font-size: 49px;
  }
  .section-intro, .about-layout, .contact-layout {
    gap: 40px;
  }
}
@media (width<=760px) {
  html {
    scroll-padding-top: 86px;
  }
  .page-width {
    width: calc(100% - 40px);
  }
  .header-inner {
    min-height: 72px;
  }
  .wordmark {
    font-size: 24px;
  }
  .desktop-nav, .header-cta {
    display: none;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .mobile-navigation {
    border-top: 1px solid var(--ink-foreground);
    padding: 10px 20px 20px;
  }
  @supports (color:color-mix(in lab, red, red)) {
    .mobile-navigation {
      border-top: 1px solid color-mix(in oklab,var(--ink-foreground) 20%,transparent);
    }
  }
  .mobile-navigation a {
    justify-content: space-between;
    padding-block: 13px;
    font-size: 14px;
    display: flex;
  }
  .hero-main {
    grid-template-columns: minmax(0,1fr);
    gap: 24px;
  }
  .hero-portrait {
    order: -1;
    width: 132px;
  }
  .hero-content {
    padding-block: 34px 28px;
  }
  .portfolio-hero h1 {
    margin-top: 18px;
    font-size: 40px;
  }
  .hero-introduction {
    margin-top: 22px;
    font-size: 14px;
  }
  .assignment-button {
    height: 42px;
    padding-inline: 18px;
    font-size: 11px;
  }
  .hero-credentials {
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px;
    margin-top: 28px;
    padding-top: 20px;
  }
  .hero-credentials>div+div {
    padding-left: 18px;
  }
  .hero-credentials>div:last-child {
    border-left: 0;
    border-top: 1px solid var(--ink-foreground);
    grid-column: 1/-1;
    padding-top: 18px;
    padding-left: 0;
  }
  @supports (color:color-mix(in lab, red, red)) {
    .hero-credentials>div:last-child {
      border-top: 1px solid color-mix(in oklab, var(--ink-foreground) 20%, transparent);
    }
  }
  .hero-credential-title {
    font-size: 22px;
  }
  .availability {
    max-width: none;
    font-size: 12px;
  }
  .client-strip {
    padding-block: 24px;
  }
  .client-strip ul {
    justify-content: flex-start;
    gap: 12px 24px;
  }
  .client-strip li {
    font-size: 23px;
  }
  .section-space {
    padding-block: 60px;
  }
  .section-heading, .about-layout .section-heading, .contact-section .section-heading {
    font-size: 39px;
  }
  .capabilities {
    margin-top: 36px;
  }
  .capability {
    grid-template-columns: 28px 1fr;
    gap: 16px;
    padding-block: 28px;
  }
  .capability h3 {
    font-size: 29px;
  }
  .capability>div {
    grid-column: 2;
  }
  .section-intro, .about-layout, .contact-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .about-copy {
    padding-top: 0;
  }
  .ways-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .engagements {
    margin-top: 32px;
  }
  .engagements li {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }
  .engagements h3 {
    font-size: 26px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
.portfolio-hero {
  align-items: flex-end;
  min-height: calc(100vh - 84px);
  display: flex;
}
.portfolio-hero .hero-content {
  width: min(1200px,100% - 96px);
  padding-block: 100px 88px;
}
.hero-main {
  z-index: 1;
  display: block;
  position: relative;
}
.hero-copy {
  max-width: 700px;
}
.portfolio-hero h1 {
  padding-bottom: .14em;
  font-size: 84px;
  line-height: 1.12;
}
.hero-introduction {
  max-width: 600px;
  font-size: 16px;
}
.hero-portrait {
  z-index: 0;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 50% 20%;
  filter: grayscale()contrast(1.05);
  opacity: .78;
  border-radius: 0;
  width: 58%;
  height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  right: -6%;
  -webkit-mask-image: radial-gradient(60% 70% at 58% 38%,#000 40%,#0000 78%);
  mask-image: radial-gradient(60% 70% at 58% 38%,#000 40%,#0000 78%);
}
.hero-credentials {
  z-index: 1;
  margin-top: 72px;
  position: relative;
}
.portfolio-hero:after {
  content: "";
  background: linear-gradient(90deg, var(--gold), var(--blush-deep));
  height: 4px;
  position: absolute;
  inset: auto 0 0;
}
.expertise-section {
  background: var(--gold);
  color: var(--primary);
}
.expertise-section .capabilities, .expertise-section .capability {
  border-color: var(--primary);
}
@supports (color:color-mix(in lab, red, red)) {
  .expertise-section .capabilities, .expertise-section .capability {
    border-color: color-mix(in oklab, var(--primary) 25%, transparent);
  }
}
.expertise-section .section-number, .expertise-section .supporting-labels {
  color: var(--primary);
}
.career-section {
  background: var(--blush);
}
.career-intro {
  grid-template-columns: 1.65fr 1fr;
  align-items: end;
  gap: 72px;
  display: grid;
}
.career-intro>p {
  max-width: 360px;
  padding-bottom: 8px;
  font-size: 14px;
}
.career-grid {
  border-top: 1px solid var(--primary);
  grid-template-columns: repeat(3,minmax(0,1fr));
  margin-top: 60px;
  display: grid;
}
@supports (color:color-mix(in lab, red, red)) {
  .career-grid {
    border-top: 1px solid color-mix(in oklab, var(--primary) 25%, transparent);
  }
}
.career-grid>li {
  border-bottom: 1px solid var(--primary);
  min-width: 0;
  padding: 30px 28px 38px;
}
@supports (color:color-mix(in lab, red, red)) {
  .career-grid>li {
    border-bottom: 1px solid color-mix(in oklab, var(--primary) 25%, transparent);
  }
}
.career-grid>li:nth-child(3n+1) {
  padding-left: 0;
}
.career-grid>li:not(:nth-child(3n+1)) {
  border-left: 1px solid var(--primary);
}
@supports (color:color-mix(in lab, red, red)) {
  .career-grid>li:not(:nth-child(3n+1)) {
    border-left: 1px solid color-mix(in oklab, var(--primary) 25%, transparent);
  }
}
.career-meta {
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  display: flex;
}
.career-meta .eyebrow {
  font-size: 9px;
}
.career-index {
  font-family: var(--font-mono);
  white-space: nowrap;
  font-size: 9px;
}
.career-organisation {
  margin-top: 34px;
  font-size: 12px;
  font-weight: 600;
}
.career-grid h3 {
  min-height: 76px;
  margin-top: 12px;
  font-size: 32px;
  line-height: 1.15;
}
.career-grid ul {
  margin-top: 22px;
  list-style: none;
}
.career-grid ul li {
  margin-top: 10px;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.65;
  position: relative;
}
.career-grid ul li:before {
  content: "·";
  font-weight: 700;
  position: absolute;
  left: 0;
}
.profile-link {
  color: var(--primary);
  gap: 8px;
  padding: 0;
  font-size: 12px;
  text-decoration: none;
}
.career-section .profile-link {
  margin-top: 28px;
}
.testimonial-section {
  background: var(--card);
}
.testimonial-intro {
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  display: flex;
}
.testimonial-intro .profile-link {
  flex-shrink: 0;
  margin-bottom: 8px;
}
.testimonials {
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 56px 48px;
  margin-top: 52px;
  display: grid;
}
.testimonial {
  flex-direction: column;
  grid-column: span 3;
  min-width: 0;
  display: flex;
}
.quote-mark {
  font-family: var(--font-display);
  height: 58px;
  font-size: 70px;
  line-height: .85;
}
.testimonial blockquote {
  margin: 0 0 32px;
}
.testimonial blockquote p {
  white-space: pre-line;
  font-size: 14px;
  line-height: 1.8;
}
.testimonial:nth-child(-n+2) blockquote p {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.4;
}
.testimonial figcaption {
  border-top: 1px solid;
  margin-top: auto;
  padding-top: 22px;
}
@supports (color:color-mix(in lab, red, red)) {
  .testimonial figcaption {
    border-top: 1px solid color-mix(in oklab,currentColor 22%,transparent);
  }
}
.testimonial figcaption strong {
  margin-bottom: 7px;
  font-size: 13px;
  display: block;
}
.testimonial figcaption span {
  font-size: 11px;
  line-height: 1.65;
  display: block;
}
.testimonial figcaption .testimonial-meta {
  font-family: var(--font-mono);
  margin-top: 14px;
  font-size: 9px;
}
@media (width<=1100px) {
  .career-intro {
    gap: 40px;
  }
  .career-grid h3 {
    font-size: 28px;
  }
}
@media (width<=760px) {
  .career-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .career-intro>p {
    max-width: none;
  }
  .career-grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }
  .career-grid>li, .career-grid>li:nth-child(3n+1) {
    padding: 28px 0;
  }
  .career-grid>li:not(:nth-child(3n+1)) {
    border-left: 0;
  }
  .career-organisation {
    margin-top: 22px;
  }
  .career-grid h3 {
    min-height: 0;
    font-size: 31px;
  }
  .testimonial-intro {
    flex-direction: column;
    align-items: start;
    gap: 22px;
  }
  .testimonials {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }
  .testimonial, .testimonial:nth-child(-n+2) {
    grid-column: 1;
  }
  .testimonial:nth-child(-n+2) blockquote p {
    font-size: 24px;
  }
}
.step-number {
  background: var(--primary);
  width: 44px;
  height: 44px;
  color: var(--gold);
  font-family: var(--font-mono);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  display: inline-flex;
}
.about-lead {
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.35;
}
.methods {
  background: var(--card);
}
.methods .section-intro {
  display: block;
}
.method-groups {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 48px;
  margin-top: 52px;
  display: grid;
}
.method-groups article {
  min-width: 0;
}
.method-groups .step-number {
  width: auto;
  height: auto;
  color: var(--muted-foreground);
  background: 0 0;
  border-radius: 0;
  display: block;
}
.method-groups h3 {
  margin-block: 24px 18px;
  font-size: 29px;
}
.method-groups li {
  padding-block: 8px;
  font-size: 14px;
}
.contact-section {
  background: var(--gold);
  color: var(--primary);
}
.contact-section .eyebrow, .contact-section em {
  color: var(--primary);
}
.contact-section em {
  font-style: italic;
}
.contact-details {
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  display: flex;
}
.contact-details a {
  background: var(--background);
  border-radius: 18px;
  align-items: center;
  gap: 16px;
  padding: 26px 30px;
  display: flex;
}
@supports (color:color-mix(in lab, red, red)) {
  .contact-details a {
    background: color-mix(in oklab, var(--background) 55%, transparent);
  }
}
.contact-details a {
  font-family: var(--font-display);
  overflow-wrap: anywhere;
  font-size: 30px;
  transition: background .3s;
}
.contact-details a:hover {
  background: var(--background);
}
.contact-details a>svg:last-child {
  flex-shrink: 0;
  margin-left: auto;
}
.contact-details .eyebrow {
  font-size: 11px;
}
@media (width<=1100px) {
  .portfolio-hero h1 {
    font-size: 66px;
  }
  .portfolio-hero .hero-content {
    width: calc(100% - 64px);
  }
  .contact-details a {
    font-size: 22px;
  }
}
@media (width<=760px) {
  .portfolio-hero {
    min-height: 0;
  }
  .portfolio-hero .hero-content {
    width: calc(100% - 40px);
    padding-block: 280px 36px;
  }
  .hero-portrait {
    width: 100%;
    height: 380px;
    bottom: auto;
    right: 0;
    -webkit-mask-image: linear-gradient(#000 50%,#0000);
    mask-image: linear-gradient(#000 50%,#0000);
  }
  .portfolio-hero h1 {
    font-size: 42px;
  }
  .hero-credentials {
    margin-top: 40px;
  }
  .method-groups {
    grid-template-columns: 1fr;
  }
  .contact-details a {
    gap: 10px;
    padding: 20px;
    font-size: 18px;
  }
}
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *, :before, :after {
    transition: none!important;
    animation: none!important;
  }
}
.text-reveal {
  opacity: 0;
}
.text-reveal-in {
  will-change: clip-path;
  animation: .6s steps(28,end) both portfolio-text-reveal;
}
@keyframes portfolio-text-reveal {
  0% { opacity: 1; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; clip-path: inset(0); }
}
@media (prefers-reduced-motion:reduce) {
  .text-reveal, .text-reveal-in {
    opacity: 1;
    clip-path: none;
    animation: none;
  }
}
.portfolio-hero .hero-content {
  position: static;
}
.portfolio-hero .hero-portrait {
  object-position: 50% 22%;
  width: 60%;
  height: 100%;
  top: 0;
  right: 0;
  -webkit-mask-image: radial-gradient(62% 75% at 60% 42%,#000 35%,#0000 80%);
  mask-image: radial-gradient(62% 75% at 60% 42%,#000 35%,#0000 80%);
}
@media (width<=760px) {
  .portfolio-hero .hero-portrait {
    width: 100%;
    height: 400px;
    -webkit-mask-image: radial-gradient(75% 70% at 50% 35%,#000 40%,#0000 85%);
    mask-image: radial-gradient(75% 70% at 50% 35%,#000 40%,#0000 85%);
  }
}

/* 404 page (the original's "not found" screen) ----------------------------- */

.not-found {
  display: flex; min-height: 100vh; align-items: center; justify-content: center;
  background-color: var(--background); padding-inline: 1rem;
}
.not-found > div { max-width: 28rem; text-align: center; }
.not-found h1 { font-size: 4.5rem; line-height: 1; font-weight: 700; color: var(--foreground); }
.not-found h2 { margin-top: 1rem; font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; color: var(--foreground); }
.not-found p { margin-top: .5rem; font-size: .875rem; line-height: 1.25rem; color: var(--muted-foreground); }
.not-found a {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1.5rem;
  border-radius: calc(var(--radius) - 2px); background-color: var(--primary); color: var(--primary-foreground);
  padding: .5rem 1rem; font-size: .875rem; line-height: 1.25rem; font-weight: 500;
  transition: background-color .15s cubic-bezier(.4, 0, .2, 1);
}
.not-found a:hover { background-color: color-mix(in oklab, var(--primary) 90%, transparent); }
