/* Home */
.home-hero {
    position: relative;
    display: grid;
    min-height: 100svh;
    color: var(--white);
    background: var(--ink);
    overflow: hidden;
}

.home-hero__media,
.home-hero__shade {
    position: absolute;
    inset: 0;
}

.home-hero__picture,
.home-hero__picture img {
    width: 100%;
    height: 100%;
}

.home-hero__picture img {
    object-fit: cover;
    object-position: center;
    animation: hero-settle 1.4s var(--transition-slow) both;
}

.home-hero__shade {
    background:
        linear-gradient(90deg, rgba(7, 9, 11, 0.9) 0%, rgba(7, 9, 11, 0.58) 48%, rgba(7, 9, 11, 0.15) 76%),
        linear-gradient(180deg, rgba(7, 9, 11, 0.42), transparent 30%, rgba(7, 9, 11, 0.76));
}

.home-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    padding-top: calc(var(--header-height) + var(--space-lg));
    padding-bottom: clamp(2rem, 5vh, 4rem);
    grid-template-columns: minmax(0, 1fr) 10rem;
    gap: var(--space-md);
    align-items: end;
}

.home-hero__content {
    max-width: 75rem;
}

.home-hero__content .eyebrow {
    margin-bottom: var(--space-md);
}

.home-hero h1 {
    max-width: 12ch;
    font-size: var(--title-hero);
    font-weight: 400;
}

.home-hero h1 span {
    display: block;
}

.home-hero h1 span:first-child {
    font-weight: 400;
}

.home-hero h1 span:last-child {
    color: var(--white);
    font-weight: 700;
    -webkit-text-stroke: 0;
}

.home-hero__lead {
    max-width: 42rem;
    margin-block: var(--space-md);
    color: rgba(255, 255, 255, 0.78);
    font-size: var(--text-lg);
    line-height: 1.45;
}

.home-hero__aside {
    display: flex;
    padding-left: 1.25rem;
    gap: 1rem;
    align-items: flex-start;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.68);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    line-height: 1.7;
    text-transform: uppercase;
}

.home-hero__aside > span {
    color: var(--accent);
}

.scroll-cue {
    position: absolute;
    right: 0;
    bottom: clamp(2rem, 5vh, 4rem);
    display: flex;
    gap: 0.8rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transform: rotate(-90deg) translateX(100%);
    transform-origin: right bottom;
}

.scroll-cue i {
    position: relative;
    display: block;
    width: 4.5rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.38);
    overflow: hidden;
}

.scroll-cue i::after {
    position: absolute;
    inset: 0;
    background: var(--accent);
    content: "";
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes hero-settle {
    from { opacity: 0.75; transform: scale(1.06); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes scroll-line {
    0% { transform: translateX(-105%); }
    50%, 100% { transform: translateX(105%); }
}

.company-intro__grid {
    display: grid;
    grid-template-columns: 10rem minmax(0, 0.75fr) minmax(22rem, 0.8fr);
    gap: var(--space-lg);
    align-items: start;
}

.company-intro__copy .eyebrow {
    margin-bottom: var(--space-sm);
}

.company-intro__copy h2 {
    margin-bottom: var(--space-md);
}

.company-intro__copy .lead {
    margin-bottom: var(--space-md);
}

.company-intro__visual {
    position: relative;
    min-height: 38rem;
}

.company-intro__picture,
.company-intro__picture img {
    width: 100%;
    height: 100%;
}

.company-intro__picture img {
    object-fit: cover;
}

.company-intro__badge {
    position: absolute;
    right: -1rem;
    bottom: -1rem;
    display: flex;
    width: 11rem;
    min-height: 10rem;
    padding: 1.25rem;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--ink);
    background: var(--accent);
}

.company-intro__badge strong {
    font-family: var(--font-display);
    font-size: 3.2rem;
    line-height: 1;
}

.company-intro__badge span {
    margin-top: 0.4rem;
    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.fact-strip {
    display: grid;
    grid-column: 2 / -1;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.fact-strip div {
    display: flex;
    min-height: 8rem;
    padding: 1.2rem;
    gap: 1rem;
    align-items: flex-end;
}

.fact-strip div + div {
    border-left: 1px solid var(--line);
}

.fact-strip dt {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 700;
    line-height: 0.8;
}

.fact-strip dd {
    max-width: 9rem;
    color: var(--ink-muted);
    font-size: var(--text-sm);
    line-height: 1.3;
}

.services-editorial-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(26rem, auto);
    gap: 0.85rem;
}

.service-card {
    position: relative;
    display: flex;
    min-height: 30rem;
    padding: 1.25rem;
    grid-column: span 4;
    align-items: flex-end;
    color: var(--white);
    background: var(--ink);
    overflow: hidden;
}

.service-card:nth-child(1),
.service-card:nth-child(6) {
    grid-column: span 8;
}

.service-card:nth-child(4),
.service-card:nth-child(9) {
    grid-column: span 5;
}

.service-card:nth-child(5),
.service-card:nth-child(8) {
    grid-column: span 7;
}

.service-card__media,
.service-card__overlay {
    position: absolute;
    inset: 0;
}

.service-card__picture,
.service-card__picture img {
    width: 100%;
    height: 100%;
}

.service-card__picture img {
    object-fit: cover;
    transition: transform var(--transition-slow), filter var(--transition);
}

.service-card__overlay {
    background: linear-gradient(180deg, rgba(7, 10, 12, 0.12) 30%, rgba(7, 10, 12, 0.92));
    transition: background var(--transition);
}

.service-card__number {
    position: absolute;
    z-index: 1;
    top: 1.2rem;
    left: 1.2rem;
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 50%;
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 700;
    place-items: center;
}

.service-card__content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.service-card__content h3 {
    max-width: 12ch;
    margin-bottom: 0.8rem;
    font-size: clamp(2.2rem, 3.5vw, 4.2rem);
    text-transform: uppercase;
}

.service-card__content p {
    max-width: 37rem;
    max-height: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--text-sm);
    opacity: 0;
    overflow: hidden;
    transform: translateY(1rem);
    transition:
        max-height var(--transition),
        margin var(--transition),
        opacity var(--transition),
        transform var(--transition);
}

.service-card__content > span {
    display: flex;
    padding-top: 1rem;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    font-size: var(--text-sm);
    font-weight: 700;
}

.service-card:hover .service-card__picture img {
    filter: saturate(0.72);
    transform: scale(1.045);
}

.service-card:hover .service-card__overlay {
    background: linear-gradient(180deg, rgba(7, 10, 12, 0.22), rgba(7, 10, 12, 0.95));
}

.service-card:hover .service-card__content p {
    max-height: 8rem;
    margin-bottom: 1rem;
    opacity: 1;
    transform: translateY(0);
}

.stock-grid {
    display: grid;
    margin-bottom: var(--space-lg);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line-light);
    border-left: 1px solid var(--line-light);
}

.stock-card {
    position: relative;
    min-height: 21rem;
    padding: 1.5rem;
    border-right: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
}

.stock-card__number {
    color: var(--accent);
    font-size: var(--text-xs);
    font-weight: 700;
}

.stock-card h3 {
    margin-top: 6rem;
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 2.5vw, 3rem);
    text-transform: uppercase;
}

.stock-card p {
    color: rgba(255, 255, 255, 0.64);
    font-size: var(--text-sm);
}

.stock-card--accent {
    color: var(--ink);
    background: var(--accent);
}

.stock-card--accent .stock-card__number,
.stock-card--accent p {
    color: var(--ink);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-lg);
}

.equipment-grid .eyebrow {
    margin-bottom: var(--space-md);
}

.equipment-grid li {
    display: grid;
    padding-block: 0.85rem;
    grid-template-columns: 1rem 1fr;
    gap: 0.85rem;
    border-bottom: 1px solid var(--line-light);
    color: rgba(255, 255, 255, 0.74);
    font-size: var(--text-sm);
}

.equipment-grid li::before {
    color: var(--accent);
    content: "—";
}

.mosaic-gallery {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 18rem;
    gap: 0.75rem;
}

.mosaic-gallery__item {
    position: relative;
    grid-column: span 4;
    color: var(--white);
    background: var(--ink);
    overflow: hidden;
}

.mosaic-gallery__item:first-child {
    grid-row: span 2;
    grid-column: span 7;
}

.mosaic-gallery__item:nth-child(2),
.mosaic-gallery__item:nth-child(3) {
    grid-column: span 5;
}

.mosaic-gallery__item:nth-child(4) {
    grid-column: span 5;
}

.mosaic-gallery__item:nth-child(5) {
    grid-column: span 3;
}

.mosaic-gallery__item:nth-child(6) {
    grid-column: span 4;
}

.mosaic-gallery__picture,
.mosaic-gallery__picture img {
    width: 100%;
    height: 100%;
}

.mosaic-gallery__picture img {
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.mosaic-gallery__item::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(7, 9, 11, 0.78));
    content: "";
}

.mosaic-gallery__item > span,
.mosaic-gallery__item > i {
    position: absolute;
    z-index: 1;
    bottom: 1rem;
}

.mosaic-gallery__item > span {
    left: 1rem;
    font-size: var(--text-sm);
    font-weight: 700;
}

.mosaic-gallery__item > i {
    right: 1rem;
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 50%;
    font-style: normal;
    place-items: center;
}

.mosaic-gallery__item:hover img {
    transform: scale(1.045);
}

.quality__grid {
    display: grid;
    grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1fr);
    gap: var(--space-lg);
    align-items: center;
}

.quality__media {
    height: min(47rem, 75vh);
}

.quality__picture,
.quality__picture img {
    width: 100%;
    height: 100%;
}

.quality__picture img {
    object-fit: cover;
}

.quality__content {
    padding-right: clamp(0rem, 4vw, 5rem);
}

.quality__content .eyebrow {
    margin-bottom: var(--space-sm);
}

.quality__content h2,
.quality__content .lead {
    margin-bottom: var(--space-md);
}

.principles-list {
    margin-bottom: var(--space-md);
    border-top: 1px solid var(--line);
}

.principles-list li {
    display: flex;
    padding-block: 0.8rem;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    font-weight: 650;
}

.principles-list span {
    color: var(--accent-dark);
    font-size: var(--text-xs);
}

/* Service detail */
.service-intro__copy .lead {
    margin-bottom: var(--space-md);
    font-size: clamp(1.35rem, 1.1rem + 0.9vw, 2rem);
}

.service-gallery {
    padding-top: var(--space-xl);
}

.related-services {
    border-top: 1px solid var(--line);
}

.service-pagination {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    color: var(--white);
    background: var(--ink-soft);
}

.service-pagination a {
    display: flex;
    min-height: 11rem;
    padding: clamp(1.5rem, 3vw, 3rem);
    flex-direction: column;
    justify-content: center;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.service-pagination a + a {
    align-items: flex-end;
    border-left: 1px solid var(--line-light);
    text-align: right;
}

.service-pagination a:hover {
    color: var(--ink);
    background: var(--accent);
}

.service-pagination span {
    margin-bottom: 0.5rem;
    color: var(--steel);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-pagination a:hover span {
    color: var(--ink-muted);
}

.service-pagination strong {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 3.5rem);
    line-height: 1;
    text-transform: uppercase;
}

/* Services directory */
.services-directory__list {
    border-top: 1px solid var(--line);
}

.directory-item {
    display: grid;
    min-height: 28rem;
    padding-block: var(--space-md);
    grid-template-columns: minmax(18rem, 0.8fr) 5rem minmax(0, 1.2fr);
    gap: var(--space-md);
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.directory-item__media {
    height: 23rem;
    overflow: hidden;
}

.directory-item__picture,
.directory-item__picture img {
    width: 100%;
    height: 100%;
}

.directory-item__picture img {
    object-fit: cover;
    transition: transform var(--transition-slow), filter var(--transition);
}

.directory-item:hover .directory-item__picture img {
    filter: saturate(0.8);
    transform: scale(1.04);
}

.directory-item__number {
    align-self: start;
    color: var(--accent-dark);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
}

.directory-item__content .eyebrow {
    margin-bottom: 1rem;
}

.directory-item__content h2 {
    margin-bottom: 1rem;
    font-size: clamp(2.7rem, 4.5vw, 5.6rem);
}

.directory-item__content > p {
    max-width: 39rem;
    margin-bottom: var(--space-md);
    color: var(--ink-muted);
}

/* About */
.about-story__grid {
    display: grid;
    grid-template-columns: 10rem 1fr 0.85fr;
    gap: var(--space-lg);
    align-items: start;
}

.about-story__heading .eyebrow {
    margin-bottom: var(--space-sm);
}

.about-story__copy {
    padding-top: clamp(2rem, 7vw, 7rem);
}

.about-story__copy .lead {
    margin-bottom: 1.5rem;
}

.about-story__copy p:last-child {
    color: var(--ink-muted);
}

.about-infrastructure__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
    gap: var(--space-lg);
    align-items: stretch;
}

.about-infrastructure__media {
    min-height: 43rem;
}

.about-infrastructure__picture,
.about-infrastructure__picture img {
    width: 100%;
    height: 100%;
}

.about-infrastructure__picture img {
    object-fit: cover;
}

.about-infrastructure__content {
    display: flex;
    padding-block: var(--space-md);
    flex-direction: column;
    justify-content: center;
}

.big-index {
    margin-bottom: auto;
    color: var(--accent-dark);
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
}

.about-infrastructure__content .eyebrow {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.about-infrastructure__content h2,
.about-infrastructure__content > p {
    margin-bottom: var(--space-md);
}

.about-infrastructure__content > p {
    color: var(--ink-muted);
}

.infrastructure-facts {
    border-top: 1px solid var(--line);
}

.infrastructure-facts div {
    display: grid;
    padding-block: 0.8rem;
    grid-template-columns: 8rem 1fr;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
}

.infrastructure-facts dt {
    font-weight: 700;
}

.infrastructure-facts dd {
    color: var(--ink-muted);
}

.team-list {
    border-top: 1px solid var(--line-light);
}

.team-row {
    display: grid;
    min-height: 7rem;
    padding-block: 1.25rem;
    grid-template-columns: 5rem minmax(14rem, 0.8fr) 1fr;
    gap: var(--space-md);
    align-items: center;
    border-bottom: 1px solid var(--line-light);
}

.team-row > span {
    color: var(--accent);
    font-size: var(--text-xs);
    font-weight: 700;
}

.team-row h3 {
    font-size: clamp(1.6rem, 2.5vw, 3rem);
    text-transform: uppercase;
}

.team-row p {
    color: rgba(255, 255, 255, 0.62);
}

.principles__grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: var(--space-lg);
}

.principles__heading .eyebrow {
    margin-bottom: var(--space-sm);
}

.principles__copy {
    padding-top: var(--space-lg);
}

.principles__copy .lead,
.principles__copy > p {
    margin-bottom: var(--space-md);
}

.principles__copy > p {
    color: var(--ink-muted);
}

/* Contact */
.contact-page__grid {
    display: grid;
    grid-template-columns: minmax(17rem, 0.7fr) minmax(0, 1.3fr);
    gap: var(--space-xl);
    align-items: start;
}

.contact-details {
    position: sticky;
    top: 7rem;
}

.contact-details .eyebrow {
    margin-bottom: var(--space-sm);
}

.contact-details h2 {
    margin-bottom: var(--space-lg);
}

.contact-address {
    margin-bottom: var(--space-lg);
}

.contact-address > span {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--ink-muted);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-address strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 3.5rem);
    line-height: 1;
    text-transform: uppercase;
}

.contact-address p {
    margin-block: 0.7rem 1.2rem;
    color: var(--ink-muted);
}

.contact-email-list {
    border-top: 1px solid var(--line);
}

.contact-email-list a {
    display: block;
    padding-block: 1rem;
    border-bottom: 1px solid var(--line);
}

.contact-email-list span {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--ink-muted);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-email-list strong {
    display: block;
    font-size: var(--text-sm);
    overflow-wrap: anywhere;
}

.social-links {
    display: grid;
    margin-top: var(--space-md);
    gap: 0.75rem;
}

.social-link {
    display: flex;
    margin-top: 0;
    padding: 0.9rem 1rem;
    justify-content: space-between;
    border: 1px solid var(--line);
    font-size: var(--text-sm);
    font-weight: 700;
}

.contact-form-wrap {
    padding: clamp(1.5rem, 4vw, 4rem);
    background: var(--paper-strong);
    box-shadow: 0 1.5rem 5rem rgba(13, 16, 18, 0.08);
}

.contact-form__heading {
    margin-bottom: var(--space-lg);
}

.contact-form__heading .eyebrow {
    margin-bottom: 1rem;
}

.contact-form__heading h2 {
    margin-bottom: 1rem;
    font-size: clamp(2.8rem, 4.5vw, 5.8rem);
}

.contact-form__heading > p {
    color: var(--ink-muted);
}

/* Legal and error */
.legal-hero {
    padding-top: calc(var(--header-height) + var(--space-xl));
    padding-bottom: var(--space-lg);
}

.legal-hero .breadcrumb {
    margin-bottom: var(--space-lg);
}

.legal-hero .eyebrow {
    margin-bottom: var(--space-sm);
}

.legal-hero h1 {
    font-size: var(--title-lg);
}

.legal-content__inner {
    max-width: 52rem;
}

.legal-content .lead {
    margin-bottom: var(--space-lg);
}

.legal-content h2 {
    margin-top: var(--space-lg);
    margin-bottom: 0.8rem;
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.legal-content p {
    color: var(--ink-muted);
}

.legal-content .button {
    margin-top: var(--space-lg);
}

.error-page {
    display: grid;
    min-height: 100svh;
    padding-top: calc(var(--header-height) + var(--space-xl));
    align-items: center;
}

.error-page__inner {
    position: relative;
}

.error-page__code {
    position: absolute;
    z-index: 0;
    top: -8rem;
    right: 0;
    color: rgba(255, 255, 255, 0.035);
    font-family: var(--font-display);
    font-size: clamp(12rem, 28vw, 32rem);
    font-weight: 700;
    line-height: 1;
}

.error-page .eyebrow,
.error-page h1,
.error-page p,
.error-page .button-group {
    position: relative;
    z-index: 1;
}

.error-page .eyebrow {
    margin-bottom: var(--space-sm);
}

.error-page h1 {
    margin-bottom: var(--space-md);
    font-size: var(--title-lg);
}

.error-page p {
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.68);
}
