:root {
    color-scheme: dark;
    --bg: #0a192f;
    --panel: #112240;
    --text: #ccd6f6;
    --muted: #8892b0;
    --accent: #64ffda;
    --line: #233554;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--muted);
    font:
        16px/1.75 system-ui,
        -apple-system,
        Segoe UI,
        sans-serif;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover,
a:focus-visible {
    color: var(--accent);
}
button {
    font: inherit;
}
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}
.shell {
    max-width: 1320px;
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
    gap: 1rem;
    padding: 0 6%;
}
.intro {
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 100px 38px 65px 0;
}
.home {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 780;
    color: var(--text);
    letter-spacing: -0.055em;
    line-height: 1.1;
}
.dot {
    color: var(--accent);
}
.intro h1 {
    font-size: 1.13rem;
    line-height: 1.6;
    font-weight: 600;
    color: var(--text);
    margin: 24px 0 12px;
}
.intro h1 span {
    color: var(--accent);
}
.lead {
    max-width: 360px;
}
.intro nav {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 12px;
    margin-top: 64px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.73rem;
    font-weight: 700;
}
.intro nav a:before {
    content: "";
    display: inline-block;
    width: 27px;
    height: 1px;
    background: currentColor;
    vertical-align: middle;
    margin-right: 16px;
    transition: width 0.2s;
}
.intro nav a:hover:before {
    width: 48px;
}
.social {
    font-size: 0.8rem;
}
main {
    min-width: 0;
    padding: 100px 0 30px;
}
section {
    scroll-margin-top: 55px;
}
#home-view > section {
    padding: 0 0 35px;
}
h2 {
    font-size: 1.08rem;
    color: var(--text);
    margin: 0 0 25px;
}
h2 span {
    color: var(--accent);
    font-size: 0.85rem;
    margin-right: 12px;
}
p {
    margin: 0 0 18px;
}
.section-intro {
    margin-bottom: 30px;
}
.project {
    display: grid;
    grid-template-columns: 175px 1fr;
    gap: 20px;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 16px;
    margin: 0 0 13px;
    transition:
        background 0.2s,
        border-color 0.2s;
}
.project:hover,
.project:focus-visible {
    background: rgba(17, 34, 64, 0.85);
    border-color: var(--line);
}
figure {
    margin: 0;
}
.project-photo {
    position: relative;
    align-self: start;
}
.project-photo img {
    display: block;
    width: 100%;
    height: 128px;
    object-fit: cover;
    border-radius: 5px;
}
.project-photo .photo-credit {
    position: absolute;
    bottom: 4px;
    right: 5px;
    background: #0a192fba;
    padding: 0 5px;
    border-radius: 2px;
    color: #fff;
    font-size: 0.6rem;
}
.project-eyebrow {
    color: var(--accent);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
}
.project h3 {
    font-size: 1.06rem;
    line-height: 1.4;
    color: var(--text);
    margin: 6px 0;
}
.project:hover h3 {
    color: var(--accent);
}
.project-role {
    font-size: 0.79rem;
    font-weight: 600;
    color: #b9c5df;
    margin-bottom: 9px;
}
.project p {
    font-size: 0.86rem;
    line-height: 1.55;
    margin: 0;
}
.project-more {
    display: block;
    color: var(--accent);
    font-size: 0.76rem;
    margin-top: 12px;
}
.contact-note {
    font-size: 0.85rem;
    color: #7786a5;
}
footer {
    text-align: center;
    font-size: 0.72rem;
    padding: 45px 0;
}
.back-link {
    display: inline-block;
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 36px;
}
.detail-title {
    font-size: clamp(1.8rem, 3.4vw, 2.9rem);
    letter-spacing: -0.035em;
    line-height: 1.18;
    margin: 9px 0 8px;
}
.detail-role {
    margin-bottom: 26px;
}
.hero-photo img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 7px;
    display: block;
}
.photo-credit {
    display: block;
    font-size: 0.73rem;
    margin-top: 6px;
    text-align: right;
}
.detail-intro {
    font-size: 1.06rem;
    color: var(--text);
    margin: 28px 0 42px;
}
.section-heading {
    font-size: 1.16rem;
    color: var(--text);
    margin: 42px 0 20px;
}
.story-section {
    margin-bottom: 25px;
}
.story-section h4 {
    font-size: 0.95rem;
    color: var(--accent);
    margin: 0 0 8px;
}
.story-section p {
    font-size: 0.94rem;
}
.specs {
    display: grid;
    grid-template-columns: minmax(110px, 35%) 1fr;
    margin: 0;
    border-top: 1px solid var(--line);
    font-size: 0.86rem;
}
.specs dt,
.specs dd {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    margin: 0;
}
.specs dt {
    color: var(--text);
    font-weight: 600;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}
.gallery-item {
    border: 0;
    background: none;
    padding: 0;
    cursor: zoom-in;
    text-align: left;
    color: var(--muted);
    position: relative;
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}
.gallery-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}
.gallery-label {
    display: block;
    font-size: 0.75rem;
    margin-top: 6px;
}
.gallery-item .photo-credit {
    font-size: 0.73rem;
    margin-top: 6px;
    text-align: right;
    bottom: 35px;
    right: 5px;
    background: #0a192fba;
    padding: 0 5px;
    border-radius: 2px;
    position: absolute;
    color: #fff;
    font-size: 0.6rem;
}
dialog {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    border-radius: 8px;
    max-width: min(1150px, 96vw);
    max-height: 95vh;
    padding: 52px 18px 14px;
    box-shadow: 0 30px 80px #0009;
}
dialog::backdrop {
    background: #020b1de8;
}
dialog img {
    max-width: 100%;
    max-height: 76vh;
    display: block;
    margin: auto;
    object-fit: contain;
}
dialog p {
    text-align: center;
    font-size: 0.82rem;
    margin: 8px 0 0;
}
#lightbox-close {
    position: absolute;
    right: 8px;
    top: 4px;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: 0;
    color: var(--accent);
    font-size: 2rem;
    cursor: pointer;
}
[hidden] {
    display: none !important;
}
@media (max-width: 1050px) {
    .shell {
        grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
        padding: 0 4%;
    }
    .project {
        grid-template-columns: 135px 1fr;
        gap: 15px;
    }
    .project-photo img {
        height: 105px;
    }
}
@media (max-width: 800px) {
    .shell {
        display: block;
        padding: 0 7%;
    }
    .intro {
        position: static;
        height: auto;
        padding: 58px 0 35px;
    }
    .intro nav {
        flex-direction: row;
        flex-wrap: wrap;
        margin: 30px 0;
    }
    .intro nav a:before {
        display: none;
    }
    main {
        padding-top: 18px;
    }
    #home-view > section {
        padding-bottom: 70px;
    }
    .project {
        grid-template-columns: 145px 1fr;
    }
}
@media (max-width: 480px) {
    .project {
        grid-template-columns: 1fr;
        padding: 13px;
    }
    .project-photo img {
        height: 190px;
    }
    .photo-grid {
        gap: 9px;
    }
    .home {
        font-size: 2.5rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        transition: none !important;
    }
}
/* Contact section */

.contact-section {
  padding: 110px 0 100px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-eyebrow {
  color: #64ffda;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-section h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #ccd6f6;
  margin-bottom: 22px;
}

.contact-description {
  color: #8892b0;
  line-height: 1.8;
  font-size: 1.05rem;
  margin: 0 auto 36px;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  color: #64ffda;
  border: 1px solid #64ffda;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  background-color: rgba(100, 255, 218, 0.1);
}

@media (max-width: 600px) {
  .contact-section {
    padding: 75px 20px;
  }
}
