:root {
  color-scheme: light;
  --bg: #f9fbff;
  --surface: #fff;
  --text: #131e3a;
  --muted: #46536b;
  --accent: #2849cf;
  --accent-hover: #1834a5;
  --tint-blue: #eef3ff;
  --line: #d9e1ef;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

:is(section, article, main)[id] { scroll-margin-top: 1.25rem; }

.wrap {
  width: min(100% - 5rem, 76rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 3;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: var(--accent);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.header-inner a, .button { text-decoration: none; }
.wordmark {
  justify-self: start;
  font-size: 1.5rem;
  font-weight: 760;
  letter-spacing: -0.055em;
}

.wordmark span, .accent { color: var(--accent); }

nav { display: flex; gap: clamp(1.25rem, 3.2vw, 3.25rem); }
nav a {
  padding-block: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

nav a:hover, .footer-inner a:hover { color: var(--accent); }

.header-cv {
  justify-self: end;
  padding: 0.46rem 1rem 0.54rem;
  border: 1px solid #b7c8f7;
  border-radius: 0.45rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.header-cv:hover { border-color: var(--accent); }

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 80% 38%, #bcd1ff 0%, transparent 57%),
    linear-gradient(115deg, #fbfdff, #eef4ff 56%, #dce9ff);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: center;
  gap: 1rem;
  min-height: 37.25rem;
  padding-block: 3.25rem;
}

.hero-copy { position: relative; z-index: 1; }

.eyebrow, .project-meta, .period, .step {
  color: var(--accent);
  font-size: 0.91rem;
  font-weight: 720;
  letter-spacing: 0.055em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.role-mark {
  width: 0.54rem;
  height: 0.54rem;
  background: var(--accent);
  transform: rotate(45deg);
}

.hero h1 {
  margin: 0.95rem 0 1.3rem;
  font-size: clamp(4rem, 7.25vw, 7rem);
  font-weight: 780;
  line-height: 1.025;
  letter-spacing: -0.065em;
}

.hero h1 span { color: var(--accent); }
.hero-description {
  max-width: 30rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero .actions { margin-top: 1.85rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.67rem 1.22rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font-weight: 720;
}

.primary { background: var(--accent); color: #fff; }
.primary:hover { background: var(--accent-hover); }
.secondary { border-color: #879ccd; background: #ffffff9c; color: var(--text); }
.secondary:hover { border-color: var(--accent); background: #fff; }

.hero-art {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
}

.hero-screens {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 39rem;
  aspect-ratio: 1.27;
}

.hero-screens::before {
  position: absolute;
  z-index: -1;
  inset: 2% -1% 0;
  border-radius: 50%;
  background:
    repeating-radial-gradient(ellipse at center, transparent 0 2.75rem, #2849cf22 2.8rem 2.85rem),
    radial-gradient(ellipse at center, #7aa6f87d, #8aaff929 50%, transparent 73%);
  mask-image: radial-gradient(ellipse at center, black 41%, transparent 75%);
  content: "";
}

.hero-screens::after {
  position: absolute;
  z-index: -1;
  inset: 0 7%;
  background:
    linear-gradient(90deg, #3d65d638 1px, transparent 1px),
    linear-gradient(#3d65d638 1px, transparent 1px);
  background-size: 1.8rem 1.8rem;
  mask-image: radial-gradient(ellipse, black, transparent 68%);
  content: "";
}

.screen {
  position: absolute;
  width: 29%;
  height: auto;
  border: clamp(3px, 0.5vw, 7px) solid #182445;
  border-radius: clamp(0.6rem, 2vw, 1.45rem);
  background: #182445;
  box-shadow: 0 0 0 1px #fff9, 0 1.35rem 2rem #193c7252;
}

.screen-left { left: 14%; top: 18%; transform: rotate(-17deg); }
.screen-right { right: 12%; top: 16%; transform: rotate(16deg); }
.screen-main { width: 32.5%; top: 6%; transform: rotate(-3deg); }
.hero-art figcaption { margin-top: -0.2rem; color: var(--muted); font-size: 0.82rem; }

.section { padding-block: 5.5rem; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: clamp(2.2rem, 5.15vw, 3.9rem);
  font-weight: 790;
  line-height: 1.1;
  letter-spacing: -0.056em;
}

.section-heading p, .contact-panel p { margin-top: 0.6rem; color: var(--muted); }
.project-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.15rem; }
.text-link {
  color: var(--accent);
  font-weight: 650;
  text-underline-offset: 0.23em;
}
.text-link:hover { color: var(--accent-hover); }
.store-link { display: inline-block; margin-top: 0.53rem; font-size: 0.93rem; }

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.4rem;
}

.project {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: var(--surface);
}

.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: stretch;
}

.project-art {
  --art-height: clamp(15rem, 26vw, 19rem);
  --art-padding: clamp(0.85rem, 2.5vw, 1.6rem);
  --wash: #d7edff;
  --tint: #9cbaf8;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  place-items: center;
  gap: clamp(0.625rem, 2vw, 1.2rem);
  min-height: var(--art-height);
  padding: var(--art-padding) max(var(--art-padding), 19%);
  overflow: hidden;
  background: radial-gradient(ellipse at 52% 75%, var(--wash), var(--tint));
}

.featured .project-art { --art-height: 24rem; }
.garden { --wash: #f4f2bb; --tint: #a9d4a0; }
.word { --wash: #f4d8fd; --tint: #bdacef; }
.cat { --wash: #fae1f4; --tint: #e3ade5; }
.cards { --wash: #ddf5bd; --tint: #96d6c0; }

.project-art::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(120deg, transparent 0 3.85rem, #fff2 3.85rem 3.9rem);
  content: "";
}

.project-art img {
  width: auto;
  height: auto;
  max-height: calc(var(--art-height) - 2 * var(--art-padding));
  border: 4px solid #182445;
  border-radius: 0.85rem;
  box-shadow: 0 0 0 1px #ffffffa6, 0 1.1rem 1.4rem #193c7252;
}

.project-copy { padding: 1.4rem clamp(1.25rem, 3vw, 2.1rem) 1.7rem; }
.featured .project-copy { align-self: center; padding: clamp(1.25rem, 4vw, 3.5rem); }
.project-meta { margin-bottom: 0.35rem; }

.project h3 {
  margin-bottom: 0.52rem;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  line-height: 1.17;
  letter-spacing: -0.04em;
}

.featured h3 { font-size: clamp(1.85rem, 4.4vw, 3.35rem); }
.project-copy > p:not(.project-meta), .project-details p { color: var(--muted); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.2rem 0.55rem 0.3rem;
  border: 1px solid #cedcfb;
  border-radius: 0.35rem;
  background: var(--tint-blue);
  color: #23418f;
  font-size: 0.875rem;
}

details { margin-top: 1.15rem; border-top: 1px solid var(--line); }
summary {
  padding-block: 0.78rem 0.12rem;
  color: var(--accent);
  font-weight: 670;
  cursor: pointer;
}

summary:hover { text-decoration: underline; text-underline-offset: 0.2em; }
summary:focus-visible { outline-offset: 1px; }
.project-details { display: grid; gap: 0.55rem; margin-top: 0.55rem; }

.experience-section {
  border-block: 1px solid var(--line);
  background: var(--tint-blue);
}

.experience-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(2rem, 7vw, 7rem);
}

.experience-intro { display: block; margin: 0; }
.experience-intro > p { max-width: 28rem; }

.profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.7rem;
}

.profile img {
  flex: 0 0 auto;
  width: 4.75rem;
  height: 4.75rem;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}

.profile span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline {
  margin: 0;
  padding: 0 0 0 1.65rem;
  border-left: 1px solid #a9bbe9;
  list-style: none;
}

.timeline li { position: relative; padding-bottom: 1.5rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  position: absolute;
  top: 0.42rem;
  left: -1.93rem;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid var(--accent);
  background: var(--tint-blue);
  transform: rotate(45deg);
  content: "";
}

.timeline h3 { margin: 0.2rem 0; font-size: 1.23rem; }
.timeline h3 span { color: #324577; font-weight: 580; }
.timeline p:last-child, .process p { color: var(--muted); }

.process-section { padding-bottom: 0; }
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface);
  list-style: none;
}

.process li { padding: 1.2rem 1.25rem 1.4rem; }
.process li + li { border-left: 1px solid var(--line); }
.step { display: block; margin-bottom: 0.35rem; color: var(--accent); }
.process h3 { margin-bottom: 0.35rem; font-size: 1.1rem; }
.tools { margin-top: 1.3rem; color: var(--muted); }
.tools strong { margin-right: 0.5rem; color: var(--text); }

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.6rem, 5vw, 4rem);
  border: 1px solid #304fcf;
  border-radius: 0.95rem;
  background:
    radial-gradient(ellipse at 90% 10%, #3555dd, transparent 75%),
    #152c92;
  color: #fff;
}

.contact-panel h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.contact-panel .accent { color: #c2d5ff; }
.contact-panel p { color: #eef3ff; }
.contact-panel .actions { flex: 0 0 auto; }
.contact-panel .primary { background: #fff; color: var(--accent-hover); }
.contact-panel .primary:hover { background: #e2eaff; }
.contact-panel .secondary { border-color: #c2d5ff; background: transparent; color: #fff; }
.contact-panel .secondary:hover { background: #ffffff24; }
.contact-panel :focus-visible { outline-color: white; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner a { text-underline-offset: 0.2em; }

@media (max-width: 66rem) {
  .hero-inner { min-height: 32rem; }
  .hero h1 { font-size: clamp(3.2rem, 7.5vw, 5.5rem); }
  .section { padding-top: 4.5rem; }
  .section:not(.process-section) { padding-bottom: 4.5rem; }
}

@media (max-width: 49rem) {
  .wrap { width: calc(100% - 3rem); }
  .hero-inner { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 3rem 1.6rem; }
  .hero h1 { font-size: clamp(3.5rem, 12.5vw, 6rem); }
  .hero-screens { max-width: 34rem; }
  .featured { grid-template-columns: 1fr; }
  .featured .project-art { --art-height: 19rem; }
  .experience-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process li:nth-child(odd) { border-left: 0; }
  .process li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .contact-panel { align-items: start; flex-direction: column; gap: 1.25rem; }
}

@media (max-width: 34rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { grid-template-columns: 1fr 1fr; gap: 0; padding-top: 0.5rem; }
  nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: 0.8rem; }
  nav a { font-size: 0.88rem; }
  .header-cv { padding: 0.36rem 0.75rem 0.42rem; }
  .hero h1 { font-size: clamp(2.75rem, 12.5vw, 4.2rem); }
  .hero-inner { padding-top: 2.3rem; }
  .hero .actions { margin-top: 1.3rem; }
  .hero-art figcaption { font-size: 0.76rem; }
  .section { padding-top: 3.25rem; }
  .section:not(.process-section) { padding-bottom: 3.25rem; }
  .section-heading { align-items: start; flex-direction: column; }
  .projects { grid-template-columns: 1fr; }
  .project-art, .featured .project-art { --art-height: 14.5rem; }
  .process { grid-template-columns: 1fr; }
  .process li + li { border-left: 0; border-top: 1px solid var(--line); }
}
