@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&family=Newsreader:opsz,wght@6..72,300;6..72,400&display=swap');

:root {
  --paper: #f5f0e8;
  --paper-light: #fbf8f2;
  --paper-deep: #e9e1d5;
  --ink: #181816;
  --ink-soft: #6b665e;
  --ink-faint: #948e84;
  --line: rgba(24, 24, 22, 0.12);
  --line-strong: rgba(24, 24, 22, 0.22);
  --accent: #e34f3d;
  --success: #347052;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-width: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-width: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% 4%, rgba(227, 79, 61, 0.07), transparent 25rem),
    var(--paper);
}

body::before {
  content: '';
  position: fixed;
  z-index: 10;
  inset: 0;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: var(--ink);
  color: var(--paper-light);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper-light);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease);
}

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

.profile-page {
  position: relative;
  z-index: 1;
  width: min(100%, 1280px);
  margin-inline: auto;
  padding: clamp(18px, 2.6vw, 38px);
}

.profile-topbar {
  min-height: 72px;
  margin-bottom: clamp(18px, 2.6vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
}

.brand__mark {
  width: 58px;
  height: 58px;
  object-fit: cover;
  background: var(--paper);
}

.brand__copy {
  display: grid;
  gap: 3px;
}

.brand__name {
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.28em;
}

.brand__descriptor {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 500;
  transition: color 220ms var(--ease), border-color 220ms var(--ease);
}

.topbar-link svg {
  width: 15px;
  transition: transform 220ms var(--ease);
}

.topbar-link:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.topbar-link:hover svg {
  transform: translate(2px, -2px);
}

.profile-sheet {
  min-height: min(790px, calc(100dvh - 164px));
  display: grid;
  grid-template-columns: minmax(340px, 0.88fr) minmax(520px, 1.12fr);
  background: var(--paper-light);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 90px rgba(73, 54, 37, 0.09);
}

.profile-portrait {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: var(--paper-deep);
}

.profile-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 66%, rgba(15, 15, 13, 0.32));
}

.profile-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.98);
  animation: portrait-in 900ms var(--ease) both;
}

.profile--adam .profile-portrait img {
  object-position: center 40%;
}

.profile--mara .profile-portrait img {
  object-position: center center;
}

.portrait-label {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  color: white;
}

.portrait-label__name {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 300;
  line-height: 1;
}

.portrait-label__place {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-align: right;
  text-transform: uppercase;
}

.profile-content {
  min-width: 0;
  padding: clamp(48px, 6vw, 86px) clamp(38px, 6.5vw, 92px) clamp(40px, 5vw, 70px);
  display: flex;
  flex-direction: column;
}

.profile-header {
  max-width: 620px;
}

.profile-eyebrow {
  margin-bottom: 21px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-eyebrow::before {
  content: '';
  width: 25px;
  height: 1px;
  background: var(--accent);
}

.profile-header h1 {
  max-width: 8.8ch;
  font-family: var(--serif);
  font-size: clamp(4rem, 6.3vw, 6.5rem);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.profile-role {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: clamp(0.66rem, 0.58rem + 0.18vw, 0.77rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-intro {
  max-width: 52ch;
  margin-top: 27px;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 0.92rem + 0.18vw, 1.08rem);
  line-height: 1.68;
  text-wrap: pretty;
}

.verified-line {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--success);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verified-line::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 112, 82, 0.1);
}

.contact-panel {
  width: min(100%, 620px);
  margin-top: clamp(36px, 5vw, 56px);
}

.contact-panel__label {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-panel__label span:last-child {
  color: var(--accent);
}

.contact-action {
  min-height: 68px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 22px;
  gap: 16px;
  align-items: center;
  transition: padding 240ms var(--ease), background-color 240ms var(--ease), color 240ms var(--ease);
}

.contact-action:hover {
  padding-inline: 13px 9px;
  background: rgba(24, 24, 22, 0.035);
}

.contact-action:active {
  transform: translateY(1px);
}

.contact-action--primary {
  min-height: 78px;
  margin-bottom: 8px;
  padding-inline: 18px 15px;
  border-bottom: 0;
  background: var(--ink);
  color: var(--paper-light);
  box-shadow: 0 14px 34px rgba(24, 24, 22, 0.14);
}

.contact-action--primary:hover {
  padding-inline: 22px 18px;
  background: #292925;
}

.contact-action__icon,
.contact-action__arrow {
  width: 21px;
  color: var(--accent);
}

.contact-action__arrow {
  transition: transform 240ms var(--ease);
}

.contact-action:hover .contact-action__arrow {
  transform: translate(3px, -3px);
}

.contact-action__copy {
  min-width: 0;
}

.contact-action__label,
.contact-action__value {
  display: block;
}

.contact-action__label {
  margin-bottom: 3px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-action__value {
  overflow-wrap: anywhere;
  font-size: 0.94rem;
  font-weight: 500;
}

.contact-action--primary .contact-action__label {
  color: rgba(251, 248, 242, 0.58);
}

.contact-action--primary .contact-action__icon,
.contact-action--primary .contact-action__arrow {
  color: #f17665;
}

.profile-footer {
  width: min(100%, 620px);
  margin-top: auto;
  padding-top: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 0.57rem;
  line-height: 1.6;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.profile-footer__identity {
  display: grid;
  gap: 2px;
}

.profile-footer__identity strong {
  color: var(--ink-soft);
  font-weight: 500;
}

.profile-footer__links {
  display: flex;
  gap: 16px;
}

.profile-footer__links a {
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}

.profile-footer__links a:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.profile-content > * {
  animation: content-in 720ms var(--ease) both;
}

.profile-content > .contact-panel {
  animation-delay: 100ms;
}

.profile-content > .profile-footer {
  animation-delay: 180ms;
}

@keyframes content-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes portrait-in {
  from { opacity: 0; transform: scale(1.045); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 980px) {
  .profile-sheet {
    grid-template-columns: minmax(310px, 0.84fr) minmax(440px, 1.16fr);
  }

  .profile-content {
    padding-inline: clamp(34px, 5vw, 56px);
  }

  .profile-header h1 {
    font-size: clamp(3.8rem, 7vw, 5.3rem);
  }
}

@media (max-width: 760px) {
  body {
    background: var(--paper-light);
  }

  .profile-page {
    padding: 0 0 calc(92px + env(safe-area-inset-bottom));
  }

  .profile-topbar {
    min-height: 74px;
    margin: 0;
    padding: 10px 18px;
    background: rgba(245, 240, 232, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .brand {
    gap: 11px;
  }

  .brand__mark {
    width: 48px;
    height: 48px;
  }

  .brand__name {
    font-size: 0.79rem;
  }

  .brand__descriptor {
    display: none;
  }

  .topbar-link {
    font-size: 0.7rem;
  }

  .profile-sheet {
    min-height: 0;
    border: 0;
    box-shadow: none;
    grid-template-columns: 1fr;
  }

  .profile-portrait {
    min-height: 0;
    aspect-ratio: 1.18 / 1;
  }

  .profile--adam .profile-portrait img {
    object-position: center 31%;
  }

  .profile--mara .profile-portrait img {
    object-position: center 34%;
  }

  .portrait-label {
    right: 18px;
    bottom: 17px;
    left: 18px;
  }

  .portrait-label__name {
    font-size: 1.2rem;
  }

  .profile-content {
    padding: 38px 20px 42px;
  }

  .profile-eyebrow {
    margin-bottom: 16px;
  }

  .profile-header h1 {
    max-width: 9ch;
    font-size: clamp(3.45rem, 16vw, 4.8rem);
    line-height: 0.88;
  }

  .profile-role {
    margin-top: 18px;
  }

  .profile-intro {
    margin-top: 22px;
    font-size: 1rem;
  }

  .contact-panel {
    margin-top: 34px;
    animation: none !important;
    transform: none !important;
  }

  .contact-action {
    min-height: 70px;
  }

  .contact-action--primary {
    position: fixed;
    z-index: 50;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    min-height: 72px;
    margin: 0;
    box-shadow: 0 18px 48px rgba(24, 24, 22, 0.24);
  }

  .profile-footer {
    margin-top: 10px;
    padding-top: 30px;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}

@media (max-width: 390px) {
  .profile-content {
    padding-inline: 17px;
  }

  .profile-header h1 {
    font-size: 3.55rem;
  }

  .contact-action {
    gap: 13px;
  }

  .contact-action__value {
    font-size: 0.88rem;
  }
}

/* Consent UI is shared with the main website so analytics remains optional. */
.consent-banner {
  position: fixed;
  z-index: 110;
  right: 20px;
  bottom: 20px;
  left: 20px;
  max-width: 1080px;
  margin-inline: auto;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  background: rgba(251, 248, 242, 0.98);
  color: var(--ink);
  box-shadow: 0 18px 60px rgba(70, 48, 34, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.consent-banner[hidden],
.consent-settings[hidden] { display: none; }
.consent-banner__copy { max-width: 650px; }
.consent-banner__copy strong,
.consent-modal h2 { font-family: var(--serif); font-weight: 400; }
.consent-banner__copy p,
.consent-modal__panel > p { margin: 4px 0; color: var(--ink-soft); font-size: 0.82rem; line-height: 1.55; }
.consent-banner__copy a { font-size: 0.72rem; text-decoration: underline; text-underline-offset: 3px; }
.consent-banner__actions,
.consent-modal__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.consent-btn,
.consent-settings {
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}
.consent-btn--primary { color: var(--paper-light); background: var(--ink); }
.consent-btn--secondary { color: var(--ink); background: transparent; }
.consent-settings {
  position: fixed;
  z-index: 85;
  left: 12px;
  bottom: 12px;
  padding: 7px 9px;
  color: var(--ink-soft);
  background: rgba(251, 248, 242, 0.94);
  border-color: var(--line-strong);
}
.consent-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 24, 22, 0.58);
}
.consent-modal--open { display: flex; }
.consent-modal__panel {
  width: min(100%, 560px);
  padding: 28px;
  background: var(--paper-light);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 60px rgba(24, 24, 22, 0.22);
}
.consent-modal h2 { margin-bottom: 8px; font-size: 1.8rem; }
.consent-option { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.consent-option:first-of-type { margin-top: 20px; }
.consent-option span { display: grid; gap: 4px; }
.consent-option strong { font-size: 0.82rem; }
.consent-option small { color: var(--ink-soft); line-height: 1.45; }
.consent-option input { width: 20px; height: 20px; accent-color: var(--ink); flex: 0 0 auto; }
.consent-modal__actions { margin-top: 20px; }

@media (max-width: 760px) {
  .consent-settings { display: none !important; }
  .consent-banner {
    right: 12px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    left: 12px;
    max-height: min(68dvh, 520px);
    overflow-y: auto;
    padding: 18px;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .consent-banner__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consent-banner__actions .consent-btn--primary { grid-column: 1 / -1; }
  .consent-modal { padding: 12px; }
  .consent-modal__panel { max-height: calc(100dvh - 24px); overflow-y: auto; padding: 22px 18px; }
}

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