@font-face {
  font-family: "Roboto Condensed Portfolio";
  src: url("assets/fonts/RobotoCondensed-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #02162b;
  --navy-soft: #0a2940;
  --paper: #f1eee5;
  --white: #fffef8;
  --orange: #ff6847;
  --teal: #12bdb4;
  --ink: #0a1b25;
  --muted: #52646b;
  --rule: rgba(10, 27, 37, .22);
  --display: "Roboto Condensed Portfolio", "Arial Narrow", sans-serif;
  --body: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.5; }
body::before { position: fixed; inset: 0; z-index: 100; border: 8px solid var(--navy); content: ""; pointer-events: none; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; }
.wrap { width: min(1320px, calc(100% - 72px)); margin: 0 auto; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 200; padding: 12px 16px; background: var(--white); }
.skip-link:focus { top: 16px; }

.masthead { position: relative; z-index: 20; background: var(--navy); color: var(--white); }
.masthead-inner { min-height: 104px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.identity { display: inline-flex; align-items: center; gap: 14px; width: fit-content; color: var(--white); text-decoration: none; }
.identity img { width: 58px; height: 73px; object-fit: contain; }
.identity-copy { display: grid; gap: 4px; }
.identity strong { font-family: var(--display); font-size: 1.08rem; letter-spacing: .09em; line-height: 1; text-transform: uppercase; }
.identity small { color: #8fa9b4; font-size: .65rem; font-weight: 800; letter-spacing: .18em; line-height: 1.15; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 26px; }
.main-nav a { color: #cfdee2; font-size: .72rem; font-weight: 900; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; }
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a[aria-current="page"] { color: var(--orange); }
.header-note { justify-self: end; max-width: 260px; color: #8fa9b4; font-size: .67rem; font-weight: 750; letter-spacing: .1em; line-height: 1.35; text-align: right; text-transform: uppercase; white-space: nowrap; }

.hero { position: relative; overflow: hidden; min-height: 735px; background: var(--navy); color: var(--white); }
.hero::after { position: absolute; right: -12vw; bottom: -28vw; width: 64vw; aspect-ratio: 1; border: 2px solid rgba(18, 189, 180, .28); border-radius: 50%; content: ""; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.42fr .58fr; gap: 70px; padding: 78px 0 74px; }
.hero-kicker, .section-kicker { margin-bottom: 18px; color: var(--orange); font-size: .72rem; font-weight: 900; letter-spacing: .26em; text-transform: uppercase; }
.hero h1 { max-width: 900px; margin-bottom: 0; font-size: clamp(5.7rem, 11.3vw, 10.8rem); font-weight: 900; letter-spacing: -.055em; line-height: .78; }
.hero h1 .outline { color: var(--navy); -webkit-text-fill-color: var(--navy); -webkit-text-stroke: 2px var(--white); paint-order: stroke fill; }
.hero h1 .accent { color: var(--teal); }
.hero-side { align-self: end; padding: 0 0 18px 28px; border-left: 1px solid rgba(255,255,255,.24); }
.hero-side p { max-width: 400px; margin-bottom: 28px; color: #c9d8dc; font-size: clamp(1.05rem, 1.6vw, 1.32rem); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 42px; }
.hero-meta span { padding: 8px 11px; border: 1px solid rgba(255,255,255,.25); color: #adc1c7; font-size: .64rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 19px; border: 2px solid currentColor; background: transparent; color: inherit; font-size: .72rem; font-weight: 950; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; transition: background .16s ease, color .16s ease, transform .16s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button.orange { border-color: var(--orange); background: var(--orange); color: var(--navy); }
.button.orange:hover, .button.orange:focus-visible { background: var(--white); border-color: var(--white); }
.button.dark { color: var(--navy); }
.button.dark:hover, .button.dark:focus-visible { background: var(--navy); color: var(--white); }

.ticker { overflow: hidden; border-top: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); background: var(--teal); color: var(--navy); }
.ticker-track { display: flex; width: max-content; animation: drift 35s linear infinite; }
.ticker-track span { padding: 15px 28px; font-family: var(--display); font-size: 1rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.ticker-track span::after { margin-left: 56px; content: "✦"; }
@keyframes drift { to { transform: translateX(-50%); } }

.work { padding: 105px 0 125px; }
.section-head { display: grid; grid-template-columns: .42fr 1fr; gap: 52px; align-items: end; margin-bottom: 66px; padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.section-head h2 { margin-bottom: 0; font-size: clamp(4.2rem, 8vw, 8rem); letter-spacing: -.05em; line-height: .8; }
.section-head p { max-width: 680px; margin-bottom: 4px; color: var(--muted); font-size: 1.1rem; }
.work[id], .profile[id] { scroll-margin-top: 28px; }

.project-list { display: grid; gap: 88px; }
.project { display: grid; grid-template-columns: 1.3fr .7fr; gap: 38px; align-items: stretch; }
.project:nth-child(even) { grid-template-columns: .7fr 1.3fr; }
.project:nth-child(even) .project-visual { order: 2; }
.project-visual { position: relative; display: block; min-height: 500px; overflow: hidden; background: var(--navy-soft); color: var(--white); text-decoration: none; }
.project-visual::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(2,22,43,.66)); content: ""; }
.project-visual img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.project-visual:hover img, .project-visual:focus-visible img { transform: scale(1.035); }
.project-number { position: absolute; top: 22px; left: 24px; z-index: 2; font: 950 1rem/1 var(--display); letter-spacing: .13em; }
.watch-pill { position: absolute; right: 22px; bottom: 22px; z-index: 2; display: grid; place-items: center; width: 74px; aspect-ratio: 1; background: var(--orange); color: var(--navy); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); font-size: .8rem; font-weight: 950; letter-spacing: .04em; text-transform: uppercase; }
.project-copy { display: flex; flex-direction: column; justify-content: space-between; padding: 30px 0 18px; border-top: 7px solid var(--orange); }
.project:nth-child(2) .project-copy { border-color: var(--teal); }
.project:nth-child(3) .project-copy { border-color: var(--navy); }
.project-type { color: var(--muted); font-size: .7rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.project h3 { margin: 14px 0 22px; font-size: clamp(2.4rem, 4.7vw, 5rem); letter-spacing: -.035em; line-height: .88; }
.project-copy p { max-width: 470px; color: var(--muted); font-size: 1rem; }
.project-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.project-skills span { padding: 7px 9px; border: 1px solid var(--rule); font-size: .62rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.project-link { align-self: flex-start; margin-top: 30px; font-size: .73rem; font-weight: 950; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; }
.project-link::after { margin-left: 12px; color: var(--orange); content: "↗"; }

.process { background: var(--orange); color: var(--navy); }
.process-grid { display: grid; grid-template-columns: .55fr 1.45fr; gap: 64px; padding: 100px 0; }
.process-grid > div:first-child { align-self: start; }
.process .section-kicker { display: none; }
.process h2 { max-width: 460px; margin-bottom: 0; font-size: clamp(3.7rem, 6.25vw, 6.5rem); letter-spacing: -.045em; line-height: .82; }
.steps { border-top: 2px solid var(--navy); }
.step { display: grid; grid-template-columns: 74px .7fr 1fr; gap: 22px; padding: 26px 0; border-bottom: 1px solid rgba(2,22,43,.32); }
.step-number { font: 950 1rem/1 var(--display); }
.step h3 { margin: 0; font-size: 1.6rem; line-height: 1; }
.step p { margin: 0; color: #273947; }

.profile { padding: 110px 0; background: var(--navy); color: var(--white); }
.profile-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 82px; align-items: center; }
.profile-image { position: relative; padding: 18px 18px 0 0; }
.profile-image::before { position: absolute; inset: 0 0 28px 26px; border: 2px solid var(--teal); content: ""; }
.profile-image img { position: relative; z-index: 2; display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: saturate(.82) contrast(1.03); }
.profile-copy h2 { max-width: 760px; margin-bottom: 26px; font-size: clamp(4rem, 7.5vw, 7.7rem); letter-spacing: -.045em; line-height: .8; }
.profile-copy > p { max-width: 720px; color: #bdcfd4; font-size: 1.12rem; }
.profile-tags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 38px 0; background: rgba(255,255,255,.18); }
.profile-tags span { padding: 16px; background: var(--navy); color: #d4e1e4; font-size: .67rem; font-weight: 850; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.closing { padding: 92px 0; background: var(--teal); color: var(--navy); }
.closing-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; }
.closing h2 { max-width: 900px; margin-bottom: 0; font-size: clamp(4rem, 8vw, 8.4rem); letter-spacing: -.05em; line-height: .8; }
.closing .button { flex: 0 0 auto; }

.contact-hero { min-height: calc(100vh - 104px); padding: 86px 0 94px; background: var(--paper); }
.contact-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: 82px; align-items: start; }
.contact-intro .hero-kicker { white-space: nowrap; }
.contact-intro h1 { margin-bottom: 28px; font-size: clamp(5rem, 9vw, 9.2rem); letter-spacing: -.055em; line-height: .78; }
.contact-intro h1 span { color: var(--orange); }
.contact-intro > p { max-width: 570px; color: var(--muted); font-size: 1.13rem; }
.direct-links { display: grid; gap: 10px; margin-top: 35px; }
.direct-links a { width: fit-content; font-size: .74rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.contact-form { padding: 38px; border: 2px solid var(--navy); background: var(--white); box-shadow: 12px 12px 0 var(--orange); }
.contact-form h2 { margin-bottom: 26px; font-size: 2.5rem; line-height: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.wide, .form-status, .form-actions { grid-column: 1 / -1; }
.field label { font-size: .68rem; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
input, select, textarea { width: 100%; border: 0; border-bottom: 2px solid var(--navy); border-radius: 0; background: #f6f3eb; color: var(--ink); font: inherit; }
input, select { min-height: 50px; padding: 0 12px; }
textarea { min-height: 170px; padding: 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(18,189,180,.3); }
.hidden-field { display: none; }
.form-status { display: none; padding: 12px; border-left: 5px solid var(--teal); background: #e2f7f4; }
.form-status.is-visible { display: block; }
.form-status.is-error { border-color: var(--orange); background: #ffe7df; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.form-note { max-width: 260px; margin: 0; color: var(--muted); font-size: .76rem; }

.footer { background: #010d18; color: #91aab2; }
.footer-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer a { text-decoration: none; }
.footer a:hover, .footer a:focus-visible { color: var(--orange); }

@media (max-width: 980px) {
  .masthead-inner { grid-template-columns: 1fr auto; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; padding-bottom: 20px; }
  .header-note { grid-column: 2; grid-row: 1; }
  .hero-grid, .contact-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-side { max-width: 620px; }
  .section-head { grid-template-columns: 1fr; gap: 14px; }
  .project, .project:nth-child(even) { grid-template-columns: 1fr; }
  .project:nth-child(even) .project-visual { order: 0; }
  .project-visual { min-height: 470px; }
  .process-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: .78fr 1.22fr; gap: 46px; }
  .profile-tags { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body::before { border-width: 4px; }
  .wrap { width: min(100% - 30px, 1320px); }
  .masthead-inner { grid-template-columns: 1fr; gap: 12px; padding: 16px 0 18px; }
  .header-note { display: none; }
  .identity img { width: 48px; height: 61px; }
  .main-nav { grid-column: 1; grid-row: auto; gap: 13px 18px; flex-wrap: wrap; padding: 0; }
  .hero-grid { gap: 46px; padding: 58px 0; }
  .hero h1 { font-size: clamp(4.5rem, 22vw, 7rem); }
  .hero-side { padding-left: 18px; }
  .ticker-track span { padding: 11px 20px; font-size: .8rem; }
  .work { padding: 72px 0 84px; }
  .section-head { margin-bottom: 42px; }
  .section-head h2 { font-size: clamp(3.8rem, 18vw, 5.8rem); }
  .project-list { gap: 62px; }
  .project-visual { min-height: 300px; }
  .project h3 { font-size: 3rem; }
  .process-grid { padding: 72px 0; }
  .step { grid-template-columns: 42px 1fr; }
  .step p { grid-column: 2; }
  .profile { padding: 78px 0; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-image { width: min(380px, 92%); }
  .closing { padding: 70px 0; }
  .closing-inner { align-items: flex-start; flex-direction: column; }
  .contact-hero { padding: 60px 0 76px; }
  .contact-intro .hero-kicker { white-space: normal; }
  .contact-form { padding: 24px; box-shadow: 7px 7px 0 var(--orange); }
  .form-grid { grid-template-columns: 1fr; }
  .field.wide, .form-status, .form-actions { grid-column: auto; }
  .form-actions { align-items: flex-start; flex-direction: column; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding: 28px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
