@font-face {
    font-family: Geist;
    src: url("../fonts/Geist-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: light;
    --paper: #f6f2ea;
    --white: #faf9f6;
    --ink: #303030;
    --muted: #6c6c6c;
    --rule: #d0ccc4;
    --field-border: #86817a;
    --accent: #6ccdd2;
    --focus: #00656a;
    font-family: Geist, Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-underline-offset: .18em; }
/* Dark teal keeps keyboard focus visible against light page and form backgrounds. */
:focus-visible { outline: 1px solid var(--focus); outline-offset: 3px; }
.project:focus-visible {
    outline-color: var(--accent);
    outline-offset: 0;
    box-shadow: 0 0 0 2px var(--focus);
}
[id] { scroll-margin-block-start: 24px; }

.sr-only, .skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    padding: 12px;
    background: var(--white);
}

.wide, .frame { margin-inline: auto; }
.wide { width: min(89.6%, 1720px); }
.frame { width: min(82%, 1320px); }

.site-header {
    display: grid;
    grid-template-columns: 40.4% 1fr auto;
    align-items: end;
    padding-block: 20px clamp(25px, 2.6vw, 50px);
    font-size: clamp(16px, 1.04vw, 20px);
}

.brand { justify-self: start; }
.brand img { width: clamp(112px, 9.27vw, 178px); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 6px clamp(16px, 2.08vw, 40px); }
.site-header nav a, .schedule-link { display: inline-flex; align-items: center; min-height: 26px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .hero a:hover, .phone:hover { text-decoration: underline; }

.hero {
    display: grid;
    grid-template-columns: 40.4% 59.6%;
    align-items: center;
}

h1, h2, h3 { font-weight: 375; letter-spacing: -.055em; }
h1 { font-size: clamp(32px, 3.23vw, 62px); line-height: 1.18; }
h1 span { color: var(--muted); }
h2 { font-size: clamp(40px, 3.65vw, 70px); line-height: 1.24; }
h3 { font-size: clamp(22px, 1.46vw, 28px); line-height: 1.3; }

.hero ul {
    margin: clamp(14px, 1.5vw, 29px) 0 0;
    padding-inline-start: 1.55em;
    font-size: clamp(18px, 1.46vw, 28px);
    line-height: 1.32;
    letter-spacing: -.04em;
}

.hero li::marker { font-size: .65em; }
.hero a { display: inline-block; min-height: 24px; text-decoration: none; }
.hero-image { width: 100%; }

.about, .contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(36px, 4.17vw, 80px);
}

.about {
    padding-block: clamp(55px, 5.2vw, 100px);
    grid-template-columns: 638fr 570fr;
    gap: clamp(36px, 5.8vw, 112px);
}

.about h2 { max-width: 550px; }
.about p, .contact-copy p, .services p {
    font-size: clamp(16px, 1.04vw, 20px);
    line-height: 1.6;
    letter-spacing: -.03em;
}

.about p { letter-spacing: -.043em; }
.about p + p { margin-top: 1.6em; }

.work {
    background: var(--white);
    padding-block: clamp(55px, 5.2vw, 100px) clamp(65px, 6.9vw, 132px);
}

.projects {
    display: grid;
    grid-template-columns: 570fr 730fr;
    gap: clamp(10px, 1.04vw, 20px);
    margin-top: clamp(24px, 2.34vw, 45px);
}

.project {
    display: grid;
    align-items: end;
    justify-items: start;
    text-decoration: none;
    background: #191919;
    color: #fff;
}

.project-featured { grid-column: 1 / -1; }
.project img, .project > span { grid-area: 1 / 1; }
.project img { width: 100%; height: 100%; object-fit: cover; }
.project > span {
    padding: 12px 16px;
    background: rgb(0 0 0 / 68%);
    font-size: clamp(13px, .73vw, 14px);
    line-height: 1.35;
}
.project:hover > span { text-decoration: underline; }

.arrow {
    display: inline-block;
    width: 9.16px;
    height: 9.16px;
    margin-left: 3px;
    background: url("../img/redesign/project-arrow.svg") center / contain no-repeat;
    transform: rotate(-45deg);
}

.metrics {
    display: grid;
    grid-template-columns: 34% 37.5% auto;
    margin-block: clamp(48px, 5.21vw, 100px);
    font-size: clamp(14px, .79vw, 15px);
    line-height: 1.3;
    letter-spacing: -.025em;
    color: var(--muted);
}

.metrics > div + div {
    border-left: 1px solid var(--rule);
    padding-left: clamp(18px, 2vw, 38px);
}

.metrics strong {
    display: block;
    font-size: clamp(36px, 2.6vw, 50px);
    font-weight: 400;
    letter-spacing: -.05em;
    color: var(--ink);
    margin-block: .18em .05em;
    line-height: 1.1;
}

.services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(36px, 4.17vw, 80px);
}

.services article {
    border-top: 1px solid var(--rule);
    padding-block: clamp(21px, 1.56vw, 30px) clamp(23px, 2vw, 38px);
}

.services article:nth-last-child(-n+2) { padding-bottom: 0; }
.services img { margin-bottom: clamp(15px, 1.04vw, 20px); }
.services p { margin-top: .7em; }

.contact { padding-block: clamp(55px, 5.2vw, 100px) clamp(31px, 2.2vw, 42px); }
.contact-copy h2 { margin-bottom: .27em; }
.contact-copy p + p { margin-top: .83em; }
.phone { text-decoration: none; }

.clutch-reviews { margin-top: clamp(22px, 1.8vw, 34px); }
.clutch-stars { margin-inline-end: .35em; font-size: .85em; letter-spacing: .08em; }
.clutch-reviews a {
    display: inline-block;
    margin-top: .25em;
    color: var(--muted);
    font-size: clamp(14px, .94vw, 18px);
    line-height: 1.75;
}

form { color: var(--ink); }
#contact-fields { min-inline-size: 0; margin: 0; border: 0; padding: 0; }
.form-status:not(:empty) { margin-top: 12px; line-height: 1.5; }
form label {
    display: block;
    font-size: clamp(15px, .89vw, 17px);
    line-height: 1.35;
}
form label span { font-size: .9em; color: var(--muted); }
form input:not([type="checkbox"]), form textarea {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 4px 0 14px;
    border: 1px solid var(--field-border);
    border-radius: 0;
    padding: 8px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

form input[type="hidden"] { display: none; }
form textarea { min-height: 120px; resize: vertical; }
#preferred-times { min-height: 44px; }
form textarea::placeholder { color: var(--muted); opacity: 1; }
.schedule-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    min-height: 36px;
    margin-bottom: 14px;
    cursor: pointer;
}
.schedule-option input { width: 20px; height: 20px; margin: 0; accent-color: var(--focus); }

form button {
    min-height: 44px;
    border: 0;
    padding: 8px 16px;
    background: var(--accent);
    color: #202626;
    font: 600 15px Geist, Arial, sans-serif;
    cursor: pointer;
}
form button:enabled:hover { background: #89d7db; }
form button:disabled { cursor: progress; }
form button .arrow {
    width: 12.05px;
    height: 12.05px;
    background-image: url("../img/redesign/send-arrow.svg");
}

.site-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 24px;
    border-top: 1px solid var(--rule);
    padding-block: 18px;
    font-size: clamp(14px, .83vw, 16px);
    color: var(--muted);
}

@media (max-width: 950px) {
    .site-header { grid-template-columns: 1fr auto 1fr; }
    .schedule-link { justify-self: end; }
    .hero { grid-template-columns: 43% 57%; }
    .frame { width: 89.6%; }
}

@media (max-width: 760px) {
    .wide, .frame { width: 92%; }
    .site-header { grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; }
    .site-header nav { display: none; }
    .schedule-link { min-height: 44px; }

    .hero, .about, .contact { grid-template-columns: 1fr; }
    .hero { width: 100%; gap: 26px; }
    .hero > div { width: 92%; margin-inline: auto; }
    .hero ul { line-height: 1.55; }
    .hero-image { aspect-ratio: 10 / 9; object-fit: cover; object-position: 76% center; }
    .about { gap: 18px; }
    .about h2 { max-width: 11em; }

    .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project {
        grid-template: minmax(0, 1fr) / minmax(0, 1fr);
        aspect-ratio: 4 / 5;
    }
    .project-featured { aspect-ratio: 16 / 9; }
    .project-featured img { object-position: 52% center; }
    .project-ipba img { object-position: 78% center; }
    .project-jung-lee img { object-position: 50% center; }
    .project > span { max-width: 100%; padding: 8px 10px; overflow-wrap: anywhere; }

    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: left; }
    .metrics > div { padding-block: 12px; }
    .metrics > div:first-child { padding-right: 12px; }
    .metrics > div:nth-child(2) { padding-left: 12px; }
    .metrics > div:last-child {
        grid-column: 1 / -1;
        border-left: 0;
        border-top: 1px solid var(--rule);
        padding-left: 0;
    }

    .site-footer { flex-direction: column; align-items: center; text-align: center; }
    .site-footer a { order: -1; display: grid; align-items: center; min-height: 44px; }
    .footer-separator { display: none; }
    .footer-address { display: block; }
}

@media (max-width: 480px) {
    #preferred-times { min-height: 66px; }
    .services { grid-template-columns: 1fr; }
    .services article:nth-last-child(2) { padding-bottom: 23px; }
}

.policy {
    padding-block: clamp(28px, 4vw, 76px) clamp(55px, 6vw, 112px);
}

.policy > * { max-width: 66ch; }
.policy p { margin-top: 1em; font-size: 18px; line-height: 1.65; }
.policy h2 { margin-top: 1.4em; font-size: clamp(26px, 2vw, 36px); }

.analytics-controls {
    padding-bottom: 16px;
    font-size: 12px;
    color: var(--muted);
}

.analytics-controls button {
    min-height: 24px;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: .18em;
    cursor: pointer;
}

.analytics-controls button[aria-pressed="true"] { text-decoration-style: double; }

#analytics-options { margin-top: 4px; }
#analytics-options p { margin-bottom: 4px; }
#analytics-options button + button { margin-inline-start: 12px; }

@media (max-width: 760px) {
    .analytics-controls { text-align: center; }
}
