@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
    --ink: #092630;
    --ink-deep: #06191f;
    --paper: #f6f6f2;
    --paper-bright: #fbfbf8;
    --mist: #dce6e8;
    --line: rgba(9, 38, 48, 0.16);
    --muted: #637176;
    --shell: 1280px;
    --serif: "DM Serif Display", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.shell {
    width: min(calc(100% - 96px), var(--shell));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    background: white;
    color: var(--ink);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.eyebrow {
    margin: 0;
    font-size: 0.69rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    line-height: 1.4;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-height: 52px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button--dark {
    background: var(--ink);
    color: white;
}

.button--dark:hover,
.button--dark:focus-visible {
    background: #123f4b;
}

.button--light {
    background: white;
    color: var(--ink);
}

.button--light:hover,
.button--light:focus-visible {
    background: var(--mist);
}

.site-header {
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    height: 92px;
    color: white;
    transition: height 240ms ease, color 240ms ease, background-color 240ms ease, box-shadow 240ms ease;
}

.site-header.is-scrolled,
body:not(.home) .site-header {
    height: 76px;
    background: rgba(248, 248, 244, 0.95);
    box-shadow: 0 1px 0 var(--line);
    color: var(--ink);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    flex: 0 0 auto;
}

.brand__symbol,
.brand__wordmark {
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
    transition: filter 240ms ease;
}

.brand__symbol {
    width: 38px;
    height: 46px;
}

.brand__wordmark {
    width: 164px;
    height: auto;
}

.site-header:not(.is-scrolled) .brand__symbol,
.site-header:not(.is-scrolled) .brand__wordmark,
.brand--footer .brand__symbol,
.brand--footer .brand__wordmark {
    filter: invert(1);
}

.brand__mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    aspect-ratio: 1;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.brand__mark::before,
.brand__mark::after {
    position: absolute;
    content: "";
    background: currentColor;
}

.brand__mark::before {
    width: 1px;
    height: calc(100% + 10px);
}

.brand__mark::after {
    width: calc(100% + 10px);
    height: 1px;
}

.brand__mark span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: currentColor;
    color: var(--ink-deep);
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.site-header:not(.is-scrolled) .brand__mark span {
    color: white;
    background: var(--ink-deep);
}

.brand__name {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.custom-logo-link img {
    width: auto;
    max-height: 50px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 42px;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__list a,
.footer-nav a {
    position: relative;
    font-size: 0.78rem;
    font-weight: 500;
}

.site-nav__list a::after,
.footer-nav a::after {
    position: absolute;
    right: 0;
    bottom: -5px;
    left: 0;
    height: 1px;
    content: "";
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.site-nav__list a:hover::after,
.site-nav__list a:focus-visible::after,
.footer-nav a:hover::after,
.footer-nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.site-header:not(.is-scrolled) .site-nav__cta {
    background: white;
    color: var(--ink);
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: inherit;
}

.hero {
    position: relative;
    min-height: 820px;
    height: min(940px, 100svh);
    overflow: hidden;
    color: white;
    background: #345663;
}

.hero__media,
.hero__veil {
    position: absolute;
    inset: 0;
}

.hero__media {
    background-image: url("images/hero-tailor-sailor.png");
    background-position: center center;
    background-size: cover;
    transform: scale(1.01);
}

.hero__veil {
    background: linear-gradient(90deg, rgba(2, 19, 25, 0.76) 0%, rgba(2, 19, 25, 0.43) 34%, rgba(2, 19, 25, 0.03) 69%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    height: 100%;
}

.hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: min(590px, 54%);
    height: 100%;
    padding-top: 70px;
}

.hero h1 {
    margin: 28px 0 24px;
    font-family: var(--sans);
    font-size: clamp(4.4rem, 7.1vw, 7.4rem);
    font-weight: 300;
    letter-spacing: -0.072em;
    line-height: 0.82;
}

.hero h1 em,
.section-heading h2 em,
.services__title em,
.process h2 em {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.035em;
}

.hero__intro {
    max-width: 450px;
    margin: 0 0 34px;
    color: rgba(255,255,255,0.84);
    font-size: 1rem;
    line-height: 1.7;
}

.hero__side-note {
    position: absolute;
    top: 42%;
    right: 0;
    margin: 0;
    font-family: var(--serif);
    font-size: 1rem;
    font-style: italic;
    letter-spacing: 0.18em;
    line-height: 1.6;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.hero__foot {
    position: absolute;
    bottom: 44px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.61rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.hero__foot span {
    width: 48px;
    height: 1px;
    background: currentColor;
}

.hero__scroll {
    position: absolute;
    z-index: 2;
    right: 25px;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transform: rotate(90deg);
    transform-origin: right center;
}

.hero__scroll i {
    display: block;
    width: 42px;
    height: 1px;
    background: currentColor;
}

.section {
    padding: 132px 0;
}

.section-heading {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 9%;
    align-items: end;
    margin-bottom: 66px;
}

.section-heading h2,
.services__title,
.process h2 {
    margin: 18px 0 0;
    font-size: clamp(3rem, 5.4vw, 5.4rem);
    font-weight: 300;
    letter-spacing: -0.062em;
    line-height: 0.96;
}

.section-heading > p {
    max-width: 410px;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.75;
}

.work {
    background: var(--paper-bright);
}

.project-card {
    display: grid;
    grid-template-columns: minmax(0, 1.63fr) minmax(340px, 0.72fr);
    min-height: 535px;
    background: var(--ink);
    color: white;
}

.project-card__visual {
    position: relative;
    min-height: 535px;
    overflow: hidden;
    background-color: #849aa0;
}


.project-card__visual::before,
.project-card__visual::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
}

.project-card__visual::before {
    width: 470px;
    height: 470px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.project-card__visual::after {
    width: 180px;
    height: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.project-card__horizon {
    position: absolute;
    top: 52%;
    right: 0;
    left: 0;
    height: 1px;
    background: rgba(255,255,255,0.38);
}

.project-card__placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    font-size: 0.63rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    line-height: 1.7;
    text-align: center;
    text-transform: uppercase;
    transform: translate(-50%, -50%);
}

.project-card__number {
    position: absolute;
    bottom: -32px;
    left: 28px;
    color: rgba(255,255,255,0.12);
    font-family: var(--serif);
    font-size: 10rem;
    line-height: 1;
}

.project-card__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 58px;
}

.project-card__content h3 {
    margin: 24px 0 20px;
    max-width: 100%;
    font-family: var(--serif);
    font-size: clamp(2.65rem, 3.3vw, 3.6rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1;
}

.project-card__content > p:not(.eyebrow) {
    margin: 0 0 42px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
}

.text-link {
    display: inline-flex;
    gap: 48px;
    padding-bottom: 6px;
    border-bottom: 1px solid currentColor;
    font-size: 0.78rem;
    font-weight: 500;
}

.services {
    background: #eef1ee;
}

.section-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.section-kicker > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 0.61rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.services__title {
    max-width: 820px;
    margin-top: 62px;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 82px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.service {
    min-height: 285px;
    padding: 32px 30px 34px;
    border-left: 1px solid var(--line);
}

.service:last-child {
    border-right: 1px solid var(--line);
}

.service > span {
    font-family: var(--serif);
    font-size: 1.55rem;
    font-style: italic;
}

.service h3 {
    margin: 62px 0 12px;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
}

.service p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.process {
    background: var(--paper-bright);
}

.process .shell {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 10%;
}

.process__intro > p:last-child {
    max-width: 470px;
    margin: 32px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.process__steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
    border-top: 1px solid var(--line);
}

.process__steps li {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 28px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.process__steps li > span {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-style: italic;
}

.process__steps h3 {
    margin: 0 0 4px;
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 400;
}

.process__steps p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.contact-band {
    position: relative;
    overflow: hidden;
    background: #173b46;
    color: white;
}

.contact-band__texture {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("images/hero-tailor-sailor.png");
    background-position: center 72%;
    background-size: cover;
    filter: grayscale(1) contrast(1.1);
}

.contact-band::after {
    position: absolute;
    inset: 0;
    content: "";
    background: rgba(4, 29, 36, 0.65);
}

.contact-band__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 250px;
}

.contact-band h2 {
    margin: 14px 0 0;
    font-family: var(--serif);
    font-size: clamp(2.8rem, 4.6vw, 4.7rem);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1;
}

.site-footer {
    padding: 58px 0;
    background: var(--ink-deep);
    color: white;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    align-items: center;
}

.brand--footer small {
    display: block;
    margin-top: 10px;
    color: rgba(255,255,255,0.47);
    font-size: 0.52rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.brand__footer-lockup {
    display: block;
}

.brand--footer .brand__symbol {
    width: 50px;
    height: 56px;
}

.brand--footer .brand__wordmark {
    width: 178px;
}

.brand--footer .brand__mark span {
    background: white;
    color: var(--ink-deep);
}

.footer-nav {
    display: flex;
    gap: 28px;
}

.site-footer__meta {
    text-align: right;
}

.site-footer__meta a {
    font-family: var(--serif);
    font-size: 1.05rem;
}

.site-footer__meta p {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.43);
    font-size: 0.62rem;
}

.default-page {
    min-height: 70vh;
    padding: 170px 0 110px;
}

.default-page__inner {
    max-width: 850px;
}

.default-page h1 {
    margin: 18px 0 40px;
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 400;
    line-height: 1;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero [data-reveal] {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 1040px) {
    .shell { width: min(calc(100% - 56px), var(--shell)); }
    .project-card { grid-template-columns: 1.35fr 0.8fr; }
    .project-card__content { padding: 40px; }
    .service { padding-inline: 22px; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .footer-nav { justify-content: flex-end; }
    .site-footer__meta { grid-column: 1 / -1; display: flex; justify-content: space-between; text-align: left; }
    .site-footer__meta p { margin: 0; }
    .project-card__visual img {
    object-fit: cover;
    height: 80vw;
}
}

@media (max-width: 880px) {

    .site-header { height: 76px; }
    .site-header .brand__symbol { width: 34px; height: 40px; }
    .site-header .brand__wordmark { width: 146px; }
    .nav-toggle {
        position: fixed;
        z-index: 1000;
        top: 16px;
        right: 18px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 0;
        color: white;
    }
    .site-header.is-scrolled + .nav-toggle,
    body:not(.home) .nav-toggle { color: var(--ink); }
    .nav-toggle__label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
    .nav-toggle__lines { display: grid; gap: 5px; width: 22px; }
    .nav-toggle__lines i { display: block; width: 100%; height: 1px; background: currentColor; transition: transform 180ms ease; }
    .nav-toggle[aria-expanded="true"] { color: var(--ink); }
    .nav-toggle[aria-expanded="true"] .nav-toggle__lines i:first-child { transform: translateY(3px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle__lines i:last-child { transform: translateY(-3px) rotate(-45deg); }
    body.menu-open .site-header .brand__symbol,
    body.menu-open .site-header .brand__wordmark { filter: none; }
    .site-nav {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 42px;
        width: 100vw;
        height: 100dvh;
        min-height: 100vh;
        padding: 100px 10vw;
        overflow-y: auto;
        background: var(--paper-bright);
        color: var(--ink);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 200ms ease, transform 200ms ease;
    }
    .site-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
    body.menu-open .site-header { backdrop-filter: none; }
    body.menu-open .site-header .brand { position: relative; z-index: 3; }
    .site-nav__list { flex-direction: column; align-items: flex-start; gap: 22px; }
    .site-nav__list a { font-family: var(--serif); font-size: 2.6rem; font-weight: 400; }
    .site-nav__cta { background: var(--ink) !important; color: white !important; }
    .hero { min-height: 720px; height: 100svh; }
    .hero__copy { width: 70%; }
    .hero__media { background-position: 58% center; }
    .hero__side-note { display: none; }
    .section { padding: 96px 0; }
    .section-heading { grid-template-columns: 1fr; gap: 30px; }
    .project-card { grid-template-columns: 1fr; }
    .project-card__visual { min-height: 460px; }
    .project-card__content { min-height: 410px; }
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .service:nth-child(2) { border-right: 1px solid var(--line); }
    .service:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .process .shell { grid-template-columns: 1fr; gap: 68px; }
    .contact-band__inner { min-height: 290px; }
}

@media (max-width: 620px) {
    .shell { width: calc(100% - 36px); }
    .site-header { height: 68px; }
    .site-header.is-scrolled { height: 64px; }
    .brand { gap: 9px; }
    .site-header .brand__symbol { width: 29px; height: 35px; }
    .site-header .brand__wordmark { width: 116px; }
    .hero { min-height: 700px; }
    .hero__media { background-position: 64% center; }
    .hero__veil { background: linear-gradient(90deg, rgba(2,19,25,.78), rgba(2,19,25,.25)); }
    .hero__copy { width: 100%; justify-content: flex-end; padding: 0 0 110px; }
    .hero h1 { margin-block: 20px; font-size: clamp(3.2rem, 14vw, 4.6rem); }
    .hero h1 em { font-size: 0.84em; letter-spacing: -0.055em; }
    .hero__intro { max-width: 340px; font-size: 0.9rem; }
    .hero__foot { display: none; }
    .hero__scroll { display: none; }
    .section { padding: 78px 0; }
    .section-heading { margin-bottom: 42px; }
    .section-heading h2, .services__title, .process h2 { font-size: clamp(2.9rem, 13vw, 4.2rem); }
    .project-card__visual { min-height: 360px; }
    .project-card__visual::before { width: 300px; height: 300px; }
    .project-card__visual::after { width: 120px; height: 120px; }
    .project-card__content { min-height: 380px; padding: 34px 28px; }
    .project-card__content h3 { font-size: 3.2rem; }
    .section-kicker > p:last-child { display: none; }
    .services__title { margin-top: 42px; }
    .services__grid { grid-template-columns: 1fr; margin-top: 54px; }
    .service { min-height: 235px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
    .service:last-child { border-bottom: 0; }
    .service h3 { margin-top: 40px; }
    .process__steps li { grid-template-columns: 48px 1fr; gap: 18px; }
    .contact-band__inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: 34px; min-height: 350px; }
    .contact-band h2 { font-size: 2.9rem; }
    .site-footer { padding: 48px 0; }
    .site-footer__grid { display: flex; flex-direction: column; align-items: flex-start; gap: 42px; }
    .footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; gap: 18px; }
    .site-footer__meta { display: block; }
    .site-footer__meta p { margin-top: 10px; }
}
