@layer reset, base, components, motion, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, p, figure { margin: 0; }
  button, a { -webkit-tap-highlight-color: transparent; }
  button { font: inherit; }
  img { display: block; max-width: 100%; }
}
@layer base {
  :root { --paper: #f4f0e8; --ink: #292924; --muted: #68685f; --wine: #702e3b; --line: #d4d0c6; --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif; --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif; }
  html { scroll-behavior: smooth; scroll-padding-top: 100px; }
  body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; -webkit-font-smoothing: antialiased; }
  ::selection { background: var(--wine); color: var(--paper); }
  a { color: inherit; text-decoration: none; }
  button { color: inherit; }
  a, button, summary { touch-action: manipulation; }
  :focus-visible { outline: 2px solid var(--wine); outline-offset: 6px; }
  h1, h2, h3 { font-weight: 400; }
  h2 { font-size: clamp(36px, 4.3vw, 65px); line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
  em, .serif { font-family: var(--serif); font-weight: 400; }
  em, .italic { font-style: italic; }
  p { line-height: 1.7; }
  .wrap { width: min(1320px, calc(100% - 112px)); margin-inline: auto; }
  .section-space { padding-block: 112px; }
  .eyebrow, .tiny-label, .section-label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .15em; line-height: 1.6; }
  .section-label { display: flex; gap: 22px; margin-bottom: 56px; }
  .section-number { color: var(--wine); }
  .tiny-label { display: block; }
}
@layer components {
  .skip-link { position: fixed; top: -100px; left: 20px; padding: 15px; background: var(--ink); color: white; z-index: 100; }
  .skip-link:focus { top: 12px; }
  .reading-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--wine); z-index: 30; }
  .site-header { position: sticky; top: 0; z-index: 20; height: 92px; padding-inline: 56px; display: flex; align-items: center; justify-content: space-between; background: rgb(244 240 232 / .94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
  .monogram { font-family: var(--serif); font-size: 45px; letter-spacing: -.12em; line-height: 1; padding-right: 8px; }
  .monogram span { color: var(--wine); }
  nav { display: flex; gap: 38px; font-size: 12px; }
  nav a { position: relative; padding-block: 12px; }
  nav a::after { content: ''; position: absolute; bottom: 6px; left: 0; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
  nav a:hover::after, nav a.active::after { transform: scaleX(1); }
  nav a span { margin-left: 8px; }
  .language-switch { display: flex; align-items: center; gap: 4px; font-size: 11px; }
  .language-switch > span { color: var(--line); }
  .language-switch button { border: 0; background: none; padding: 12px 8px; cursor: pointer; color: var(--muted); }
  .language-switch button[aria-pressed='true'] { color: var(--wine); font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
  .hero { padding-top: 55px; }
  .hero-topline { display: flex; justify-content: space-between; align-items: center; }
  .edition { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--muted); }
  h1 { font-size: clamp(60px, 8.4vw, 128px); line-height: .99; letter-spacing: -.064em; margin: 50px 0 28px; position: relative; z-index: 2; }
  h1 .serif { color: var(--wine); letter-spacing: -.055em; display: inline-block; margin-left: 9%; }
  .hero-bottom { display: grid; grid-template-columns: 1fr 1fr 70px; gap: 60px; align-items: end; }
  .hero-intro { max-width: 360px; padding-bottom: 35px; }
  .hero-intro .tiny-label { font-size: 10px; max-width: 280px; }
  .hero-intro p { font-size: 17px; margin: 20px 0 28px; line-height: 1.65; color: var(--muted); }
  .text-link { display: inline-flex; gap: 36px; font-size: 12px; padding-block: 10px; border-bottom: 1px solid var(--ink); }
  .text-link span:last-child { transition: transform .25s; }
  .text-link:hover span:last-child { transform: translate(3px, 3px); }
  .portrait-composition { position: relative; justify-self: center; width: min(100%, 310px); margin-top: -32px; }
  .portrait-frame { background: #23171f; aspect-ratio: 1; overflow: hidden; border-radius: 50% 50% 2px 2px; }
  .portrait-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
  .portrait-composition:hover img { transform: scale(1.035); }
  .portrait-coordinate { position: absolute; left: -27px; top: 45%; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9px; letter-spacing: .15em; color: var(--muted); }
  .portrait-composition figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 9px; margin-top: 15px; }
  .portrait-composition figcaption span:last-child { color: var(--muted); }
  .portrait-orbit { position: absolute; right: -43px; bottom: 36px; font-family: var(--sans); font-variant-emoji: text; font-size: 95px; font-weight: 300; line-height: 1; color: var(--wine); }
  .scroll-cue { display: flex; flex-direction: column; gap: 22px; align-items: center; justify-self: end; padding-bottom: 10px; }
  .scroll-cue span:first-child { writing-mode: vertical-rl; font-size: 9px; text-transform: uppercase; letter-spacing: .18em; }
  .scroll-cue span:last-child { border: 1px solid var(--line); border-radius: 50%; width: 43px; height: 43px; display: grid; place-items: center; transition: background .3s; }
  .scroll-cue:hover span:last-child { background: #e7e1d7; }
  .hero-footer { display: flex; justify-content: space-between; margin-top: 55px; padding-block: 20px; border-top: 1px solid var(--line); font-size: 9px; text-transform: uppercase; letter-spacing: .17em; color: var(--muted); }
  .perspective { display: grid; grid-template-columns: 1fr 2.3fr; column-gap: 60px; }
  .perspective-content h2 { max-width: 790px; }
  .perspective-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; margin-top: 36px; font-size: 14px; color: var(--muted); }
  .metrics { grid-column: 1/-1; margin-top: 80px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 40px; }
  .metric { padding-left: 12%; border-right: 1px solid var(--line); }
  .metric:first-child { padding-left: 0; }
  .metric:nth-child(3) { border: none; }
  .metric-value { display: block; font-family: var(--serif); font-size: clamp(55px, 6.8vw, 95px); letter-spacing: -.065em; line-height: 1.1; }
  .metric-value > span { color: var(--wine); font-size: .7em; margin-left: 4px; }
  .metric-label { font-size: 11px; color: var(--muted); display: block; margin-top: 12px; }
  .metrics-note { grid-column: 1/-1; font-size: 9px; color: var(--muted); margin-top: 38px; }
  .experience { background: #eae6dd; }
  .section-heading { display: flex; justify-content: space-between; gap: 70px; align-items: end; margin-bottom: 75px; }
  .section-heading > p { max-width: 270px; font-size: 13px; color: var(--muted); }
  .company-group { display: grid; grid-template-columns: 1fr 2.3fr; gap: 60px; border-top: 1px solid #bfbdb2; padding-top: 35px; }
  .company-group + .company-group { margin-top: 65px; }
  .company-heading h3,
  .company-heading .sailor-logo { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important; font-size: 29px; font-style: normal; font-weight: 650; letter-spacing: -.05em; line-height: 1; }
  .company-dot { color: var(--wine); font-size: 12px; vertical-align: top; margin-left: 3px; }
  .company-heading p { font-size: 11px; color: var(--muted); margin-top: 14px; }
  .company-period { display: block; font-size: 10px; margin-top: 30px; }
  .sailor-logo span { color: var(--wine); }
  .role { border-bottom: 1px solid var(--line); }
  .role summary { list-style: none; display: grid; grid-template-columns: 130px 1fr 24px; gap: 25px; cursor: pointer; padding: 27px 0; align-items: start; }
  .role:first-child summary { padding-top: 5px; }
  .role summary::-webkit-details-marker { display: none; }
  .role-date { font-size: 10px; color: var(--muted); padding-top: 5px; line-height: 1.6; }
  .role-title { font-size: 20px; line-height: 1.35; letter-spacing: -.03em; transition: color .2s; }
  .role-title > span { display: block; font-size: 11px; color: var(--muted); margin-top: 7px; letter-spacing: 0; }
  .role summary:hover .role-title { color: var(--wine); }
  .expand-icon { width: 22px; height: 22px; border: 1px solid #bcb9af; border-radius: 50%; position: relative; }
  .expand-icon::before, .expand-icon::after { content: ''; background: var(--ink); position: absolute; top: 10px; left: 6px; width: 8px; height: 1px; }
  .expand-icon::after { transform: rotate(90deg); transition: transform .25s; }
  details[open] .expand-icon::after { transform: rotate(0deg); }
  .role-body { padding: 0 49px 28px 155px; font-size: 13px; color: var(--muted); }
  .tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 18px; }
  .tags span { border: 1px solid #cecabf; padding: 5px 9px; font-size: 9px; border-radius: 2px; }
  .beyond { background: var(--wine); color: var(--paper); position: relative; overflow: hidden; }
  .beyond .section-number { color: #d6b7ac; }
  .beyond-heading { display: flex; justify-content: space-between; align-items: center; }
  .beyond h2 { font-size: clamp(45px, 5.5vw, 80px); }
  .beyond-intro { max-width: 470px; font-size: 14px; color: #e1cbc8; margin: 30px 0 65px; }
  .abstract-flower { position: relative; height: 160px; width: 160px; margin-right: 50px; opacity: .7; }
  .abstract-flower span { position: absolute; inset: 0; border: 1px solid #d9bdb6; border-radius: 50%; transform: scaleX(.4); }
  .abstract-flower span:nth-child(2) { transform: rotate(45deg) scaleX(.4); }
  .abstract-flower span:nth-child(3) { transform: rotate(90deg) scaleX(.4); }
  .abstract-flower span:nth-child(4) { transform: rotate(135deg) scaleX(.4); }
  .chapter-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
  .chapter { position: relative; padding: 28px 32px 0; border-top: 1px solid #a36c74; border-right: 1px solid #a36c74; transition: background .3s; }
  .chapter:first-child { padding-left: 0; }
  .chapter:last-child { border-right: 0; padding-right: 0; }
  .chapter-index { display: block; font-family: var(--serif); font-size: 32px; font-style: italic; color: #d9bdb6; }
  .chapter-years { position: absolute; top: 37px; right: 32px; font-size: 9px; letter-spacing: .1em; }
  .chapter:last-child .chapter-years { right: 0; }
  .chapter h3 { font-family: var(--serif); font-size: clamp(25px, 2.7vw, 39px); margin-top: 42px; letter-spacing: -.045em; }
  .chapter-role { font-size: 12px; margin-top: 18px; }
  .chapter-org { font-size: 10px; color: #dfc5c3; margin-top: 4px; min-height: 35px; }
  .chapter-text { font-size: 12px; color: #dfc5c3; margin-top: 20px; max-width: 300px; }
  .toolkit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
  .toolkit h2 { font-size: clamp(35px, 3.6vw, 54px); }
  .skill-list { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 40px; }
  .skill-list > span { border: 1px solid var(--line); border-radius: 50px; padding: 11px 16px; font-size: 11px; transition: background .3s, color .3s, border-color .3s; }
  .skill-list > span:hover { background: var(--wine); border-color: var(--wine); color: var(--paper); }
  .credentials { border-top: 1px solid var(--line); padding-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
  .credentials .tiny-label { font-size: 9px; color: var(--muted); }
  .credentials h3 { font-size: 14px; margin-top: 16px; }
  .credentials p { font-size: 11px; color: var(--muted); margin-top: 8px; }
  .contact { background: #252821; color: var(--paper); padding-bottom: 35px; }
  .contact :focus-visible { outline-color: #d8b4ac; }
  .contact-top { display: flex; justify-content: space-between; align-items: center; }
  .contact .eyebrow { color: #c5c7ba; }
  .contact-star { color: #b3b8a1; font-family: var(--sans); font-variant-emoji: text; font-size: 70px; line-height: 1; }
  .contact h2 { font-size: clamp(70px, 9.5vw, 140px); line-height: .98; letter-spacing: -.06em; margin-top: 20px; }
  .contact h2 em { color: #c3c7b3; }
  .contact-actions { display: flex; align-items: center; gap: 65px; margin-top: 55px; }
  .contact-cta { display: flex; justify-content: space-between; gap: 65px; padding: 22px 26px; background: var(--paper); color: var(--ink); min-width: 230px; font-size: 14px; transition: background .25s, transform .25s; }
  .contact-cta:hover { background: #d6dac7; transform: translateY(-3px); }
  .contact-cta > span:last-child { font-size: 22px; line-height: .8; }
  .resume-link { display: grid; grid-template-columns: 1fr auto; column-gap: 35px; row-gap: 7px; font-size: 12px; }
  .resume-link > span:first-child { border-bottom: 1px solid transparent; }
  .resume-link:hover > span:first-child { border-color: currentColor; }
  .resume-link small { color: #aeb3a2; font-size: 9px; }
  .contact-details { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; border-top: 1px solid #505349; padding-top: 28px; margin-top: 85px; font-size: 11px; color: #ced0c5; }
  .contact-details a:hover { text-decoration: underline; text-underline-offset: 4px; }
  .site-footer { display: flex; justify-content: space-between; align-items: center; padding-block: 35px; gap: 20px; }
  .footer-name { font-family: var(--serif); font-size: 23px; letter-spacing: -.04em; }
  .footer-name span { color: var(--wine); }
  .site-footer > span { font-size: 10px; color: var(--muted); }
  .back-top { font-size: 10px; }
  .noscript-note { font-size: 12px; text-align: center; padding: 20px; }
}
@layer motion {
  @keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: no-preference) {
    .hero h1 { animation: enter 1s .1s both; }
    .hero-intro { animation: enter 1s .3s both; }
    .portrait-composition { animation: enter 1.2s .2s both; }
    .reveal.is-pending { opacity: 0; transform: translateY(24px); }
    .reveal { transition: opacity .8s, transform .8s; }
    .chapter:nth-child(2) { transition-delay: .1s; }
    .chapter:nth-child(3) { transition-delay: .2s; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }
}
@layer responsive {
  @media (min-width: 1600px) { .site-header { padding-inline: max(56px, calc((100% - 1320px)/2)); } }
  @media (max-width: 1100px) {
    .wrap { width: calc(100% - 72px); }
    .site-header { padding-inline: 36px; height: 80px; }
    .hero-bottom { gap: 35px; grid-template-columns: 1fr 1fr 45px; }
    .hero-intro { padding-bottom: 0; }
    .portrait-composition { margin-top: 0; width: 255px; }
    .portrait-orbit { font-size: 75px; right: -26px; }
    .perspective, .company-group { column-gap: 35px; grid-template-columns: 1fr 2.5fr; }
    .role summary { grid-template-columns: 100px 1fr 22px; gap: 16px; }
    .role-body { padding-left: 116px; padding-right: 25px; }
    .role-title { font-size: 18px; }
    .toolkit-grid { gap: 40px; }
  }
  @media (max-width: 760px) {
    .wrap { width: calc(100% - 40px); }
    .site-header { padding-inline: 20px; height: 72px; }
    .monogram { font-size: 38px; }
    nav { gap: 20px; font-size: 11px; }
    nav a:first-child { display: none; }
    .language-switch button { padding-inline: 6px; }
    .hero { padding-top: 30px; }
    .hero-topline .eyebrow { font-size: 9px; }
    .edition { font-size: 12px; }
    h1 { font-size: clamp(45px, 9.4vw, 76px); margin: 45px 0 35px; }
    h1 .serif { margin-left: 3%; }
    .hero-bottom { grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
    .hero-intro p { font-size: 13px; margin: 15px 0; }
    .hero-intro .tiny-label { font-size: 8px; letter-spacing: .1em; }
    .text-link { font-size: 10px; gap: 14px; }
    .portrait-composition { width: 100%; max-width: 240px; }
    .portrait-coordinate { display: none; }
    .portrait-orbit { display: block; right: -8px; bottom: 40px; font-size: 55px; }
    .portrait-composition figcaption { font-size: 8px; }
    .portrait-composition figcaption span:last-child { display: none; }
    .scroll-cue { display: none; }
    .hero-footer { margin-top: 35px; font-size: 8px; gap: 20px; }
    .hero-footer span:first-child { max-width: 180px; }
    .section-space { padding-block: 70px; }
    .section-label { margin-bottom: 30px; font-size: 10px; }
    .perspective { display: block; }
    .perspective-copy { gap: 22px; margin-top: 28px; font-size: 13px; }
    .metrics { margin-top: 45px; padding-top: 25px; }
    .metric { padding-left: 12%; }
    .metric-value { font-size: clamp(35px, 8.7vw, 65px); }
    .metric-label { font-size: 9px; line-height: 1.5; padding-right: 10px; }
    .metrics-note { font-size: 8px; margin-top: 22px; }
    .section-heading { display: block; margin-bottom: 40px; }
    .section-heading > p { margin-top: 25px; max-width: 340px; }
    .company-group { display: block; padding-top: 25px; }
    .company-heading { margin-bottom: 35px; position: relative; }
    .company-heading h3 { font-size: 25px; }
    .company-period { position: absolute; right: 0; top: 0; margin-top: 6px; font-size: 9px; }
    .company-heading p { margin-top: 10px; }
    .role summary { grid-template-columns: 90px 1fr 22px; gap: 14px; padding-block: 22px; }
    .role-date { font-size: 9px; }
    .role-title { font-size: 17px; }
    .role-title > span { font-size: 10px; }
    .role-body { padding-left: 104px; padding-right: 10px; font-size: 12px; }
    .company-group + .company-group { margin-top: 45px; }
    .beyond h2 { font-size: 43px; }
    .abstract-flower { width: 80px; height: 80px; margin-right: 0; flex-shrink: 0; margin-left: 10px; }
    .beyond-intro { font-size: 13px; margin-bottom: 35px; }
    .chapter-grid { grid-template-columns: 1fr; }
    .chapter, .chapter:first-child, .chapter:last-child { padding: 25px 0 28px; border-right: 0; }
    .chapter-years { right: 0; }
    .chapter h3 { margin-top: 20px; font-size: 35px; }
    .chapter-org { min-height: 0; }
    .chapter-text { max-width: 100%; margin-top: 15px; }
    .chapter:last-child { padding-bottom: 0; }
    .toolkit-grid { grid-template-columns: 1fr; gap: 35px; }
    .skill-list { padding-bottom: 30px; }
    .contact h2 { font-size: clamp(56px, 12vw, 85px); margin-top: 30px; }
    .contact .eyebrow { max-width: 230px; font-size: 10px; }
    .contact-star { font-size: 50px; }
    .contact-actions { margin-top: 35px; gap: 30px; flex-wrap: wrap; }
    .contact-cta { min-width: 180px; padding: 20px; }
    .contact-details { margin-top: 50px; flex-direction: column; gap: 15px; padding-top: 25px; }
    .contact { padding-bottom: 30px; }
    .site-footer { flex-wrap: wrap; padding-block: 25px; }
    .site-footer > span { order: 3; width: 100%; font-size: 9px; }
  }
  @media (max-width: 380px) {
    nav { gap: 12px; }
    .hero-topline { align-items: start; gap: 20px; }
    .edition { text-align: right; }
    .hero-bottom { gap: 15px; }
    .beyond h2 { font-size: 37px; }
    .abstract-flower { width: 55px; height: 55px; }
    .role summary { grid-template-columns: 1fr 22px; }
    .role-date { grid-column: 1/-1; }
    .role-body { padding-left: 0; }
  }
}
