/* Albedo One — homepage
   Aesthetic: editorial specimen. Quiet, hairlined, slightly technical.
   All light. Palette restricted to the brief's four tones. */

/* Fonts ------------------------------------------------------------- */

@font-face {
    font-family: "Inter";
    src: url("fonts/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("fonts/InterVariable-Italic.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* Tokens ------------------------------------------------------------ */

:root {
    --ink:     #12191f;
    --muted:   #5b6b78;
    --pale:    #bfc7cd;
    --paper:   #ededec;

    /* Tonal variations of paper, all sit close to #ededec */
    --paper-up:   #f5f4f1;   /* lifted card surface */
    --paper-down: #e3e2df;   /* slightly recessed band */

    --line:        rgba(91, 107, 120, 0.22);   /* hairline (muted-tinted) */
    --line-strong: rgba(91, 107, 120, 0.42);
    --line-soft:   rgba(91, 107, 120, 0.12);

    --maxw: 1180px;

    --radius:    4px;
    --radius-md: 6px;

    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, sans-serif;

    --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);

    --shadow-card:  0 1px 0 rgba(18,25,31,0.02), 0 1px 2px rgba(18,25,31,0.05);
    --shadow-lift:  0 24px 60px -32px rgba(18,25,31,0.28), 0 6px 12px -4px rgba(18,25,31,0.06);
}

/* Base -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    font-feature-settings: "cv11" 1, "ss01" 1, "ss03" 1, "case" 1;
    font-variant-numeric: lining-nums proportional-nums;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Very faint paper grain — three radial gradients composited together */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,0.55), transparent 45%),
        radial-gradient(circle at 88% 8%, rgba(191,199,205,0.20), transparent 50%),
        radial-gradient(circle at 30% 100%, rgba(91,107,120,0.06), transparent 60%);
    pointer-events: none;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 200ms var(--ease), opacity 200ms var(--ease);
}

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

button { font: inherit; }

h1, h2, h3, h4 {
    color: var(--ink);
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.018em;
    line-height: 1.12;
}

p { margin: 0; color: var(--muted); }

strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; font-weight: 500; }

/* Layout ------------------------------------------------------------ */

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 15px;
}

main > section + section {
    border-top: 1px solid var(--line);
}

section { padding: 6rem 0; }

/* Reusable typography ---------------------------------------------- */

.section-label,
.product-meta,
.status,
.principle-no,
.spec dt,
.tabular {
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: "tnum" 1, "ss01" 1, "zero" 1;
}

.section-label {
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    font-weight: 600;
    margin: 0;
}

/* Section header (two-line metadata block) ------------------------- */

.section-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 14px;
    /* border-bottom: 1px solid var(--line); */
    margin-bottom: 36px;
}

/* Masthead ---------------------------------------------------------- */

.masthead {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in oklab, var(--paper) 86%, transparent);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
}
.masthead-rule {
    height: 1px;
    background: var(--line);
    width: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.012em;
}
.brand-mark {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
}
.brand-text { font-weight: 600; }
.brand-text .brand-sep {
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--muted);
    vertical-align: 3px;
    margin: 0 5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
}
.nav a {
    color: var(--muted);
    padding: 6px 0;
    position: relative;
}
.nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: 2px;
    height: 1px;
    background: var(--ink);
    transition: right 280ms var(--ease-out);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { right: 0; }

/* Hero -------------------------------------------------------------- */

.hero {
    padding: 5rem 0 4.5rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    gap: 64px;
    align-items: start;
}

.hero-headline {
    font-size: clamp(2.4rem, 5.2vw, 4.4rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.034em;
    color: var(--ink);
    margin: 0 0 28px;
    max-width: 14ch;
}
.hero-headline em {
    font-style: italic;
    font-weight: 450;
    color: var(--muted);
    letter-spacing: -0.028em;
}

.hero-pitch {
    color: var(--ink);
    font-size: 1.06rem;
    line-height: 1.55;
    max-width: 52ch;
    margin: 0 0 14px;
}
.hero-pitch-2 {
    color: var(--muted);
    font-size: 0.98rem;
    margin: 0 0 36px;
}

.cta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Hero aside: albedo disc + spec block ----------------------------- */

.hero-aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding-top: 10px;
}

.brand-art {
    width: 170px;
    height: 170px;
    display: block;
    flex-shrink: 0;
}

.spec-group {
    width: 100%;
    max-width: 280px;
}
.spec-label {
    margin: 0 0 14px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    font-weight: 600;
}

.spec {
    margin: 0;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 24px;
    row-gap: 0;
    font-size: 12.5px;
    border-top: 1px solid var(--line);
}
.spec dt,
.spec dd {
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}
.spec dt {
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 10.5px;
    font-weight: 500;
    padding-top: 11px;
}
.spec dd {
    color: var(--ink);
    font-weight: 500;
    text-align: right;
}

/* Buttons ----------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    letter-spacing: -0.005em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 220ms var(--ease),
                color 220ms var(--ease),
                border-color 220ms var(--ease),
                transform 220ms var(--ease),
                box-shadow 220ms var(--ease);
    font-family: inherit;
    position: relative;
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 2px 6px rgba(18,25,31,0.12);
}
.btn-primary:hover {
    background: #000;
    border-color: #000;
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 10px 22px -10px rgba(18,25,31,0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-quiet {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}
.btn-quiet:hover {
    border-color: var(--ink);
    background: var(--paper-up);
}

.btn .arrow {
    display: inline-block;
    transition: transform 240ms var(--ease-out);
}
.btn:hover .arrow { transform: translateX(3px); }

/* Mission ----------------------------------------------------------- */

.mission { padding: 4rem 0; background-color:#f5f4f1; }

.mission-grid {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.mission-grid .section-header {
    border: 0;
    padding: 0;
    margin: 0;
    position: sticky;
    top: 110px;
}

.mission-grid .section-body { max-width: 64ch; }

.mission .lede {
    font-size: 1.42rem;
    line-height: 1.4;
    color: var(--ink);
    margin: 0 0 1.4em;
    letter-spacing: -0.015em;
    font-weight: 450;
}
.mission .lede strong {
    font-weight: 600;
}
.mission p:not(.lede) {
    font-size: 1.02rem;
    color: var(--muted);
    margin: 0 0 1em;
    max-width: 58ch;
}

/* Products ---------------------------------------------------------- */

.products { padding: 4rem 0 4rem; }

.product-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    margin: 0 0 32px;
}

.product {
    background: var(--paper-up);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 36px 36px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 260ms var(--ease),
                background 260ms var(--ease),
                transform 260ms var(--ease),
                box-shadow 260ms var(--ease);
    min-height: 380px;
}
.product-nest:hover {
    background: #fff;
    border-color: var(--line-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

.product-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
}
.status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ink);
    box-shadow: 0 0 0 3px rgba(18,25,31,0.10);
}
.status-planned {
    color: var(--muted);
}
.status-planned::before {
    background: transparent;
    border: 1px solid var(--muted);
    box-shadow: none;
}

.product-meta {
    font-size: 10.5px;
    color: var(--muted);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-weight: 500;
}

.product-name {
    font-size: clamp(1.7rem, 2.6vw, 2.15rem);
    font-weight: 600;
    letter-spacing: -0.026em;
    line-height: 1.05;
    margin: 0 0 0.5em;
    color: var(--ink);
}
.product-vesper .product-name {
    color: var(--ink);
    opacity: 0.86;
}

.product-summary {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 1.6em;
    max-width: 46ch;
}
.product-nest .product-summary { color: var(--ink); }

.product-tags {
    list-style: none;
    margin: 0 0 2em;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.product-tags li {
    font-size: 11.5px;
    color: var(--muted);
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: -0.005em;
}

.product-foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ink);
    font-weight: 500;
    letter-spacing: -0.005em;
}
.product-link .arrow { transition: transform 240ms var(--ease-out); }
.product-link:hover { color: #000; }
.product-link:hover .arrow { transform: translateX(3px); }

.product-quiet {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-style: italic;
}

.studio-note {
    margin: 2.4rem auto 0;
    max-width: 56ch;
    text-align: center;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.55;
    padding: 18px 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* Principles -------------------------------------------------------- */

.principles { padding: 4.5rem 0 5.5rem; background-color: #f5f4f1; }

.principles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--ink); 
    border-bottom: 1px solid var(--line);
}
.principle {
    padding: 32px 24px 32px 0;
    border-right: 1px solid var(--line);
    position: relative;
}
.principle:last-child { border-right: 0; padding-right: 0; }
.principle:first-child { padding-left: 0; }
.principle:not(:first-child) { padding-left: 24px; }

.principle-no {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.10em;
    color: var(--muted);
    margin: 0 0 36px;
}

.principle-title {
    font-size: 1.04rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 12px;
    letter-spacing: -0.012em;
}

.principle-body {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.55;
    max-width: 30ch;
}

/* Footer ------------------------------------------------------------ */

.site-footer {
    padding: 3rem 0 3.5rem;
    color: var(--muted);
    font-size: 13.5px;
    border-top: 1px solid var(--line);
    background: var(--paper-down);
}
.footer-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: -0.005em;
}
.footer-brand .brand-mark { width: 18px; height: 18px; }
.footer-nav {
    display: flex;
    gap: 26px;
    justify-content: center;
}
.footer-nav a {
    color: var(--muted);
    position: relative;
    padding: 4px 0;
}
.footer-nav a:hover { color: var(--ink); }
.footer-copy {
    color: var(--muted);
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-size: 12.5px;
    letter-spacing: 0.02em;
}

/* About page ======================================================== */

/* Quieter hero variant for About — no aside, smaller headline. */
.hero-about {
    padding: 5rem 0 3rem;
}
.hero-about .hero-headline {
    font-size: clamp(2rem, 3.6vw, 2.95rem);
    max-width: 24ch;
    margin-bottom: 22px;
}
.hero-about .hero-pitch {
    max-width: 60ch;
    margin-bottom: 0;
}

/* Spec list — wider version of .spec, used in body content.
   Keeps the same hairline-row vocabulary as the homepage's hero aside. */
.practice { padding: 5rem 0 5.5rem; }

.spec-list {
    margin: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    column-gap: 40px;
    row-gap: 0;
    font-size: 15px;
    border-top: 1px solid var(--ink);
}
.spec-list dt,
.spec-list dd {
    margin: 0;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.spec-list dt {
    color: var(--ink);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    padding-top: 22px;
    font-variant-numeric: tabular-nums lining-nums;
}
.spec-list dd {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
    max-width: 58ch;
}
.spec-list dd strong {
    color: var(--ink);
    font-weight: 500;
}

/* Portfolio section — reuses mission-grid layout, paper-up surface. */
.portfolio {
    padding: 4rem 0;
    background-color: #f5f4f1;
}
.portfolio .mission-grid {
    /* Inherits .mission-grid for sticky-label layout */
}
.portfolio .lede {
    font-size: 1.42rem;
    line-height: 1.4;
    color: var(--ink);
    margin: 0 0 1.4em;
    letter-spacing: -0.015em;
    font-weight: 450;
}
.portfolio p:not(.lede) {
    font-size: 1.02rem;
    color: var(--muted);
    margin: 0 0 1em;
    max-width: 58ch;
}
.portfolio .product-name-inline {
    color: var(--ink);
    font-weight: 600;
}

/* Contact handoff — single muted paragraph above the footer. */
.about-handoff {
    padding: 3rem 0 4rem;
}
.handoff-text {
    margin: 0 auto;
    max-width: 62ch;
    text-align: center;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
}
.handoff-text a {
    color: var(--ink);
    border-bottom: 1px solid var(--line-strong);
    transition: border-color 240ms var(--ease);
}
.handoff-text a:hover { border-bottom-color: var(--ink); }

/* About: when nav links to current page, mark it.  */
.nav a[aria-current="page"] {
    color: var(--ink);
}
.nav a[aria-current="page"]::after {
    right: 0;
}

/* Contact page — prominent email link */
.contact-email {
    display: inline-block;
    font-size: clamp(1.4rem, 2.6vw, 1.85rem);
    color: var(--ink);
    font-weight: 500;
    letter-spacing: -0.012em;
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 4px;
    transition: border-color 240ms var(--ease), color 240ms var(--ease);
    font-variant-numeric: tabular-nums lining-nums;
}
.contact-email:hover {
    color: #000;
    border-bottom-color: var(--ink);
}

/* Privacy page — note paragraph below the spec-list */
.privacy-note {
    margin: 1.8rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.65;
    max-width: 64ch;
}

/* Inline mailto links inside paragraphs (privacy / handoff bodies) */
.section-body a[href^="mailto:"],
.handoff-text a[href^="mailto:"] {
    color: var(--ink);
    border-bottom: 1px solid var(--line-strong);
    transition: border-color 240ms var(--ease);
}
.section-body a[href^="mailto:"]:hover,
.handoff-text a[href^="mailto:"]:hover {
    border-bottom-color: var(--ink);
}

/* About responsive */
@media (max-width: 880px) {
    .spec-list {
        grid-template-columns: 1fr;
        row-gap: 0;
    }
    .spec-list dt {
        padding: 18px 0 4px;
        border-bottom: 0;
    }
    .spec-list dd {
        padding: 0 0 18px;
    }
}

/* Reveal animation -------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
    .hero-headline, .hero-pitch, .cta-row, .hero-aside {
        animation: rise 720ms var(--ease-out) both;
    }
    .hero-pitch    { animation-delay: 100ms; }
    .hero-pitch-2  { animation-delay: 160ms; }
    .cta-row       { animation-delay: 240ms; }
    .hero-aside    { animation-delay: 80ms; }

    @keyframes rise {
        from { opacity: 0; transform: translateY(8px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}

/* Responsive -------------------------------------------------------- */

@media (max-width: 1040px) {
    .principles-list { grid-template-columns: repeat(2, 1fr); }
    .principle:nth-child(2) { border-right: 0; padding-right: 0; }
    .principle:nth-child(3) {
        padding-left: 0;
        border-top: 1px solid var(--line);
        margin-top: -1px;
    }
    .principle:nth-child(4) {
        border-top: 1px solid var(--line);
        margin-top: -1px;
    }
}

@media (max-width: 880px) {
    section { padding: 4.5rem 0; }
    .hero { padding: 5rem 0; }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    .hero-aside {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 32px;
        flex-wrap: wrap;
    }
    .brand-art { width: 128px; height: 128px; }
    .spec-group { flex: 1; min-width: 240px; max-width: 320px; }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .mission-grid .section-header {
        position: static;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--line);
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
    .product { min-height: 0; padding: 28px; }
}

@media (max-width: 640px) {
    .wrap { padding: 0 22px; }
    .masthead-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .nav { gap: 22px; flex-wrap: wrap; }
    .hero { padding: 3rem 0 4rem; }
    .hero-headline { font-size: 2.05rem; max-width: none; }

    /* Quiet the hairlines in the narrow column */
    .section-header,
    .mission-grid .section-header {
        border-bottom: 0;
        padding-bottom: 0;
        margin-bottom: 22px;
    }
    .principles-list { border-top-color: var(--line); }
    .principles-list {
        grid-template-columns: 1fr;
    }
    .principle {
        padding: 24px 0 !important;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .principle:last-child { border-bottom: 0; }
    .principle:nth-child(n+2) { border-top: 0; margin-top: 0; }

    .footer-row {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 18px;
    }
    .footer-nav { justify-content: flex-start; }
    .footer-copy { text-align: left; }

    .product { padding: 24px; }
    .product-name { font-size: 1.55rem; }
}
