/* Our Philosophy + Who We Are (replaced the Meet the Team gallery, 2026-10-12;
   devices added 2026-10-13). Vocabulary borrowed from the sections above: the
   what-we-do dot-and-line diagram (dotFadeIn / charClipReveal / lineTrace /
   lineFill / subtleWave keyframes live in home-what-we-do.css), the grid-and-
   vignette panel, Courier mono indexes and tags, the process page's drawn frame
   corners. Reveal on scroll via .in-view from scripts/home.js. */

.homepage .philosophy {
    padding: 40px 150px 60px;
}
.homepage .who-we-are {
    padding: 120px 150px 210px;
}

/* Title row: the section title left, a ~/path tag right (as ~/projects on Selected Work) */
.homepage .about-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 20px 0 7px;
}
.homepage .about-head .title {
    margin: 0;
}
.homepage .about-head__path {
    font-family: "Courier New", monospace;
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.3);
}

/* Section titles: same hairline as what-we-do */
.homepage .philosophy .title,
.homepage .who-we-are .title {
    position: relative;
    display: inline-block;
}
.homepage .philosophy .title::after,
.homepage .who-we-are .title::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 25px);
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}
.homepage .philosophy.in-view .title::after,
.homepage .who-we-are.in-view .title::after {
    width: 75px;
}

/* ------------------------------------------------------------------
   Philosophy: four columns, hairline dividers, a diagram per principle
   ------------------------------------------------------------------ */
.homepage .philosophy__list {
    list-style: none;
    margin: 50px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
    column-gap: 80px;
    row-gap: 0;
}
/* Dividers sit in the gap, so all four columns get the same text width */
.homepage .philosophy__item {
    position: relative;
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    align-content: start;
    padding: 0 0 10px;
}
.homepage .philosophy__item + .philosophy__item::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40px;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}
.homepage .philosophy__item:nth-child(1) { --dev-delay: 0.6s; }
.homepage .philosophy__item:nth-child(2) { --dev-delay: 0.7s; }
.homepage .philosophy__item:nth-child(3) { --dev-delay: 0.8s; }
.homepage .philosophy__item:nth-child(4) { --dev-delay: 0.9s; }
.homepage .philosophy__index {
    font-family: "Courier New", monospace;
    font-size: 13px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
}
/* Caps sub-heads, the site's convention (process page values, project names) */
.homepage .philosophy__lead {
    align-self: end;
    font-family: "Lexend";
    font-size: 22px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    text-wrap: balance;
    color: white;
    margin: 0 0 12px;
}
.homepage .philosophy__item .paragraph {
    margin: 0;
}
.homepage .philosophy__item .paragraph b,
.homepage .who-we-are__intro b {
    font-weight: inherit;
    color: white;
}

/* The diagram: dots, lines and chars, same primitives as what-we-do */
.homepage .philosophy .diagram {
    position: relative;
    box-sizing: border-box;
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    min-height: 76px;
    margin: 0 0 26px;
    padding: 30px 8px 20px 2px;
    color: white;
    font-family: "Lexend";
    font-size: 14px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}
.homepage .philosophy .diagram .dot {
    position: relative;
    flex: 0 0 auto;
    width: 5px;
    height: 5px;
    border-radius: 10px;
    background-color: white;
}
.homepage .philosophy .diagram .dot .char {
    position: absolute;
    top: -7px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    white-space: nowrap;
}
.homepage .philosophy .diagram .line {
    position: relative;
    flex: 1 1 0;
    height: 1px;
    margin: 0 10px 2px;
    background: transparent;
}
.homepage .philosophy .diagram .line::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, white 0%, white 50%, rgba(255,255,255,0.6) 80%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left center;
}
.homepage .philosophy .diagram .line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: white;
    transform-origin: left center;
}
.homepage .philosophy .diagram .end {
    flex: 0 0 auto;
    margin-left: -4px;
    line-height: 1;
}
/* The other three principles each get their own device from the site's terminal
   vocabulary (Gage, 2026-10-16: "They shouldn't *all* be the ascii timeline").
   Same box as the diagram: they share the subgrid row, bottom-aligned on the rule. */
.homepage .philosophy .device {
    position: relative;
    box-sizing: border-box;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 76px;
    margin: 0 0 26px;
    padding: 24px 0 18px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
    font-family: "Courier New", monospace;
    color: white;
}

/* [02] terminal readout: the command types, then the listing appears */
.homepage .philosophy .device--terminal {
    gap: 8px;
    font-size: 14px;
    letter-spacing: 0.5px;
}
.homepage .philosophy .term-line {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}
.homepage .philosophy .term-prompt {
    color: rgba(255, 255, 255, 0.45);
}
.homepage .philosophy .term-cmd {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: bottom;
}
.homepage .philosophy .term-out {
    display: flex;
    gap: 24px;
    padding-left: 20px;
}
.homepage .philosophy.is-armed .term-cmd {
    width: 0;
}
.homepage .philosophy.is-armed .term-out {
    opacity: 0;
}
.homepage .philosophy .philosophy__item.in-view .term-cmd {
    animation: termType 0.7s steps(var(--chars, 9), end) var(--dev-delay, 0.6s) forwards;
}
.homepage .philosophy .philosophy__item.in-view .term-out {
    opacity: 1;
    transition: opacity 0.3s ease calc(var(--dev-delay, 0.6s) + 0.85s);
}
@keyframes termType {
    from { width: 0; }
    to   { width: calc(var(--chars, 9) * (1ch + 0.5px)); }
}

/* [03] cost against return: segmented terminal bars, return runs past cost */
.homepage .philosophy .device--bars {
    gap: 12px;
}
.homepage .philosophy .bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.homepage .philosophy .bar-label {
    flex: 0 0 56px;
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}
.homepage .philosophy .bar-track {
    position: relative;
    flex: 1 1 auto;
    height: 8px;
}
.homepage .philosophy .bar-track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}
.homepage .philosophy .bar-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--to);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0 5px, transparent 5px 7px) left center / 7px 100% round;
}
.homepage .philosophy .bar-fill--return {
    background: linear-gradient(90deg, #ffffff 0 5px, transparent 5px 7px) left center / 7px 100% round;
}
.homepage .philosophy.is-armed .bar-fill {
    width: 0;
}
.homepage .philosophy .philosophy__item.in-view .bar-fill {
    width: var(--to);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--dev-delay, 0.6s);
}
.homepage .philosophy .philosophy__item.in-view .bar-fill--return {
    transition-duration: 1.1s;
    transition-delay: calc(var(--dev-delay, 0.6s) + 0.2s);
}

/* [04] the founding year in outline type (the outline WORK on Selected Work), counting back to it */
.homepage .philosophy .device--year {
    padding-bottom: 12px;
}
.homepage .philosophy .year-num {
    font-family: "Lexend";
    font-size: 44px;
    font-weight: 400;
    line-height: 0.85;
    letter-spacing: 0;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.45);
}

/* Starting states apply only once home.js arms the section (it skips arming under
   reduced motion), so a script that fails to load or run leaves everything visible. */
.homepage .philosophy.is-armed .diagram .dot {
    opacity: 0;
}
.homepage .philosophy.is-armed .diagram .dot .char,
.homepage .philosophy.is-armed .diagram .end {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
}
.homepage .philosophy.is-armed .diagram .line::after {
    transform: scaleX(0);
}

/* Animated state (keyframes defined in home-what-we-do.css) */
.homepage .philosophy .diagram.animate .dot {
    animation: dotFadeIn 0.15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.homepage .philosophy .diagram.animate .dot .char,
.homepage .philosophy .diagram.animate .end {
    animation: charClipReveal 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.homepage .philosophy .diagram.animate .line::before {
    animation: lineTrace 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.homepage .philosophy .diagram.animate .line::after {
    animation: lineFill 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
/* Stagger: dots on odd children, lines on even, left to right */
.homepage .philosophy .diagram.animate > :nth-child(1) { animation-delay: 0s; }
.homepage .philosophy .diagram.animate > :nth-child(1) .char { animation-delay: 0.08s; }
.homepage .philosophy .diagram.animate > :nth-child(2)::before { animation-delay: 0.08s; }
.homepage .philosophy .diagram.animate > :nth-child(2)::after { animation-delay: 0.1s; }
.homepage .philosophy .diagram.animate > :nth-child(3) { animation-delay: 0.25s; }
.homepage .philosophy .diagram.animate > :nth-child(3) .char { animation-delay: 0.33s; }
.homepage .philosophy .diagram.animate > :nth-child(4)::before { animation-delay: 0.33s; }
.homepage .philosophy .diagram.animate > :nth-child(4)::after { animation-delay: 0.35s; }
.homepage .philosophy .diagram.animate > :nth-child(5) { animation-delay: 0.5s; }
.homepage .philosophy .diagram.animate > :nth-child(5) .char { animation-delay: 0.58s; }
.homepage .philosophy .diagram.animate > :nth-child(6)::before { animation-delay: 0.58s; }
.homepage .philosophy .diagram.animate > :nth-child(6)::after { animation-delay: 0.6s; }
.homepage .philosophy .diagram.animate > :nth-child(7) { animation-delay: 0.75s; }
.homepage .philosophy .diagram.animate > :nth-child(7) .char { animation-delay: 0.83s; }
.homepage .philosophy .diagram.animate > :nth-child(8)::before { animation-delay: 0.83s; }
.homepage .philosophy .diagram.animate > :nth-child(8)::after { animation-delay: 0.85s; }
.homepage .philosophy .diagram.animate > :nth-child(9) { animation-delay: 1.0s; }
.homepage .philosophy .diagram.animate > :nth-child(9) .char { animation-delay: 1.08s; }

/* Completed state: locked in and still (no wave, so nothing loops under reduced motion) */
.homepage .philosophy .diagram.animate.complete .dot {
    opacity: 1;
    animation: none;
}
.homepage .philosophy .diagram.animate.complete .line::after {
    transform: scaleX(1);
    animation: none;
}
.homepage .philosophy .diagram.animate.complete .line::before {
    display: none;
}
.homepage .philosophy .diagram.animate.complete .dot .char,
.homepage .philosophy .diagram.animate.complete .end {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    animation: none;
}

/* ------------------------------------------------------------------
   Who we are: a statement, a rule, the two of us on grid panels
   ------------------------------------------------------------------ */
.homepage .who-we-are__statement .nowrap {
    white-space: nowrap;
}
/* Brand crimson (#B22222, the que); large text only, 3.14:1 on black passes AA-large */
.homepage .who-we-are__statement em {
    font-style: normal;
    color: #B22222;
}
.homepage .who-we-are__statement {
    font-family: "Lexend";
    font-size: clamp(34px, 4.2vw, 56px);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: white;
    max-width: 1000px;
    margin: 36px 0 0;
    text-wrap: balance;
}
.homepage .who-we-are__rule {
    height: 1px;
    margin: 36px 0 28px;
    background: rgba(255, 255, 255, 0.15);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}
.homepage .who-we-are.in-view .who-we-are__rule {
    transform: scaleX(1);
}
.homepage .who-we-are__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 80px;
    align-items: start;
}
.homepage .who-we-are__ascii {
    font-family: "Courier New", monospace;
    font-size: 14px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.25);
    user-select: none;
    padding-top: 4px;
}
.homepage .who-we-are__intro {
    margin: 0;
    max-width: 560px;
}

.homepage .who-we-are__people {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 80px;
    row-gap: 50px;
    margin-top: 80px;
}
.homepage .person {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

/* Photo on the grid-and-vignette panel, corners drawn in */
.homepage .person__frame {
    position: relative;
    flex: 0 0 auto;
    width: 240px;
    height: 240px;
    display: grid;
    place-items: center;
    background-color: #0D0D0D;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 32px 32px, 32px 32px, 8px 8px, 8px 8px;
    background-position: center;
}
.homepage .person__frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
}
.homepage .person__photo {
    position: relative;
    width: 200px;
    height: 200px;
    object-fit: cover;
    filter: grayscale(1);
    background: #0d0d0d;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s,
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.homepage .who-we-are.is-armed .person__photo {
    opacity: 0;
    transform: scale(0.97);
}
.homepage .who-we-are .person.in-view .person__photo {
    opacity: 1;
    transform: scale(1);
}
.homepage .person .frame-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    pointer-events: none;
}
.homepage .person .frame-corner::before,
.homepage .person .frame-corner::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, 0.35);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.homepage .person .frame-corner::before { height: 1px; width: 100%; transform: scaleX(0); }
.homepage .person .frame-corner::after  { width: 1px; height: 100%; transform: scaleY(0); }
.homepage .person .frame-corner.top-left     { top: 0; left: 0; }
.homepage .person .frame-corner.top-right    { top: 0; right: 0; }
.homepage .person .frame-corner.bottom-left  { bottom: 0; left: 0; }
.homepage .person .frame-corner.bottom-right { bottom: 0; right: 0; }
.homepage .person .frame-corner.top-left::before     { top: 0; left: 0; transform-origin: left; }
.homepage .person .frame-corner.top-left::after      { top: 0; left: 0; transform-origin: top; }
.homepage .person .frame-corner.top-right::before    { top: 0; right: 0; transform-origin: right; }
.homepage .person .frame-corner.top-right::after     { top: 0; right: 0; transform-origin: top; }
.homepage .person .frame-corner.bottom-left::before  { bottom: 0; left: 0; transform-origin: left; }
.homepage .person .frame-corner.bottom-left::after   { bottom: 0; left: 0; transform-origin: bottom; }
.homepage .person .frame-corner.bottom-right::before { bottom: 0; right: 0; transform-origin: right; }
.homepage .person .frame-corner.bottom-right::after  { bottom: 0; right: 0; transform-origin: bottom; }
.homepage .who-we-are .person.in-view .frame-corner::before,
.homepage .who-we-are .person.in-view .frame-corner::after {
    transform: scale(1);
}
.homepage .who-we-are .person.in-view .frame-corner.top-left::before,
.homepage .who-we-are .person.in-view .frame-corner.top-left::after      { transition-delay: 0.5s; }
.homepage .who-we-are .person.in-view .frame-corner.top-right::before,
.homepage .who-we-are .person.in-view .frame-corner.top-right::after     { transition-delay: 0.65s; }
.homepage .who-we-are .person.in-view .frame-corner.bottom-right::before,
.homepage .who-we-are .person.in-view .frame-corner.bottom-right::after  { transition-delay: 0.8s; }
.homepage .who-we-are .person.in-view .frame-corner.bottom-left::before,
.homepage .who-we-are .person.in-view .frame-corner.bottom-left::after   { transition-delay: 0.95s; }

.homepage .person__name {
    font-family: "Lexend";
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    color: white;
    margin: 6px 0 0;
}
/* Mono tag typed in, cursor blinks after */
.homepage .person__tag {
    margin: 4px 0 14px;
    font-family: "Courier New", monospace;
    font-size: 13px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}
.homepage .person__tag-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: bottom;
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    padding-right: 2px;
}
.homepage .who-we-are.is-armed .person__tag-text {
    width: 0;
}
.homepage .who-we-are .person.in-view .person__tag-text {
    animation:
        tagType 1.1s steps(var(--chars, 20), end) 0.9s forwards,
        tagCursor 1s step-end 2s infinite;
}
.homepage .who-we-are .person.in-view:nth-child(2) .person__tag-text {
    animation-delay: 1.2s, 2.3s;
}
.homepage .person__text .paragraph {
    margin: 0;
}
@keyframes tagType {
    from { width: 0; }
    to   { width: calc(var(--chars, 20) * (1ch + 1px) + 2px); }
}
@keyframes tagCursor {
    0%, 100% { border-color: rgba(255, 255, 255, 0.6); }
    50%      { border-color: transparent; }
}

/* ------------------------------------------------------------------
   Reveal on scroll (text blocks)
   ------------------------------------------------------------------ */
.homepage .philosophy .title,
.homepage .philosophy__item,
.homepage .who-we-are .title,
.homepage .who-we-are__statement,
.homepage .who-we-are__row,
.homepage .person {
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.homepage .about-head__path {
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.homepage .philosophy.is-armed .title,
.homepage .philosophy.is-armed .about-head__path,
.homepage .philosophy.is-armed .philosophy__item,
.homepage .who-we-are.is-armed .title,
.homepage .who-we-are.is-armed .about-head__path,
.homepage .who-we-are.is-armed .who-we-are__statement,
.homepage .who-we-are.is-armed .who-we-are__row,
.homepage .who-we-are.is-armed .person {
    opacity: 0;
    transform: translateY(15px);
}
.homepage .philosophy.in-view .title,
.homepage .philosophy.in-view .about-head__path,
.homepage .philosophy .philosophy__item.in-view,
.homepage .who-we-are.in-view .title,
.homepage .who-we-are.in-view .about-head__path,
.homepage .who-we-are.in-view .who-we-are__statement,
.homepage .who-we-are.in-view .who-we-are__row,
.homepage .who-we-are .person.in-view {
    opacity: 1;
    transform: translateY(0);
}
.homepage .philosophy .philosophy__item.in-view:nth-child(1) { transition-delay: 0.1s; }
.homepage .philosophy .philosophy__item.in-view:nth-child(2) { transition-delay: 0.2s; }
.homepage .philosophy .philosophy__item.in-view:nth-child(3) { transition-delay: 0.3s; }
.homepage .philosophy .philosophy__item.in-view:nth-child(4) { transition-delay: 0.4s; }
.homepage .who-we-are.in-view .who-we-are__statement { transition-delay: 0.1s; }
.homepage .who-we-are.in-view .who-we-are__row { transition-delay: 0.3s; }
.homepage .who-we-are .person.in-view:nth-child(1) { transition-delay: 0.05s; }
.homepage .who-we-are .person.in-view:nth-child(2) { transition-delay: 0.15s; }

/* No script or reduced motion: everything visible in its final state */
/* Reduced motion: nothing moves or blinks. The in-view rules carry their animations on
   high-specificity selectors, so the reset is !important rather than a specificity race. */
@media (prefers-reduced-motion: reduce) {
    .homepage .philosophy *,
    .homepage .philosophy *::before,
    .homepage .philosophy *::after,
    .homepage .who-we-are *,
    .homepage .who-we-are *::before,
    .homepage .who-we-are *::after {
        transition: none !important;
        animation: none !important;
    }
    .homepage .who-we-are .person__tag-text {
        width: auto !important;
        border-right-color: transparent !important;
    }
}

@media (prefers-reduced-motion: reduce), (scripting: none) {
    .homepage .philosophy .title,
    .homepage .philosophy__item,
    .homepage .who-we-are .title,
    .homepage .who-we-are__statement,
    .homepage .who-we-are__row,
    .homepage .person,
    .homepage .person__photo,
    .homepage .philosophy .diagram .dot,
    .homepage .philosophy .diagram .dot .char,
    .homepage .philosophy .diagram .end {
        opacity: 1;
        transform: none;
        clip-path: none;
        transition: none;
        animation: none;
    }
    /* The char's transform is its position above the dot, not motion: keep it */
    .homepage .philosophy .diagram .dot .char {
        transform: translateX(-50%) translateY(-100%);
    }
    .homepage .philosophy .title::after,
    .homepage .who-we-are .title::after {
        width: 75px;
        transition: none;
    }
    .homepage .who-we-are__rule {
        transform: scaleX(1);
        transition: none;
    }
    .homepage .philosophy .diagram .line::after {
        transform: scaleX(1);
        animation: none;
    }
    .homepage .philosophy .diagram .line::before {
        display: none;
    }
    .homepage .person .frame-corner::before,
    .homepage .person .frame-corner::after {
        transform: scale(1);
        transition: none;
    }
    .homepage .person__tag-text {
        width: auto;
        border-right-color: transparent;
        animation: none;
    }
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1100px) {
    .homepage .philosophy {
        padding: 30px 50px 40px;
    }
    .homepage .who-we-are {
        padding: 100px 50px 120px;
    }
    .homepage .philosophy__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 60px;
        margin-top: 30px;
    }
    .homepage .philosophy__item {
        padding: 30px 0 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
    .homepage .philosophy__item + .philosophy__item::before {
        display: none;
    }
    .homepage .philosophy__item:nth-child(even)::before {
        display: block;
        left: -30px;
    }
    .homepage .who-we-are__row,
    .homepage .who-we-are__people {
        column-gap: 60px;
    }
    /* Two columns stay, but photo stacks over text so the text keeps its width */
    .homepage .person {
        flex-direction: column;
        gap: 18px;
    }
    .homepage .person__frame {
        width: 200px;
        height: 200px;
    }
    .homepage .person__photo {
        width: 164px;
        height: 164px;
    }
}

@media (max-width: 768px) {
    .homepage .philosophy {
        padding: 20px 50px 20px;
    }
    .homepage .who-we-are {
        padding: 90px 50px 100px;
    }
    .homepage .philosophy .title::after,
    .homepage .who-we-are .title::after {
        display: none;
    }
    .homepage .philosophy__list {
        grid-template-columns: minmax(0, 1fr);
    }
    .homepage .philosophy__item {
        padding: 26px 0 28px;
    }
    .homepage .philosophy__item:nth-child(even)::before {
        display: none;
    }
    .homepage .philosophy__lead {
        min-height: 0;
    }
    /* One column: no row to share, so each device sits about 30px under its index */
    .homepage .philosophy .device {
        min-height: 0;
        margin-bottom: 18px;
        padding-top: 30px;
    }
    .homepage .philosophy .diagram {
        min-height: 0;
        margin-bottom: 18px;
        padding-top: 56px;
        padding-right: max(8px, calc(100% - 420px));
    }
    .homepage .philosophy .device--bars .bar-row {
        max-width: 420px;
    }
    .homepage .who-we-are__row {
        grid-template-columns: minmax(0, 1fr);
    }
    .homepage .who-we-are__ascii {
        display: none;
    }
    .homepage .who-we-are__people {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 44px;
        margin-top: 50px;
    }
    .homepage .person {
        flex-direction: row;
        gap: 22px;
    }
    .homepage .person__frame {
        width: 160px;
        height: 160px;
    }
    .homepage .person__photo {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 506px) {
    .homepage .philosophy {
        padding: 10px 20px 10px;
    }
    .homepage .about-head__path {
        display: none;
    }
    .homepage .who-we-are {
        padding: 70px 20px 80px;
    }
    .homepage .who-we-are__rule {
        margin: 26px 0 22px;
    }
    .homepage .person {
        flex-direction: column;
        gap: 18px;
    }
    .homepage .person__frame {
        width: 150px;
        height: 150px;
    }
    .homepage .person__photo {
        width: 120px;
        height: 120px;
    }
}
