:root {
  --green: #063f2b;
  --green-2: #0a4f32;
  --green-3: #143f22;
  --gold: #b98525;
  --gold-2: #d5ac55;
  --ink: #10251d;
  --muted: #4f5b52;
  --paper: #fbfaf5;
  --line: #d7bd82;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #d9ded4;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

.portfolio {
  width: min(100%, 864px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 207px 1fr;
  align-items: stretch;
  background: radial-gradient(circle at 72% 15%, #fff 0 22%, var(--paper) 48%, #f8f4e9 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
  position: relative;
  overflow: hidden;
}

.sidebar {
  grid-row: 1;
  min-height: 100%;
  padding: 28px 24px 0;
  color: #fff8df;
  background:
    radial-gradient(circle at 5% 15%, rgba(22, 110, 72, .58), transparent 28%),
    radial-gradient(circle at 90% 80%, rgba(191, 134, 37, .16), transparent 26%),
    linear-gradient(165deg, #002f24 0%, #003d2c 48%, #052d23 100%);
}

.profile {
  text-align: center;
}

.avatar {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

.profile h1 {
  margin: 12px 0 4px;
  font-size: 26px;
  line-height: 1;
  letter-spacing: .5px;
  color: #fff8dc;
}

.profile h1 span {
  font-size: 15px;
  font-weight: 400;
}

.profile p {
  margin: 0;
  color: #f2b745;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.gold-rule {
  width: 76px;
  height: 2px;
  margin: 12px auto;
  background: var(--gold);
}

.profile .script,
.script {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  color: #fff4cd;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.38;
  text-align: left;
  margin-left: 12px;
}

.flag-line {
  height: 36px;
  position: relative;
  margin: 4px 0 18px;
}

.flag-line::before {
  content: "";
  position: absolute;
  left: 65px;
  bottom: 8px;
  width: 84px;
  height: 1px;
  background: var(--gold);
  transform: rotate(-8deg);
}

.flag-line span {
  position: absolute;
  right: 6px;
  bottom: 4px;
  width: 28px;
  height: 18px;
  border: 2px solid #fff8df;
  border-top: 0;
  border-radius: 50%;
}

.flag-line span::before {
  content: "";
  position: absolute;
  left: 11px;
  bottom: 15px;
  width: 1px;
  height: 35px;
  background: #fff8df;
}

.flag-line span::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 39px;
  width: 18px;
  height: 12px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 35%, 0 70%);
}

.side-section {
  padding: 18px 0 16px;
  border-top: 1px solid rgba(213, 172, 85, .65);
}

.side-section h2 {
  margin: 0 0 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #f7e7b8;
}

.side-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li,
.check-list li,
.certs p {
  margin: 0 0 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.25;
}

.contact-list span {
  display: inline-grid;
  place-items: center;
  width: 16px;
  margin-right: 7px;
  color: #f1b63f;
  font-weight: 700;
}

.contact-list a {
  color: inherit;
  text-decoration: none;
}

.check-list li {
  position: relative;
  padding-left: 19px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e4a52d;
  color: var(--green);
  text-align: center;
  line-height: 12px;
  font-size: 9px;
  font-weight: 900;
}

.side-photo {
  width: calc(100% + 48px);
  margin: 30px -24px 0;
  display: block;
}

.content {
  padding: 0 17px 0 18px;
}

.hero {
  position: relative;
  min-height: 306px;
  margin: 0 -17px 0 -18px;
  padding: 56px 0 0 30px;
  background:
    linear-gradient(90deg, rgba(251, 250, 245, 1) 0%, rgba(251, 250, 245, .98) 34%, rgba(251, 250, 245, .72) 50%, rgba(251, 250, 245, .1) 70%),
    url("assets/hero-ai.png") right top / auto 318px no-repeat;
}

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

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--paper) 0 64%, rgba(251, 250, 245, .82) 70%, rgba(251, 250, 245, 0) 82%);
  pointer-events: none;
}

.hero-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  margin-bottom: 10px;
}

.hero-mark span {
  width: 106px;
  height: 2px;
  background: var(--gold);
}

.hero-mark b {
  font-size: 22px;
}

.hero h2 {
  margin: 0;
  color: #06351f;
  font-size: 49px;
  line-height: .9;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.hero h3 {
  margin: 8px 0 18px;
  color: #aa751c;
  font-size: 18px;
  position: relative;
  z-index: 1;
}

.hero p {
  margin: 0;
  max-width: 370px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.75;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: center;
  margin: 0 0 25px;
  min-height: 104px;
  color: #fff8df;
  background: linear-gradient(135deg, #0d4e2c, #082e1f);
  border-radius: 5px;
  box-shadow: 0 10px 22px rgba(22, 57, 35, .22);
}

.stats article {
  min-height: 74px;
  padding: 4px 9px;
  display: grid;
  place-items: center;
  text-align: center;
  border-right: 1px solid rgba(255, 248, 223, .3);
}

.stats article:last-child {
  border-right: 0;
}

.stats b {
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
}

.stats strong {
  display: block;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.stats span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 294px;
  gap: 16px;
}

.panel h2,
.projects h2,
.websites h2,
.bottom-grid h2 {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #1d3928;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-size: 14px;
}

.panel h2 span,
.projects h2 span,
.websites h2 span,
.bottom-grid h2 span {
  color: var(--gold);
  font-size: 17px;
}

.experience {
  padding-right: 13px;
}

.timeline {
  position: relative;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline article {
  position: relative;
  margin: 0 0 20px;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.timeline time {
  float: right;
  margin-left: 12px;
  color: #1e2a22;
  font-size: 9px;
  font-weight: 700;
}

.timeline h3 {
  margin: 0 0 6px;
  font-size: 11px;
}

.timeline h3 span {
  font-weight: 700;
}

.timeline p,
.golf p,
.projects p,
.bottom-grid p {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.5px;
  line-height: 1.55;
}

.download {
  width: 220px;
  height: 22px;
  margin: 8px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: #2d2d22;
  text-decoration: none;
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-size: 11px;
}

.golf {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.score-row {
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.score-box {
  min-height: 74px;
  padding: 12px 4px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 251, 241, .76);
  font-size: 11px;
}

.score-box strong {
  display: block;
  margin: 3px 0;
  font-size: 20px;
  color: #153a26;
}

.score-box small {
  font-size: 9px;
}

.gauge {
  width: 82px;
  height: 82px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--paper) 0 50%, transparent 51%),
    conic-gradient(var(--green) 0 72%, var(--gold) 72% 88%, #e8e1cd 88% 100%);
}

.gauge span {
  font-size: 11px;
  text-align: center;
}

.gauge b {
  font-size: 16px;
}

.golf h3 {
  margin: 0 0 8px;
  font-size: 11px;
}

.chart {
  width: 100%;
  height: 140px;
  margin-bottom: 13px;
}

.chart line {
  stroke: #d8cda8;
  stroke-width: 1;
}

.chart .goal {
  stroke: var(--gold);
  stroke-dasharray: 6 4;
}

.chart polyline {
  fill: none;
  stroke: #183e2b;
  stroke-width: 2;
}

.chart text {
  font-size: 10px;
  fill: #8c5f18;
}

.workflow-thumb {
  width: 100%;
  height: 140px;
  margin-bottom: 13px;
  display: block;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(215, 189, 130, .8);
  border-radius: 5px;
  background: #fffdf7;
}

.habit-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
  margin: 0 0 24px;
}

.habit-row b {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border: 1px solid #8b8f43;
  border-radius: 50%;
  color: var(--green);
  font-size: 24px;
  background: #f7f5e9;
}

.habit-row strong,
.habit-row span {
  display: block;
  font-size: 12px;
}

.habit-row span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
}

blockquote {
  margin: 0 0 0 12px;
  color: #20442f;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 22px;
  line-height: 1.25;
}

.projects {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

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

.project-grid article,
.website-grid article {
  position: relative;
  overflow: hidden;
  border: 1px solid #dbc28d;
  border-radius: 5px;
  background: rgba(255, 255, 250, .84);
}

.project-grid img {
  width: 100%;
  height: 106px;
  object-fit: cover;
  display: block;
}

.project-grid h3 {
  margin: 11px 8px 8px;
  font-size: 12px;
}

.project-grid p {
  margin: 0 8px 10px;
}

.project-grid article > span {
  display: inline-block;
  margin: 0 0 12px 8px;
  padding: 6px 9px;
  border: 1px solid #e4d5b4;
  border-radius: 4px;
  color: #72624a;
  font-size: 9.5px;
}

.travel-card {
  min-height: 240px;
  color: #fff;
}

.travel-card img {
  height: 100%;
  position: absolute;
  inset: 0;
}

.travel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 31, 20, .28), rgba(0, 31, 20, .78));
}

.travel-card div {
  position: absolute;
  inset: auto 16px 28px;
  z-index: 1;
}

.travel-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 400;
}

.websites {
  grid-column: 1 / 3;
  margin: 0;
  padding: 12px 26px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.websites h2 {
  justify-content: center;
  margin-bottom: 10px;
}

.website-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.website-grid article {
  min-height: 246px;
  padding: 18px 18px 18px;
  box-shadow: 0 8px 20px rgba(89, 68, 31, .1);
}

.website-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 86% 62%, rgba(206, 183, 116, .45), transparent 35%);
}

.site-copy {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 7px;
}

.site-logo {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: #064327;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.site-copy h3 {
  margin: 0;
  color: #143d29;
  font-size: 28px;
  line-height: 1;
}

.site-copy p {
  margin: 5px 0 0;
  color: #b36e18;
  font-size: 14px;
}

.jp,
.website-grid ul,
.website-grid a {
  position: relative;
  z-index: 1;
}

.jp {
  width: 60%;
  margin: 0 0 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.5px;
  line-height: 1.55;
}

.website-grid ul {
  width: 54%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.website-grid li {
  margin: 0 0 8px;
  padding-left: 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.5px;
  position: relative;
}

.website-grid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0b5032;
  font-weight: 900;
}

.website-grid a {
  display: inline-flex;
  min-width: 145px;
  height: 32px;
  margin-top: 12px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #0a4b2e;
  color: #fff;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
}

.website-grid img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  height: 150px;
  object-fit: cover;
  object-position: top left;
  border-left: 1px solid rgba(215, 189, 130, .55);
  border-top: 1px solid rgba(215, 189, 130, .55);
}

.bottom-grid {
  grid-column: 1 / 3;
  padding: 18px 18px 20px;
}

.bottom-grid h2 {
  margin-bottom: 10px;
  font-size: 13px;
}

.connect p {
  width: 210px;
  margin: 0 auto 18px;
}

.icon-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: center;
}

.icon-row span {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.icon-row b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #8b8f43;
  border-radius: 50%;
  color: var(--green);
  background: #fbfaf0;
  font-size: 18px;
  font-weight: 400;
}

.icon-row small {
  color: #26382b;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
}

.event {
  display: grid;
  grid-template-columns: 38px 1fr 80px;
  gap: 8px;
  margin-bottom: 8px;
}

.event time {
  border: 1px solid var(--line);
  text-align: center;
  font-size: 18px;
  line-height: 1.05;
}

.event time b {
  display: block;
  background: #0c4b2e;
  color: #fff9df;
  font-size: 10px;
  padding: 3px 0;
}

.event time small {
  font-size: 9px;
}

.event strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
}

.event img,
.gallery img {
  width: 100%;
  height: 54px;
  object-fit: cover;
  border-radius: 3px;
}

.demo-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 74px;
  margin-bottom: 10px;
  padding: 8px;
  border: 1px solid rgba(215, 189, 130, .75);
  border-radius: 5px;
  background: rgba(255, 252, 244, .8);
  color: var(--ink);
  text-decoration: none;
}

.demo-card img {
  width: 88px;
  height: 58px;
  object-fit: cover;
  object-position: top left;
  border-radius: 3px;
}

.demo-card span {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.5px;
  line-height: 1.4;
}

.demo-card strong {
  display: block;
  margin-bottom: 3px;
  color: #123e29;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}

.slides {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.slide {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(215, 189, 130, .75);
  border-radius: 5px;
  color: #fff;
  text-decoration: none;
  background: #153d2a;
}

.slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top left;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 34, 22, .76));
}

.slide strong {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  z-index: 1;
  font-size: 12px;
  line-height: 1.1;
}

.gallery p {
  text-align: center;
}

.quote {
  grid-column: 1 / 3;
  min-height: 56px;
  display: grid;
  place-items: center;
  margin-top: 8px;
  color: #fff8dc;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0, 47, 31, .72), rgba(0, 47, 31, .9)),
    url("assets/footer-ai.png") center / cover no-repeat;
}

.quote p {
  margin: 0;
  font-size: 12px;
  line-height: 1.25;
}

@media (max-width: 760px) {
  body {
    background: var(--paper);
  }

  .portfolio {
    width: 100%;
    grid-template-columns: 1fr;
    box-shadow: none;
  }

  .sidebar {
    grid-row: auto;
    min-height: auto;
    padding: 24px 22px 10px;
  }

  .side-photo {
    display: none;
  }

  .content {
    padding: 0 14px;
  }

  .hero {
    margin: 0 -14px;
    min-height: 360px;
    padding: 34px 20px 150px;
    background:
      linear-gradient(180deg, rgba(251, 250, 245, 1) 0%, rgba(251, 250, 245, .9) 44%, rgba(251, 250, 245, .28) 100%),
      url("assets/hero-ai.png") center bottom / cover no-repeat;
  }

  .hero::before {
    display: none;
  }

  .hero-copy {
    width: min(100%, 420px);
  }

  .hero h2 {
    font-size: clamp(38px, 12vw, 48px);
  }

  .main-grid,
  .project-grid,
  .website-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .websites,
  .bottom-grid,
  .quote {
    grid-column: auto;
  }

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

  .stats article:nth-child(2n) {
    border-right: 0;
  }

  .stats article:last-child {
    grid-column: 1 / -1;
  }

  .stats article {
    border-bottom: 1px solid rgba(255, 248, 223, .3);
  }

  .golf {
    padding-left: 0;
    border-left: 0;
  }

  .project-grid {
    gap: 14px;
  }

  .project-grid img {
    height: 150px;
  }

  .travel-card {
    min-height: 240px;
  }

  .websites {
    margin-left: 0;
    margin-right: 0;
    padding-left: 14px;
    padding-right: 14px;
  }

  .website-grid article {
    min-height: 300px;
  }

  .jp,
  .website-grid ul {
    width: 100%;
  }

  .website-grid img {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 170px;
    margin-top: 16px;
    border-left: 0;
  }

  .site-copy h3 {
    font-size: clamp(24px, 8vw, 30px);
  }

  .bottom-grid {
    min-height: auto;
    padding: 18px 14px 20px;
  }

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

  .connect p {
    width: 100%;
  }

  .quote {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .sidebar {
    padding-inline: 18px;
  }

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

  .stats article:last-child {
    grid-column: auto;
  }

  .score-row {
    grid-template-columns: 1fr;
  }

  .habit-row,
  .icon-row {
    grid-template-columns: 1fr;
  }

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

  .event,
  .demo-card {
    grid-template-columns: 1fr;
  }

  .demo-card img,
  .event img {
    width: 100%;
    height: 120px;
  }
}
