/* About page: an intro line with the photo, a large headline, then numbered sections
   (story and experience, how I work, numbers, contact). Same tokens as the case studies. */
.about {
    --ink: #161615;
    --muted: #6b6b66;
    --soft: #6b6b66; /* 4.5:1 or better on the page and card greys */
    --line: rgba(0, 0, 0, 0.08);
    --mat: #efefeb;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 32px 120px;
    container-type: inline-size;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: -0.014em;
}

.about :is(h1, h2, h3, p, dt, dd, li) { pointer-events: auto; }

/* Intro --------------------------------------------------------------------------- */
.about-who { display: flex; align-items: center; gap: 12px; }
.about-who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.about-who p { font-size: 14px; line-height: 1.35; }
.about-who span { color: var(--muted); }

.about-title {
    max-width: 16ch;
    font-size: clamp(34px, 6.2cqi, 64px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

/* Sections ------------------------------------------------------------------------ */
.about-section { margin-top: 112px; }
.about-intro + .about-section { margin-top: 96px; }

.about-label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.about-label span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--mat);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 11px;
}

/* 01 Story beside the experience list */
.about-grid { display: grid; gap: 48px; margin-top: 28px; }
.about-copy { display: grid; gap: 16px; max-width: 52ch; color: var(--muted); }
.about-copy .about-lead { color: var(--ink); font-size: 17px; line-height: 1.5; }

.about-experience { font-size: 14px; }
.about-experience div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}
.about-experience div:first-child { border-top: 0; padding-top: 0; }
.about-experience dt span { color: var(--muted); }
.about-experience dt span::before { content: "· "; }
.about-experience dd { flex-shrink: 0; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 02 How I work */
.about-steps { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.about-steps li { padding: 24px; border-radius: 24px; background-color: var(--mat); }
.about-steps span { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; color: var(--soft); }
.about-steps h3 { margin-top: 40px; font-size: 15px; font-weight: 400; }
.about-steps p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* 03 In numbers */
.about-numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; margin-top: 28px; }
.about-numbers div { display: flex; flex-direction: column; gap: 12px; }
.about-numbers dd { font-size: clamp(40px, 6cqi, 56px); font-weight: 400; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.about-numbers dt { font-size: 13px; color: var(--muted); }

/* 04 Contact */
.about-contact-card { padding: 0; }
.about-contact-card h2 { font-size: clamp(24px, 3.6cqi, 36px); font-weight: 400; line-height: 1.1; letter-spacing: -0.035em; }
.about-contact-card p { max-width: 46ch; margin-top: 12px; color: var(--muted); }
.about-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.about-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 200px;
    background-color: #fff;
    color: var(--ink);
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 0 0 1px var(--line);
    border: 0;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s var(--ease);
}
.about-button .icon { width: 16px; height: 16px; }
.about-button.is-primary { background-color: var(--ink); color: #fff; box-shadow: none; }
.about-button:hover { transform: translateY(-1px); }
.about-button.is-primary:hover { background-color: #000; }
/* Contact: the soft pill matches the menu's "Learn more"; email reads as plain text */
/* The site's soft button (the menu's Learn more, Send): every Contact button uses it */
.about-button.is-soft { gap: 6px; height: 40px; padding: 0 18px; border-radius: 10px; background-color: rgba(0, 0, 0, 0.05); color: #4a4a46; font-size: 15px; box-shadow: none; transition: background-color 0.3s ease, color 0.3s ease; }
.about-button.is-soft .icon { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.about-button.is-soft:hover { transform: none; background-color: rgba(0, 0, 0, 0.08); color: var(--ink); }
.about-button.is-soft:hover .icon { transform: translateX(3px); }
.about-button.is-plain { gap: 6px; padding: 9px 4px; background-color: transparent; color: #4a4a46; font-weight: 400; box-shadow: none; transition: color 0.3s ease; }
.about-button.is-plain:hover { transform: none; color: var(--ink); }
.about-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

@container (min-width: 720px) {
    .about-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; }
    .about-experience { padding-top: 6px; }
    .about-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .about-numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
    .about { padding: 72px 16px 72px; }
    .about-section { margin-top: 80px; }
}

/* Before GSAP takes over, nothing waits on it: hidden only while the intro is pending */
.intro:not(.intro-ready) .about :is(.about-who, .about-title) { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
    .about-button { transition: none; }
}

/* How I build with AI / Tools / How I built this */
.about-intro-line { max-width: 56ch; margin-top: 20px; color: var(--muted); }
.about-intro-line + :is(.about-steps, .about-numbers) { margin-top: 28px; }
.about-tools { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.about-tools li { padding: 8px 14px; border-radius: 200px; background-color: var(--mat); font-size: 14px; }
@container (min-width: 720px) {
    .about-steps:has(> li:nth-child(4)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Sub-heads as two-tone sentences: the point in black, the gloss in grey */
.about-sub { max-width: 30ch; margin-top: 28px; font-size: clamp(22px, 2.6cqi, 30px); font-weight: 400; line-height: 1.2; letter-spacing: -0.03em; }
.about-sub span, .about-sub-small span { color: var(--muted); }
.about-sub-small { margin-top: 56px; font-size: 17px; font-weight: 400; letter-spacing: -0.02em; }
.about-sub-small + .about-steps, .about-sub-small + .about-toolkit { margin-top: 20px; }
.about-pair { display: grid; gap: 12px; margin-top: 28px; }
.about-pair > div { padding: 24px; border-radius: 24px; background-color: var(--mat); }
.about-pair h3 { font-size: 15px; font-weight: 400; }
.about-pair p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.about-pair + .about-sub { margin-top: 64px; }
.about-toolkit { display: grid; gap: 20px; }
.about-toolgroup > p { font-size: 13px; color: var(--muted); }
.about-toolgroup .about-tools { margin-top: 10px; }
@container (min-width: 720px) { .about-pair { grid-template-columns: 1fr 1fr; } }

/* After Adam Perlis's About: no boxes. Numbered points sit on a plain three-column grid
   (number, then the point in black, then a line of grey); sub-heads are small two-tone
   sentences; the toolkit is plain lists in columns under a hairline. */
.about-steps { gap: 44px 48px; }
.about-steps li { padding: 0; border-radius: 0; background: none; max-width: 34ch; }
.about-steps span { font-family: inherit; font-size: 13px; color: var(--soft); }
.about-steps h3 { margin-top: 14px; font-size: 14px; }
.about-steps p { margin-top: 6px; font-size: 13.5px; }
.about-pair > div { padding: 0; border-radius: 0; background: none; max-width: 40ch; }
.about-sub { max-width: 34ch; font-size: 15px; line-height: 1.45; letter-spacing: -0.015em; }
.about-sub-small { margin-top: 88px; font-size: 15px; letter-spacing: -0.015em; }
.about-sub-small + .about-steps { margin-top: 40px; }
.about-sub + .about-steps, .about-sub + .about-pair { margin-top: 40px; }
.about-pair + .about-sub { margin-top: 88px; }
.about-toolkit { margin-top: 28px !important; padding-top: 28px; border-top: 1px solid var(--line); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.about-toolgroup > p { color: var(--ink); font-size: 14px; }
.about-toolgroup .about-tools { display: grid; gap: 6px; margin-top: 14px; }
.about-toolgroup .about-tools li { padding: 0; border-radius: 0; background: none; color: var(--muted); font-size: 13.5px; }
@container (min-width: 720px) {
    .about-steps, .about-steps:has(> li:nth-child(4)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .about-toolkit { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* A thin rule between sections, for direction */
.about-section { padding-top: 48px; border-top: 1px solid var(--line); }
.about-intro + .about-section { border-top: 0; padding-top: 0; }

/* Request CV: a button under the experience list, bottom right, opening a dialog over a frosted
   page. Centered on wider screens; a sheet from the bottom on phones (js/about.js) */
.about-experience-col { display: grid; align-content: start; }
.about-cv { justify-self: end; margin-top: 20px; }

.cv-dialog {
    /* Same tokens as .about: the dialog sits outside it, at the end of <body> */
    --ink: #161615;
    --muted: #6b6b66;
    --soft: #6b6b66;
    --line: rgba(0, 0, 0, 0.08);
    --mat: #efefeb;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: -0.014em;
    margin: auto;
    width: min(520px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100dvh - 48px);
    padding: 0;
    border: 0;
    border-radius: 24px;
    background-color: #fff;
    color: var(--ink);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--line);
    overflow: auto;
    overscroll-behavior: contain;
}
.cv-dialog::backdrop {
    background-color: rgba(248, 248, 246, 0.55);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    backdrop-filter: blur(14px) saturate(1.1);
}
.cv-dialog[open]::backdrop { animation: cv-frost 0.35s ease both; }
@keyframes cv-frost { from { opacity: 0; } }
html:has(.cv-dialog[open]) { overflow: hidden; }

.cv-panel { position: relative; padding: 36px 32px 28px; }
.cv-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background-color: var(--mat);
    color: var(--ink);
    cursor: pointer;
}
.cv-close .icon { width: 18px; height: 18px; }
.cv-close:hover { background-color: #e4e4df; }
.cv-close:focus-visible, .cv-dialog :is(input, textarea):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.cv-dialog h2 { padding-right: 44px; font-size: clamp(24px, 4vw, 30px); font-weight: 400; line-height: 1.1; letter-spacing: -0.035em; }
.cv-intro { max-width: 40ch; margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--muted); }

.cv-fields { display: grid; gap: 16px; margin-top: 28px; }
.cv-field { display: grid; gap: 6px; }
.cv-field label { font-size: 13px; color: var(--ink); }
.cv-dialog :is(input, textarea) {
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: 12px;
    background-color: var(--mat);
    box-shadow: inset 0 0 0 1px transparent;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.cv-dialog textarea { min-height: 112px; resize: vertical; }
.cv-dialog :is(input, textarea):focus { background-color: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.cv-dialog [aria-invalid="true"] { background-color: #fff; box-shadow: inset 0 0 0 1px #c4362a; }
.cv-error { min-height: 0; font-size: 12px; color: #b3261e; }
.cv-error:empty { display: none; }
.cv-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cv-status { margin-top: 16px; font-size: 13px; line-height: 1.5; color: #b3261e; }
.cv-status:empty { display: none; }
.cv-status a { color: inherit; }
.cv-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.cv-actions .about-button { justify-content: center; }
.cv-dialog [data-cv-submit][aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.cv-note { margin-top: 16px; font-size: 12px; color: var(--soft); text-align: right; }

.cv-done { display: grid; justify-items: start; gap: 10px; padding-top: 8px; }
.cv-done[hidden] { display: none; }
.cv-done-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 50%; background-color: #e7f4ec; color: #1f7a44; }
.cv-done-icon .icon { width: 22px; height: 22px; }
.cv-done h2:focus { outline: none; }
.cv-done p { max-width: 40ch; font-size: 14px; line-height: 1.55; color: var(--muted); }
.cv-done .cv-actions { justify-self: stretch; margin-top: 18px; }

/* Phones: a sheet that rises from the bottom edge, full width, buttons full width */
@media (max-width: 600px) {
    .cv-dialog {
        width: 100%;
        max-height: calc(100dvh - 24px);
        margin: auto 0 0;
        border-radius: 24px 24px 0 0;
    }
    .cv-panel { padding: 28px 16px calc(20px + env(safe-area-inset-bottom)); }
    .cv-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .cv-done .cv-actions { grid-template-columns: 1fr; }
    .cv-note { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .cv-dialog[open]::backdrop { animation: none; } }

/* 01 About: Contact under the closing line, then LinkedIn and Awwwards a step quieter */
/* The button runs the width of the links row under it */
.about-reach { display: inline-grid; justify-self: start; gap: 14px; margin-top: 8px; }
.ring-button.about-contact { justify-content: center; padding-block: 7px; }
.about-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.about-links a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color 0.2s ease, color 0.2s ease; }
.about-links a:hover { border-color: var(--ink); color: var(--ink); }
.about-links .icon { width: 14px; height: 14px; color: var(--soft); }
.about-links a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Contact and Privacy, after Adam Perlis's: one size of type, a short intro line, a numbered
   label, then the page. Contact puts the pitch left and the form right; Privacy is one column. */
.page-split, .page-single { padding-top: 64px; }
.page-grid { display: grid; gap: 56px; }
.page-who { margin-bottom: 40px; }
.page-who + .page-title { margin-top: 56px; }
.page-who p { font-size: 15px; line-height: 1.5; }
.page-label { margin-bottom: 56px; }
.page-title { max-width: 30ch; font-size: 15px; font-weight: 400; line-height: 1.5; letter-spacing: -0.014em; }
.page-title span { color: var(--muted); }
.page-text { max-width: 38ch; margin-top: 8px; color: var(--muted); }
.page-aside { margin-top: 32px; }
.page-aside-tight { margin-top: 10px; }
.page-date { margin-top: 12px; }
.page-link { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(0, 0, 0, 0.3); text-underline-offset: 3px; transition: text-decoration-color 0.25s ease; }
.page-link:hover { text-decoration-color: var(--ink); }
.page-link .icon { width: 13px; height: 13px; }
.legal-lead { max-width: 48ch; margin-top: 8px; color: var(--muted); }

.contact-form { display: grid; gap: 16px; }
.contact-form[hidden] { display: none; }
.contact-field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-field :is(label, legend) { padding: 0; font-size: 13px; color: var(--muted); }
.contact-field legend { margin-bottom: 12px; }
.contact-pair { display: grid; gap: 16px; }
.contact-form :is(input[type="text"], input[type="email"], textarea) {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background-color: #f2f2ee;
    box-shadow: inset 0 0 0 1px transparent;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.contact-form textarea { height: auto; min-height: 145px; padding: 13px 16px; resize: vertical; }
.contact-form :is(input, textarea):focus { outline: none; background-color: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.contact-form :is(input, textarea):focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.contact-form [aria-invalid="true"] { background-color: #fff; box-shadow: inset 0 0 0 1px #c4362a; }
.contact-error { font-size: 12px; color: #b3261e; }
.contact-error:empty { display: none; }

.contact-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-chip { position: relative; cursor: pointer; }
.contact-chip input { position: absolute; opacity: 0; pointer-events: none; }
.contact-chip span { display: flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 200px; background-color: #f2f2ee; color: var(--ink); transition: background-color 0.25s ease, color 0.25s ease; }
.contact-chip:hover span { background-color: #e8e8e3; }
.contact-chip input:checked + span { background-color: var(--ink); color: #fff; }
.contact-chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.contact-status { font-size: 13px; line-height: 1.5; color: #b3261e; }
.contact-status:empty { display: none; }
.contact-status a { color: inherit; }
.contact-send .about-button { padding: 0 22px; }
.contact-form [data-contact-submit][aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.contact-note { font-size: 13px; color: var(--muted); }
.contact-note a { color: inherit; text-decoration-color: rgba(0, 0, 0, 0.3); text-underline-offset: 3px; }
.contact-note a:hover { color: var(--ink); }

.contact-done { display: grid; justify-items: start; gap: 8px; }
.contact-done[hidden] { display: none; }
.contact-done h2 { font-size: 15px; font-weight: 400; }
.contact-done h2:focus { outline: none; }
.contact-done p { max-width: 40ch; color: var(--muted); }
.contact-done .about-button { margin-top: 12px; }

.privacy-section { max-width: 586px; margin-top: 64px; scroll-margin-top: 96px; }
.privacy-section h2 { font-size: 15px; font-weight: 400; line-height: 1.5; }
.privacy-section p { margin-top: 12px; color: var(--muted); }
.privacy-section h2 + p { margin-top: 16px; }
.privacy-section code { padding: 1px 4px; border-radius: 5px; background-color: #f2f2ee; color: var(--ink); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }
.privacy-toggle { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 10px 10px 10px 16px; border-radius: 12px; background-color: #f2f2ee; }
.privacy-toggle p { margin: 0; }
.privacy-toggle .about-button { height: 40px; padding: 0 18px; justify-content: center; }
.privacy-toggle .about-button[hidden] { display: none; }

@container (min-width: 820px) {
    .page-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 512px); gap: 64px; justify-content: space-between; }
    .contact-pair { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) { .page-split, .page-single { padding-top: 24px; } .page-label { margin-bottom: 40px; } }

/* Unlock page: shown in place of a password-protected case study (functions/_middleware.js) */
.unlock-kicker { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; padding: 6px 11px; border-radius: 9px; background-color: rgba(0, 0, 0, 0.05); color: #4a4a46; font-size: 13px; }
.unlock-kicker .icon { width: 13px; height: 13px; }
.unlock-body { max-width: 520px; }
.unlock-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.unlock-row .about-button { justify-content: center; }
.unlock-form input[type="password"] { width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background-color: var(--mat); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 0.2s ease, background-color 0.2s ease; }
.unlock-form input[type="password"]:focus { outline: none; background-color: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.unlock-form input[type="password"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.unlock-form [aria-invalid="true"] { background-color: #fff; box-shadow: inset 0 0 0 1px #c4362a; }
.unlock-form [data-unlock-submit][aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.unlock-ask { margin-top: 20px; font-size: 14px; color: var(--muted); }
.unlock-ask a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 600px) { .unlock-row { grid-template-columns: 1fr; } }

/* Every text field on the site (contact, CV request, unlock) types in the site's body style:
   Inter, 15px, regular, the same tracking and ink. Phones get 16px so they don't zoom on focus. */
:is(.contact-form, .cv-dialog, .unlock-form) :is(input:not([type="radio"]):not([type="checkbox"]), textarea) {
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.014em;
}
:is(.contact-form, .cv-dialog, .unlock-form) :is(input, textarea)::placeholder { color: #8a8a85; opacity: 1; }
@media (pointer: coarse) {
    :is(.contact-form, .cv-dialog, .unlock-form) :is(input:not([type="radio"]):not([type="checkbox"]), textarea) { font-size: 16px; }
}
