:root {
  --paper: #f6f6f3;
  --ink: #242c29;
  --muted: #626b65;
  --line: #d8ddd7;
  --accent: #426653;
  --sans: "DM Sans", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
::selection {
  background: #d5e1d6;
}
.wrap {
  width: calc(100% - 112px);
  max-width: 1180px;
  margin: auto;
}
.header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -2px;
}
.brand span {
  color: var(--accent);
}
.header nav {
  display: flex;
  gap: 32px;
  font-size: 13px;
}
.header nav a:hover,
.text-link:hover {
  color: var(--accent);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}
.header nav.languages {
  gap: 3px;
  font-size: 11px;
}
.languages a {
  padding: 8px;
  border-radius: 3px;
  color: var(--muted);
}
.languages a[aria-current="page"] {
  color: var(--ink);
  background: #e7ebe4;
  font-weight: 600;
}
.hero {
  padding-top: 48px;
  padding-bottom: 32px;
}
.eyebrow,
.meta,
.date,
.timeline-type,
.art-caption,
.portrait-top,
.hero-bottom,
.coming-label,
.project-index {
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 500;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
  color: var(--muted);
}
.dot,
.current-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 70px;
  align-items: center;
}
h1 {
  font-size: clamp(54px, 6.4vw, 88px);
  line-height: 1.08;
  letter-spacing: -4px;
  font-weight: 500;
  margin: 0;
}
.name-dot,
.orange {
  color: var(--accent);
}
.intro {
  font-size: 17px;
  line-height: 1.8;
  max-width: 475px;
  color: var(--muted);
  margin: 28px 0 30px;
}
.button {
  display: inline-flex;
  gap: 40px;
  align-items: center;
  background: var(--ink);
  color: white;
  padding: 16px 21px;
  border-radius: 3px;
  font-size: 13px;
  transition: background 0.2s;
}
.button:hover {
  background: var(--accent);
}
.text-link {
  font-size: 13px;
  margin-left: 26px;
}
.portrait-area {
  width: 100%;
  max-width: 370px;
  justify-self: end;
}
.portrait-top {
  display: flex;
  justify-content: space-between;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 9px;
}
.portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: block;
  padding: 0;
  border: 0;
  background: #e7e9e5;
  overflow: hidden;
  cursor: default;
  touch-action: auto;
  border-radius: 2px;
}

.portrait img {
  left: -43.3908%;
  top: 0;
  width: 183.908%;
  height: 103.448%;
  position: absolute;
  display: block;
  max-width: none;
  user-select: none;
  pointer-events: none;
}
.portrait-tag {
  position: absolute;
  bottom: 16px;
  left: 20px;
  color: #58645b;
  font-size: 8px;
  letter-spacing: 1.4px;
}
.hero-bottom {
  margin-top: 62px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 21px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1px;
}
.hero-bottom > span:last-child {
  font-size: 11px;
  letter-spacing: 0;
}
.hero-bottom span span {
  margin-left: 25px;
}
.section {
  padding: 86px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 38px;
  gap: 35px;
}
h2 {
  font-size: clamp(34px, 3.8vw, 50px);
  font-weight: 500;
  line-height: 1.17;
  letter-spacing: -1.8px;
  margin: 0;
}
.section-head > p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 4px;
}
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.project {
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}
.project-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.project-heading img {
  object-fit: contain;
  flex-shrink: 0;
}
h3 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin: 8px 0;
}
.project-heading h3 {
  margin: 0;
}
.meta {
  color: var(--muted);
  font-size: 9px;
}
.project > p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 490px;
  margin: 20px 0 0;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--accent);
}
.project-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.coming {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 24px;
  padding: 27px 0;
  margin-top: 38px;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.coming-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
}
.coming > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.coming strong {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.3px;
}
.coming > span:nth-child(2) > span:last-child {
  font-size: 12px;
  color: var(--muted);
}
.coming-label {
  margin-left: auto;
  font-size: 9px;
  white-space: nowrap;
}
.coming-label span {
  margin-left: 20px;
}
.secret-message {
  font-size: 12px;
  color: var(--muted);
  min-height: 16px;
  margin-bottom: -16px;
}
.about {
  background: #ebeee8;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 95px;
}
.about h2 {
  font-size: 43px;
}
.about-copy {
  margin-top: 28px;
}
.about-copy p {
  font-size: 14px;
  line-height: 1.9;
  color: #586259;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}
.skill-tags span {
  padding: 7px 11px;
  border: 1px solid #cdd5ca;
  border-radius: 3px;
  font-size: 10px;
}
.approach-list {
  padding-top: 40px;
}
.approach-list article {
  padding: 24px 0;
  border-bottom: 1px solid #cdd5ca;
}
.approach-list article:first-child {
  padding-top: 0;
}
.approach-list article > span {
  font-size: 10px;
}
.approach-list h3 {
  font-size: 21px;
  margin-top: 13px;
}
.approach-list p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 320px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 210px 1fr 110px;
  gap: 25px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.date {
  padding-top: 7px;
  font-size: 10px;
  letter-spacing: 0.8px;
}
.current-dot {
  width: 5px;
  height: 5px;
  margin-left: 8px;
}
.timeline h3 {
  margin: 0;
  font-size: 22px;
}
.timeline p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 490px;
  margin: 9px 0 0;
}
.timeline .company {
  font-size: 14px;
  color: var(--ink);
}
.timeline-type {
  text-align: right;
  padding-top: 8px;
  color: var(--muted);
  font-size: 9px;
}
.career {
  padding-bottom: 48px;
}
.contact {
  background: #28362f;
  color: #f1f3ee;
}
.companies {
  padding: 18px 0 65px;
}
.companies h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
}
.company-logos {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 32px;
}
.company-logos li {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.company-logos img {
  max-width: 100%;
  object-fit: contain;
}
.contact .eyebrow,
.contact-bottom p {
  color: #b5c2b9;
}
.contact h2 {
  font-size: clamp(45px, 5.5vw, 72px);
  letter-spacing: -2.5px;
}
.contact .name-dot {
  color: #a4b7a5;
}
.contact-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-top: 38px;
}
.contact-bottom p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}
.contact-bottom a {
  font-size: 22px;
  letter-spacing: -0.4px;
  border-bottom: 1px solid #829288;
  padding-bottom: 10px;
}
.contact-bottom a > span {
  margin-left: 25px;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 90px;
  font-size: 10px;
  color: var(--muted);
}
footer button {
  border: 0;
  background: transparent;
  font-size: 10px;
  padding: 15px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: white;
  padding: 14px 22px;
  border-radius: 4px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 5;
  max-width: 90vw;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 14px;
  background: var(--ink);
  color: white;
  z-index: 10;
}
.skip:focus {
  top: 15px;
}
.no-play * {
  scroll-behavior: auto !important;
  transition: none !important;
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .hero-grid {
    gap: 38px;
  }
  h1 {
    font-size: 64px;
    letter-spacing: -3px;
  }
  .intro {
    font-size: 15px;
  }
  .text-link {
    margin-left: 18px;
    font-size: 12px;
  }
  .button {
    gap: 25px;
  }
  .about-grid {
    gap: 45px;
  }
  .about h2 {
    font-size: 36px;
  }
  .timeline li {
    grid-template-columns: 165px 1fr 95px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .header {
    height: 78px;
  }
  .brand {
    font-size: 29px;
  }
  .header nav {
    font-size: 11px;
    gap: 18px;
  }
  .header-actions {
    gap: 0;
  }
  .header nav.languages {
    gap: 0;
    font-size: 10px;
  }
  .languages a {
    padding: 8px 6px;
  }
  .hero {
    padding-top: 32px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.1px;
    margin-bottom: 24px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  h1 {
    font-size: clamp(46px, 12vw, 70px);
    letter-spacing: -2.3px;
  }
  .intro {
    font-size: 14px;
    margin-top: 23px;
  }
  .button {
    font-size: 12px;
    padding: 15px 18px;
  }
  .text-link {
    margin-left: 20px;
    font-size: 12px;
  }
  .portrait-area {
    max-width: 330px;
    justify-self: start;
    width: 100%;
  }
  .hero-bottom {
    margin-top: 35px;
    padding: 18px 0;
    display: block;
  }
  .hero-bottom > span:first-child {
    font-size: 8px;
    letter-spacing: 0.7px;
  }
  .hero-bottom > span:last-child {
    display: block;
    margin-top: 10px;
    font-size: 10px;
  }
  .hero-bottom span span {
    display: none;
  }
  .section {
    padding: 58px 0;
  }
  .section-head {
    display: block;
    margin-bottom: 28px;
  }
  .section-head > p {
    font-size: 12px;
    margin-top: 20px;
  }
  h2 {
    font-size: 36px;
    letter-spacing: -1.3px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .project > p {
    font-size: 13px;
  }
  .coming {
    gap: 16px;
    flex-wrap: wrap;
  }
  .coming strong {
    font-size: 16px;
  }
  .coming > span:nth-child(2) > span:last-child {
    font-size: 10px;
  }
  .coming-label {
    margin-left: 54px;
    font-size: 8px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about h2 {
    font-size: 34px;
  }
  .approach-list {
    padding-top: 0;
  }
  .timeline li {
    grid-template-columns: 1fr;
    gap: 14px;
    position: relative;
    padding: 25px 0;
  }
  .timeline h3 {
    font-size: 21px;
  }
  .timeline-type {
    position: absolute;
    top: 25px;
    right: 0;
  }
  .timeline p {
    font-size: 12px;
  }
  .career {
    padding-bottom: 30px;
  }
  .contact h2 {
    font-size: 44px;
    letter-spacing: -1.5px;
  }
  .companies {
    padding-bottom: 45px;
  }
  .company-logos {
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
  .contact-bottom {
    display: block;
    margin-top: 28px;
  }
  .contact-bottom p {
    font-size: 13px;
  }
  .contact-bottom a {
    display: inline-block;
    font-size: clamp(15px, 4.4vw, 21px);
    margin-top: 25px;
  }
  .contact-bottom a > span {
    margin-left: 12px;
  }
  footer {
    padding: 25px 0;
    gap: 14px;
    flex-wrap: wrap;
  }
  footer > span {
    width: 100%;
  }
  footer button {
    padding: 5px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Keep the introductory actions together while allowing narrow screens to wrap. */
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 26px;
}
.hero-actions .text-link {
  margin-left: 0;
}
.projects + .career {
  padding-top: 32px;
}
@media (max-width: 700px) {
  .hero {
    padding-top: 30px;
    padding-bottom: 28px;
  }
  .hero-grid {
    gap: 30px;
  }
  .hero-actions {
    gap: 14px 20px;
  }
  .hero-bottom {
    margin-top: 28px;
  }
  .portrait-area {
    max-width: 350px;
  }
  .projects + .career {
    padding-top: 16px;
  }
}

/* A small circular opening reveals the playful photo; the professional stays visible. */
.portrait-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.portrait-secret {
  position: absolute;
  left: 0;
  top: 0;
  width: 168px;
  height: 168px;
  overflow: hidden;
  border-radius: 50%;
  /* Static clip; only transforms change while the pointer moves. */
  clip-path: circle(50%);
  visibility: hidden;
  pointer-events: none;
  transform-origin: 0 0;
  will-change: transform;
}
.portrait-secret-content {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.portrait.has-secret {
  touch-action: none;
}
.no-play .portrait.has-secret {
  touch-action: auto;
}
.portrait:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

/* Soft aperture edge, a recessed rim and a short, decorative motion echo. */
.portal-rim,
.portal-trail {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform-origin: 0 0;
}
.portal-rim,
.portal-trail {
  width: 168px;
  height: 168px;
  will-change: transform, opacity;
}
.portal-rim {
  box-sizing: border-box;
  border: 1px solid #ffffff8c;
  box-shadow:
    inset 0 2px 8px #142c3c48,
    0 0 1px 1px #ffffff22,
    0 5px 16px #12253520;
  background: linear-gradient(
    145deg,
    #ffffff12,
    transparent 35%,
    transparent 80%,
    #ffffff0a
  );
}
.portal-trail {
  border: 1px solid #ffffff8c;
  box-shadow:
    0 0 10px #ffffff50,
    inset 0 0 10px #ffffff20;

}
.portal-hint {
  position: absolute;
  left: 48%;
  top: 35%;
  width: 28px;
  height: 28px;
  border: 1px solid #ffffffb3;
  border-radius: 50%;
  box-shadow: 0 0 14px #ffffff66;
  pointer-events: none;
  animation: portal-invitation 1.4s 0.5s both ease-out;
}
@keyframes portal-invitation {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  30% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.8);
  }
}
