:root {
  --navy-950: #031326;
  --navy-900: #061a33;
  --navy-850: #0a2341;
  --blue: #176bff;
  --blue-light: #4a93ff;
  --orange: #ff7a18;
  --orange-light: #ff9a3d;
  --ink: #0b1733;
  --text: #31405b;
  --muted: #6b7488;
  --line: #dde3ec;
  --white: #ffffff;
  --surface: #f6f8fb;
  --shadow: 0 18px 42px rgba(10, 25, 52, 0.12);
  --radius: 10px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  display: block;
}

section {
  scroll-margin-top: 84px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section {
  padding: 76px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.12;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.04em;
  font-weight: 500;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--orange);
  border-radius: 6px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  box-shadow: 0 12px 25px rgba(255, 122, 24, 0.24);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
	/*
  transform: translateY(-2px);
  */
  box-shadow: 0 16px 30px rgba(255, 122, 24, 0.32);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.button-small {
  min-height: 44px;
  padding-inline: 22px;
  font-size: 0.74rem;
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.78);
  color: var(--white);
  background: transparent;
  box-shadow: none;
}

.button-outline:hover {
  background: rgba(255,255,255,.08);
  box-shadow: none;
}

.button-blue {
  min-height: 44px;
  padding-inline: 16px;
  border-color: var(--blue);
  color: var(--blue);
  background: transparent;
  box-shadow: none;
}

.button-blue:hover {
  color: var(--white);
  background: var(--blue);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0a55dd;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.text-link span {
  font-size: 1.1em;
  transition: transform .2s ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: rgba(3, 19, 38, 0.94);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: baseline;
  font-family: Georgia, serif;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -0.18em;
}

.brand-mark span:first-child {
  color: var(--white);
}

.brand-mark span:last-child {
  color: var(--orange);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 1.28rem;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.brand-copy small {
  margin-top: 6px;
  color: var(--blue-light);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .41em;
  letter-spacing: .1em;
  text-transform: uppercase;
}

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

.site-nav > a:not(.button) {
  position: relative;
  padding: 31px 0 28px;
  font-size: .94rem;
  font-weight: 600;
}

.site-nav > a:not(.button)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.site-nav > a:not(.button):hover::after,
.site-nav > a.active::after {
  transform: scaleX(1);
}

.site-nav .button {
	font-weight: 600;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 66% 35%, rgba(18, 75, 137, .45), transparent 32%),
    linear-gradient(115deg, #031326 0%, #071b34 56%, #051528 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255,255,255,.1);
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.05fr 1.1fr;
  align-items: center;
  gap: 28px;
}

.hero-copy {
  padding: 72px 0 58px;
}

.hero .eyebrow {
  color: var(--blue-light);
}

.hero h1 {
  max-width: 680px;
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(3rem, 6vw, 4.75rem);
  letter-spacing: -0.01em;
}

.hero h1 span {
  color: var(--orange);
}

.hero-intro {
  max-width: 610px;
  margin-bottom: 30px;
  color: rgba(255,255,255,.86);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tech-list {
  position: absolute;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255,255,255,.62);
  font-size: .92rem;
}

.tech-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  /*
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  */
  color: rgba(255,255,255,.72);
  font-size: 1.3rem;
  font-weight: 700;
}

.tech-square {
  border-radius: 3px;
}

.tech-pill {
  width: 31px;
  border-radius: 20px;
  font-style: italic;
}

.tech-text {
  width: auto;
  border: 0;
}

.hero-portrait-wrap {
  position: relative;
  align-self: stretch;
  min-height: 610px;
}

.hero-portrait {
  position: absolute;
  z-index: 2;
  right: -35px;
  bottom: 0;
  width: min(590px, 52vw);
  height: 97%;
  height: auto;
  object-fit: cover;
  object-position: center 16%;
  filter: drop-shadow(-20px 22px 26px rgba(0,0,0,.24));
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
}

.hero-glow-one {
  right: -110px;
  bottom: -130px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255,122,24,.92) 0%, rgba(255,122,24,.3) 38%, transparent 72%);
}

.hero-glow-two {
  right: 18%;
  top: 13%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(25,104,255,.24), transparent 70%);
}

.hero-lines,
.service-lines {
  position: absolute;
  pointer-events: none;
  opacity: .3;
  background:
    repeating-radial-gradient(
      ellipse at center,
      transparent 0 13px,
      rgba(255, 136, 43, .5) 14px 15px,
      transparent 16px 29px
    );
}

.hero-lines {
  z-index: 1;
  right: -130px;
  bottom: 16px;
  width: 500px;
  height: 470px;
  transform: rotate(-18deg);
}

/* Projects */
.projects-section {
  background: linear-gradient(180deg, #fff, #f7f9fc);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.project-card {
  overflow: hidden;
  border: 1px solid #e6eaf0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(10,25,52,.16);
}

.project-image {
  position: relative;
  min-height: 195px;
  overflow: hidden;
}

.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  /*
  background: linear-gradient(to top, rgba(0,0,0,.44), transparent 62%);
  */
}

.project-ocean {
  background:
    radial-gradient(circle at 18% 15%, rgba(255,255,255,.35) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 34%, rgba(255,255,255,.3) 0 3px, transparent 4px),
    linear-gradient(145deg, rgba(0,35,68,.05), rgba(2,45,77,.65)),
    linear-gradient(125deg, #0f8cad 0%, #22bfd0 48%, #073954 49%, #062d43 100%);
}

.project-brands {
  background:
    linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.25)),
    linear-gradient(115deg, #101722 0 52%, #39424f 52% 64%, #151b24 64% 100%);
}

.project-gbr {
  background:
    linear-gradient(to top, rgba(3,11,20,.72), rgba(16,36,55,.2)),
    radial-gradient(circle at 72% 18%, rgba(255,255,255,.38), transparent 20%),
    linear-gradient(135deg, #6c8ba0, #17344c 52%, #061522);
}

.project-brand {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  color: var(--white);
  text-align: center;
  text-transform: uppercase;
}

.ocean-brand strong {
  font-size: 1.15rem;
  letter-spacing: .14em;
}

.ocean-brand small {
  margin-top: 2px;
  font-size: .74rem;
  letter-spacing: .34em;
}

.ocean-brand .palm {
  color: var(--orange-light);
  font-size: 2rem;
}

.brands-brand small {
  font-size: 1rem;
  letter-spacing: .22em;
}

.brands-brand strong {
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: .95;
}

.brands-brand span {
  font-size: 1.2rem;
  letter-spacing: .18em;
}

.gbr-brand strong {
  font-size: 3rem;
  letter-spacing: -.08em;
}

.gbr-brand small {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.project-content {
  padding: 22px 22px 24px;
}

.project-content h3 {
  margin-bottom: 11px;
  font-size: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.project-content p {
  min-height: 78px;
  margin-bottom: 16px;
  color: #4d5a70;
  font-size: .83rem;
  font-size: 1rem;
}

/* Personal Projects */
.personal-projects {
  margin-top: 42px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.subsection-heading {
  max-width: 700px;
  margin-bottom: 32px;
}

.subsection-heading h3 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.subsection-heading > p:last-child {
  margin: 0;
  opacity: 0.7;
}

.personal-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.personal-project-card {
  overflow: hidden;
  border: 1px solid #e6eaf0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}

.personal-project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(10,25,52,.16);
}

.personal-project-image {
  position: relative;
  min-height: 195px;	
  aspect-ratio: 16 / 9;
  overflow: hidden;
  
  background:
    radial-gradient(circle at 18% 15%, rgba(255,255,255,.35) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 34%, rgba(255,255,255,.3) 0 3px, transparent 4px),
    linear-gradient(145deg, rgba(0,35,68,.05), rgba(2,45,77,.65)),
    linear-gradient(125deg, #0f8cad 0%, #22bfd0 48%, #073954 49%, #062d43 100%);  
}

.personal-project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  /*
  background: linear-gradient(to top, rgba(0,0,0,.44), transparent 62%);
  */
}

.personal-project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.personal-project-content {
  padding: 24px;
}

.personal-project-content h4 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.personal-project-content p {
  margin: 0 0 18px;
  opacity: 0.75;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 900px) {
  .personal-project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .personal-project-grid {
    grid-template-columns: 1fr;
  }
}


/* Services */
.services-section {
  position: relative;
  overflow: hidden;
  color: rgba(255,255,255,.76);
  background: linear-gradient(115deg, var(--navy-900), #031326);
}

.services-section h2,
.services-section h3 {
  color: var(--white);
}

.services-section .eyebrow {
  color: var(--blue-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 42px;
}

.service {
  position: relative;
  z-index: 2;
}

.service-icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin-bottom: 20px;
  place-items: center;
  border: 2px solid var(--orange);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
}

.service-icon i {
  color: var(--blue-light);
  font-size: 35px;
}

.service-icon svg {
  width: 31px;
  fill: var(--blue-light);
}

.service h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.service p {
  margin-bottom: 0;
  font-size: .84rem;
  font-size: 1rem;
}

.service-lines {
  width: 470px;
  height: 360px;
  background:
    repeating-radial-gradient(
      ellipse at center,
      transparent 0 12px,
      rgba(34, 108, 255, .5) 13px 14px,
      transparent 15px 27px
    );
}

.service-lines-left {
  left: -330px;
  bottom: -185px;
}

.service-lines-right {
  right: -280px;
  bottom: -120px;
  transform: rotate(24deg);
}

/* About & Contact */
.about-contact-section {
  background: var(--white);
}

.about-contact-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 72px;
}

.about-block {
  padding-right: 60px;
  border-right: 1px solid var(--line);
}

.about-block h2,
.contact-block h2 {
  margin-bottom: 16px;
}

.about-block p,
.contact-block p {
  max-width: 560px;
  font-size: .88rem;
  font-size: 1rem;
}

.about-block .button {
  margin-top: 8px;
}

.contact-block {
  display: grid;
  grid-template-columns: 1fr 190px;
  align-items: center;
  gap: 36px;
}

.contact-list {
  display: grid;
  gap: 15px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: .85rem;
  font-size: 1rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 13px;
}

.contact-list svg {
  width: 20px;
  fill: var(--ink);
}

.contact-list a:hover {
  color: var(--blue);
}

.contact-profile img {
  width: 172px;
  aspect-ratio: 1;
  border-radius: 8px;
  /*
  object-fit: cover;
  */
  object-position: center 18%;
  box-shadow: var(--shadow);
}

.signature {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-family: "Segoe Script", "Bradley Hand", cursive;
  font-size: 1.25rem;
  text-align: center;
  transform: rotate(-4deg);
}

/* Footer */
.site-footer {
  color: rgba(255,255,255,.66);
  background: var(--navy-950);
}

.footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
  font-size: .82rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.social-links a {
  color: rgba(255,255,255,.72);
  transition: color .2s ease, transform .2s ease;
}

.social-links a:hover {
  color: var(--orange);
  transform: translateY(-2px);
}

.social-links svg {
  width: 20px;
  fill: currentColor;
}

/* Responsive */
@media (max-width: 1040px) {
  .site-nav {
    gap: 22px;
  }

  .hero-grid {
    grid-template-columns: 1.1fr .9fr;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 6.1vw, 4rem);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-block {
    padding-right: 0;
    padding-bottom: 48px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 72px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    padding: 16px 20px 24px;
    background: rgba(3,19,38,.98);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 20px 35px rgba(0,0,0,.25);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav > a:not(.button) {
    padding: 12px 4px;
  }

  .site-nav > a:not(.button)::after {
    bottom: 5px;
    transform-origin: left;
  }

  .site-nav .button {
    margin-top: 8px;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 76px 0 20px;
  }

  .hero-portrait-wrap {
    min-height: 430px;
  }

  .hero-portrait {
    right: 50%;
    width: min(580px, 90vw);
    height: 100%;
	height: auto;
    transform: translateX(50%);
  }

  .hero-glow-one {
    right: 50%;
    transform: translateX(50%);
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-content p {
    min-height: 0;
  }

  .contact-block {
    grid-template-columns: 1fr 170px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 58px 0;
  }

  .brand-copy strong {
    font-size: .86rem;
  }

  .brand-copy small {
    font-size: .59rem;
  }

  .hero-copy {
    padding-top: 60px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 3.55rem);
  }

  .hero-intro {
    font-size: .94rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .tech-list {
    gap: 14px 17px;
    margin-top: 32px;
  }

  .hero-portrait-wrap {
    min-height: 380px;
  }

  .section-heading-row {
    align-items: start;
    flex-direction: column;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .contact-block {
    grid-template-columns: 1fr;
  }

  .contact-profile {
    width: 160px;
  }

  .contact-profile img {
    width: 160px;
  }

  .footer-inner {
    padding: 22px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* =========================================================
   GAME CONTROLS
   ========================================================= */

.button.fullscreen-toggle {
	background-color: transparent !important;
	width: 64px;
	min-width: 64px;
	height: 64px;
	display: block;
	opacity: 0;
	outline: 0;
	border: none;
	border-radius: 0 !important;
	transition: all 0.2s ease;
}

#game-container .button.fullscreen-toggle.visible {
	opacity: 1;
}

.button.maximize {
	background-image: url("assets/button-maximize.png");
}

.button.minimize {
	background-image: url("assets/button-minimize.png");
}


/* =========================================================
   GAME CONTAINER
   ========================================================= */

#game-container {
	clear: left;
	position: relative;
	left: 0;
	top: 0;

	width: 800px;
	max-width: 100%;

	height: 0;
	padding-bottom: 99.9%;

	margin: 0;

	overflow: hidden;
}


/* =========================================================
   GAME ALIGNMENT
   ========================================================= */

#game-container.align-left {
	float: left;
	display: inline-block;
}

#game-container.align-right {
	float: right;
	display: inline-block;
}

#game-container.align-center {
	float: none;
	margin: 0 auto 1.5em;
}


/* =========================================================
   GAME WRAPPER
   ========================================================= */

.game-wrapper {
	display: inline-block;
	position: relative;
	width: auto;
	vertical-align: top;
}


/* =========================================================
   FULLSCREEN CONTROL
   ========================================================= */

.fullscreen-toggler-container {
	position: absolute;
	right: 0;
	z-index: 10;
}


/* =========================================================
   CANVAS
   ========================================================= */

#canvas {
	display: block;
	margin: 0 auto;
	max-width: 100%;
}


/* =========================================================
   FULLSCREEN MODE
   ========================================================= */

#game-container.fullscreen {
	width: 100% !important;
	height: 100% !important;
	top: 0;
	margin: 0;

	position: absolute;
	display: block;
	text-align: center;

	z-index: 99999;
}