/* Techleod portfolio — standalone, framework-free stylesheet. */
:root {
    color-scheme: dark;
    --bg: #0a1018;
    --panel: #101925;
    --panel-2: #131f2c;
    --line: #293644;
    --muted: #9caaba;
    --muted-2: #647789;
    --text: #f3f6f8;
    --blue: #79cff8;
    --blue-deep: #317fb8;
    --content: 1220px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', 'Segoe UI', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
::selection { background: #296b92; color: #fff; }
.container { width: min(calc(100% - 84px), var(--content)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 100; left: 12px; top: -70px; color: #07131d; background: var(--blue); padding: 12px 20px; border-radius: 4px; }
.skip-link:focus { top: 12px; }
.site-header { height: 88px; border-bottom: 1px solid rgba(255,255,255,.07); }
.header-inner { height: 100%; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; flex: none; padding: 0; background: transparent; border-radius: 0; }
.brand-logo { display: block; width: 178px; height: auto; }
.nav-links { display: flex; gap: 36px; align-items: center; font-size: 13px; letter-spacing: .02em; font-weight: 600; }
.nav-links a { color: #b9c6d3; transition: color .2s ease; }
.nav-links a:hover { color: #fff; }
.nav-links .nav-contact { padding: 12px 19px; border: 1px solid #43576b; border-radius: 4px; color: #f5f8fa; }
.nav-contact span { margin-left: 13px; color: var(--blue); }
.nav-links .nav-contact:hover { background: #192836; border-color: var(--blue); }
.hero { position: relative; min-height: 670px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 7%; align-items: center; padding-top: 76px; padding-bottom: 92px; }
.hero::before { position: absolute; content: ''; inset: 20px 0 80px; pointer-events: none; opacity: .55; background: radial-gradient(ellipse at 73% 35%, rgba(24,74,111,.18),transparent 43%); }
.hero-copy { position: relative; z-index: 1; padding-bottom: 13px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 11px; color: var(--blue); font: 700 10px/1.7 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; letter-spacing: .16em; }
.signal-dot { width: 7px; height: 7px; border-radius: 50%; background: #7edcbc; box-shadow: 0 0 0 4px rgba(126,220,188,.1); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.064em; }
h1 { font-size: clamp(58px, 5.85vw, 86px); line-height: 1.045; font-weight: 760; margin: 28px 0 26px; white-space: nowrap; }
h1 em, h2 em { font-style: normal; color: var(--blue); }
h1 .outlined { color: transparent; -webkit-text-stroke: 1px #a9b9c8; }
.hero-description { font-size: 16px; line-height: 1.85; color: var(--muted); max-width: 535px; margin-bottom: 32px; }
.hero-actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 33px; font-size: 13px; font-weight: 800; letter-spacing: -.01em; padding: 17px 22px; border: 1px solid transparent; border-radius: 3px; transition: background .18s, transform .18s; }
.hero-actions .button-primary {
    padding: 12px 17px;
    gap: 13px;
    font-size: 12px;
}
.hero-actions .button-primary span {
    font-size: 16px;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: #0b1b29; }
.button-primary:hover { background: #a1dfff; }
.button-primary span { font-size: 18px; font-weight: 500; }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; border-bottom: 1px solid #4c6277; padding: 10px 0; }
.text-link span { color: var(--blue); font-size: 18px; }
.text-link:hover { border-color: var(--blue); }
.hero-smallprint { margin-top: 68px; display: flex; align-items: center; gap: 14px; font: 600 10px 'SFMono-Regular', Consolas, monospace; letter-spacing: .09em; color: #728697; }
.small-divider { display: inline-block; width: 27px; height: 1px; background: #6b8193; }
.hero-smallprint span:not(.small-divider) { color: #3f5669; }
.hero-panel { z-index: 1; width: 100%; min-height: 483px; border: 1px solid #3a4b5b; border-radius: 5px; padding: 26px 31px 22px; position: relative; background: linear-gradient(150deg, #142638 0%, #101a27 55%, #0d1722 100%); box-shadow: 0 21px 90px rgba(0,0,0,.28), inset 0 0 0 6px rgba(6,13,20,.22); overflow: hidden; }
.hero-panel::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#ffffff06 1px,transparent 1px),linear-gradient(90deg,#ffffff06 1px,transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom,#000,transparent 82%); pointer-events: none; }
.panel-topline, .panel-foot { position: relative; display: flex; justify-content: space-between; align-items: center; color: #b1c8d7; font: 600 10px 'SFMono-Regular', Consolas, monospace; letter-spacing: .12em; }
.asterisk { font-size: 24px; color: var(--blue); line-height: 15px; }
.panel-intro { margin-top: 28px; position: relative; z-index: 1; color: #acbdc9; font-size: 16px; line-height: 1.45; }
.panel-intro strong { color: #f4f6f9; font-size: 20px; }
.panel-orbit { position: absolute; right: -38px; top: 69px; height: 250px; width: 250px; border: 1px solid rgba(122,199,242,.15); border-radius: 50%; display: grid; place-items: center; }
.panel-orbit::before, .panel-orbit::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(122,199,242,.12); }
.panel-orbit::before { inset: 26px; }
.panel-orbit::after { inset: 58px; }
.orbit-logo { display: block; width: 157px; height: auto; filter: brightness(0) invert(1); opacity: .085; }
.panel-projects { position: relative; z-index: 2; margin-top: 89px; border-top: 1px solid #415366; }
.panel-projects a { display: grid; grid-template-columns: 33px 1fr 20px; align-items: center; gap: 8px; min-height: 56px; border-bottom: 1px solid #334759; font-size: 13px; font-weight: 650; transition: padding .18s, color .18s; }
.panel-projects a:hover { padding-left: 5px; color: var(--blue); }
.panel-no { font: 500 10px Consolas, monospace; color: #80a4bd; }
.panel-arrow { color: var(--blue); font-size: 17px; justify-self: end; }
.panel-foot { margin-top: 18px; font-size: 9px; color: #7890a1; }
.hero-bottom-rule { position: absolute; bottom: 23px; left: 0; right: 0; padding-top: 13px; border-top: 1px solid #263541; color: #6f8292; display: flex; justify-content: space-between; font: 600 10px Consolas, monospace; letter-spacing: .1em; }
.hero-bottom-rule span:last-child { color: var(--blue); font-size: 18px; }
.section { padding: 118px 0 126px; }
.work-section { background: #0f1822; border-top: 1px solid #253340; border-bottom: 1px solid #253340; }
.section-heading-row { display: flex; justify-content: space-between; gap: 60px; align-items: end; margin-bottom: 49px; }
.section-kicker { margin: 0 0 23px; }
h2 { font-size: clamp(42px,4.5vw,61px); font-weight: 760; line-height: 1.12; margin: 0; }
.section-intro { max-width: 313px; color: var(--muted); line-height: 1.75; font-size: 14px; margin: 0 0 6px; }
.projects-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 35px 22px; }
.project-card { min-width: 0; }
.project-visual { position: relative; height: clamp(260px, 27vw, 330px); overflow: hidden; display: flex; align-items: end; justify-content: center; padding: 31px 20px 0; border: 1px solid #344452; border-radius: 4px; transition: border-color .2s ease; }
.project-visual:hover { border-color: #78c9f4; }
.project-visual:hover .preview-browser { transform: translateY(-5px); }
.visual-capstick { background: #484b4a; }
.visual-leitch { background: #253e4b; }
.visual-hebrides { background: #32483f; }
.visual-invernest { background: #21473a; }
.preview-browser { width: 100%; max-width: 460px; height: 272px; border: 1px solid rgba(255,255,255,.27); border-bottom: none; background: #fff; border-radius: 7px 7px 0 0; box-shadow: 0 11px 40px rgba(0,0,0,.24); overflow: hidden; transform: translateY(0); transition: transform .2s; }
.browser-top { height: 25px; background: #ecf0f0; display: grid; grid-template-columns: 55px 1fr 30px; align-items: center; padding: 0 8px; font-size: 8px; color: #858e95; }
.browser-top > span:nth-child(2) { text-align: center; white-space: nowrap; }
.browser-dots { display: flex; gap: 4px; }
.browser-dots i { height: 6px; width: 6px; border-radius: 50%; background: #c0c8cc; }
.browser-mini { text-align: right; font-size: 10px; }
.preview-corner { position: absolute; top: 17px; right: 17px; display: grid; place-items: center; height: 30px; width: 30px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.25); border-radius: 2px; font-size: 15px; }
/* User-provided screenshots in the existing browser-style project frames. */
.project-screenshot { display: block; width: 100%; height: calc(100% - 25px); object-fit: cover; object-position: center top; }
.project-meta { margin-top: 22px; margin-bottom: 14px; display: flex; justify-content: space-between; font: 600 10px Consolas,monospace; letter-spacing: .07em; color: #7592a8; }
.project-card h3 { margin: 0 0 12px; font-size: clamp(19px,1.9vw,24px); letter-spacing: -.044em; }
.project-card h3 a { display: inline-flex; gap: 10px; align-items: center; }
.project-card h3 span { color: var(--blue); font-weight: 400; font-size: 18px; }
.project-card h3 a:hover { color: var(--blue); }
.project-card p { color: var(--muted); font-size: 13px; line-height: 1.75; margin-bottom: 21px; min-height: 68px; }
.project-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.project-tags span { font-size: 10px; color: #9db3c4; padding: 7px 9px; border: 1px solid #324553; border-radius: 3px; }
.about-section { padding: 128px 0 138px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; }
.about-grid h2 { max-width: 590px; }
.about-right { padding-top: 45px; }
.about-lead { font-size: clamp(22px,2.2vw,28px); font-weight: 660; line-height: 1.45; letter-spacing: -.03em; margin-bottom: 19px; }
.about-lead span { color: var(--blue); }
.about-right > p:not(.about-lead) { color: var(--muted); font-size: 14px; line-height: 1.85; max-width: 500px; }
.skills { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 26px; display: flex; flex-wrap: wrap; gap: 11px; }
.skills span { padding: 8px 0; margin-right: 21px; color: #b5c8d8; font: 600 11px Consolas,monospace; }
.skills span::before { content: '/'; color: var(--blue); margin-right: 10px; }
.contact-section { background: #152333; border-top: 1px solid #334656; border-bottom: 1px solid #334656; padding: 93px 0 107px; position: relative; overflow: hidden; }
.contact-section::after { content: '↗'; font-family: Arial,sans-serif; font-size: 410px; line-height: 1; color: #ffffff04; position: absolute; right: 1%; top: -100px; pointer-events: none; }
.contact-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12%; align-items: center; }
.contact-right { max-width: 440px; }
.contact-right p { color: #b8c9d6; font-size: 17px; line-height: 1.7; margin-bottom: 26px; }
.contact-email { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #7392a9; padding-bottom: 13px; color: #d9e5ed; font-size: 14px; }
.contact-email span { color: var(--blue); font-size: 18px; }
.site-footer { padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 11px; color: #7d91a1; }
.contact-email:hover { color: #fff; border-color: var(--blue); }
.footer-brand { color: #e8f2f7; font-size: 22px; font-weight: 800; letter-spacing: -.06em; }
@media (max-width: 1150px) {
    .hero { gap: 5%; }
    h1 { font-size: clamp(54px,5.3vw,72px); }
    .hero-panel { padding-inline: 23px; }
    .project-visual { padding: 27px 12px 0; }
}
@media (max-width: 850px) {
    .container { width: min(calc(100% - 44px),var(--content)); }
    .hero { padding-top: 76px; grid-template-columns: 1fr; min-height: 0; padding-bottom: 96px; gap: 45px; }
    .hero-copy { padding-bottom: 0; }
    h1 { font-size: clamp(54px,9vw,80px); }
    .hero-description { max-width: 650px; }
    .hero-smallprint { margin-top: 42px; }
    .hero-panel { min-height: 420px; max-width: 630px; }
    .panel-projects { margin-top: 66px; }
    .section { padding-block: 86px 96px; }
    .projects-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 44px 20px; }
    .project-visual { height: 250px; }
    .preview-browser { max-width: 330px; height: 214px; }
    .project-card p { min-height: 0; }
    .section-heading-row { gap: 25px; }
    .about-grid, .contact-inner { gap: 6%; }
    .about-right { padding-top: 20px; }
}
@media (max-width: 600px) {
    .container { width: calc(100% - 36px); }
    .site-header { height: auto; min-height: 100px; }
    .header-inner { min-height: 100px; }
    .header-inner { flex-wrap: wrap; justify-content: center; padding-block: 9px 12px; gap: 7px; }
    .brand { padding: 0; }
    .brand-logo { width: 146px; }
    .nav-links { width: 100%; justify-content: center; }
    .nav-links { gap: 15px; font-size: 12px; }
    .nav-links .nav-contact { padding: 8px 10px; }
    .nav-contact span { margin-left: 3px; }
    .hero { padding-top: 63px; gap: 42px; }
    .eyebrow { font-size: 9px; letter-spacing: .075em; }
    h1 { font-size: clamp(43px,10.5vw,67px); margin-top: 24px; }
    .hero-description { font-size: 15px; line-height: 1.75; }
    .hero-actions { gap: 18px; }
    .button { font-size: 12px; gap: 16px; }
    .text-link { font-size: 12px; }
    .hero-smallprint { font-size: 8px; gap: 9px; margin-top: 38px; }
    .small-divider { width: 15px; }
    .hero-panel { min-height: 420px; }
    .section-heading-row { display: block; }
    h2 { font-size: 43px; }
    .section-intro { margin-top: 20px; }
    .projects-grid { grid-template-columns: 1fr; gap: 47px; }
    .project-visual { height: 290px; padding: 35px 23px 0; }
    .preview-browser { max-width: 380px; height: 254px; }
    .browser-top { height: 30px; }
    .project-screenshot { height: calc(100% - 30px); }
    .about-grid, .contact-inner { grid-template-columns: 1fr; gap: 27px; }
    .about-section { padding-block: 90px; }
    .about-right { padding: 0; }
    .about-lead { font-size: 23px; }
    .contact-section { padding-block: 76px 90px; }
    .contact-right p { font-size: 15px; }
    .footer-inner { flex-wrap: wrap; }
    .footer-inner span:nth-child(2) { order: 3; width: 100%; }
}
@media (max-width: 385px) {
    .nav-links { gap: 10px; }
    .nav-links .nav-contact { padding: 8px; }
    h1 { font-size: 40px; }
    .hero-actions { gap: 12px; }
    .hero-panel { padding: 20px; }
    .project-visual { padding-inline: 12px; }
}
@media (max-width: 340px) {
    h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

/* Two Android software-project case studies. */
.software-section { background: #0a1018; border-bottom: 1px solid #253340; }
.software-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.software-card { min-width: 0; display: grid; grid-template-columns: 39% 61%; background: #111d2a; border: 1px solid #304252; border-radius: 5px; overflow: hidden; min-height: 460px; }
.software-visual { min-width: 0; display: flex; align-items: flex-end; justify-content: center; padding: 35px 12px 0; overflow: hidden; }
.software-visual-camerons { background: radial-gradient(circle at 50% 25%,#386c85 0%,#19344b 55%,#122536 100%); }
.software-visual-gps { background: radial-gradient(circle at 50% 25%,#2d7b82 0%,#1d4e58 55%,#13323c 100%); }
.software-phone { width: min(100%,190px); flex: none; aspect-ratio: 945/2048; background: #080e15; border: 6px solid #18232e; border-bottom: none; border-radius: 23px 23px 0 0; box-shadow: 0 12px 40px #0008; overflow: hidden; }
.software-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.software-content { min-width: 0; align-self: center; padding: 35px 30px; }
.software-meta { color: #86acc3; font: 650 10px/1.55 Consolas,monospace; letter-spacing: .08em; margin-bottom: 21px; }
.software-content h3 { margin: 0 0 19px; font-size: clamp(22px,2.25vw,30px); line-height: 1.12; letter-spacing: -.04em; }
.software-subtitle { display: block; color: var(--blue); font-size: 13px; letter-spacing: 0; font-weight: 600; margin-top: 7px; }
.software-content p:not(.software-meta) { font-size: 13px; line-height: 1.78; color: #aabbc9; margin: 0 0 15px; }
.software-content .project-tags { margin-top: 24px; }

@media (max-width: 1100px) {
    .software-grid { grid-template-columns: 1fr; }
    .software-card { grid-template-columns: minmax(190px,35%) 1fr; min-height: 405px; }
    .software-content { padding: 42px; }
}
@media (max-width: 600px) {
    .software-card { grid-template-columns: 1fr; }
    .software-visual { height: 315px; padding-top: 22px; }
    .software-phone { width: 160px; }
    .software-content { padding: 32px 25px 35px; }
    .software-content h3 { font-size: 27px; }
    .software-grid { gap: 24px; }
}
@media (max-width: 385px) {
    .nav-links { gap: 9px; font-size: 11px; }
    .nav-links .nav-contact { padding: 8px; }
}
