:root {
  --bg: #fbf9f4;
  --card: #ffffff;
  --tx: #0d0d0d;
  --mut: #555b66;
  --bl: #0097a7;
  --bl2: #00acc1;
  --bl3: #00bcd4;
  --lt: #d6f6fa;
  --lt2: #80deea;
  --bd: #0d0d0d;
  --ink: #0d0d0d;
  --onink: #fff;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #04181d;
    --card: #08262d;
    --tx: #effcfe;
    --mut: #9fc9d0;
    --lt: #0c3a44;
    --lt2: #00838f;
    --bd: #00bcd4;
    --ink: #f2f6ff;
    --onink: #070f26;
  }
}
:root[data-theme="dark"] {
  --bg: #04181d;
  --card: #08262d;
  --tx: #effcfe;
  --mut: #9fc9d0;
  --lt: #0c3a44;
  --lt2: #00838f;
  --bd: #00bcd4;
  --ink: #f2f6ff;
  --onink: #070f26;
}
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
* {
  box-sizing: border-box;
  margin: 0;
}
body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--tx);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
.A {
  font-family: Anton, Impact, "Arial Narrow", sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}
.S {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--bl);
  text-transform: none;
}
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 5vw;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}
.logo {
  font-weight: 700;
  text-decoration: none;
  color: var(--tx);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
nav {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  color: var(--tx);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  position: relative;
}
nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 3px;
  background: var(--bl);
  transform: scaleX(0);
  transition: 0.25s;
  transform-origin: left;
}
nav a:hover::after,
nav a.on::after {
  transform: scaleX(1);
}
#theme {
  border: 2px solid var(--bd);
  background: var(--card);
  color: var(--tx);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
}
main {
  max-width: 1150px;
  margin: 0 auto;
  padding: 30px 5vw 70px;
}
.page {
  display: none;
  animation: in 0.5s ease;
}
.page.on {
  display: block;
}
@keyframes in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 30px;
  align-items: center;
  min-height: 70vh;
}
.hero h1 {
  font-size: clamp(4rem, 12vw, 9rem);
  position: relative;
  margin-top: 30px;
}
.hero h1 .S {
  position: absolute;
  top: -0.55em;
  left: 0.1em;
  font-size: 0.55em;
  transform: rotate(-6deg);
}
.hero p.lead {
  margin: 22px 0;
  max-width: 420px;
  color: var(--mut);
  font-size: 1.1rem;
}
.cta {
  display: inline-block;
  position: relative;
  padding: 12px 32px;
  background: var(--lt);
  color: var(--tx);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: 0.25s;
}
.cta::before,
.cta::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bl);
}
.cta::before {
  top: -4px;
  left: -4px;
}
.cta::after {
  bottom: -4px;
  right: -4px;
}
.cta:hover {
  background: var(--bl);
  color: #fff;
  transform: translateY(-3px);
}
.soc {
  display: flex;
  gap: 18px;
  margin-top: 26px;
}

.soc a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--bd);
  border-radius: 50%;
  color: var(--tx);
  text-decoration: none;
  font-size: 19px;
  transition: 0.3s ease;
}

.soc a:hover {
  background: var(--bl);
  border-color: var(--bl);
  color: #fff;
  transform: translateY(-5px);
}
.stage {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  width: 100%;
  margin: auto;
}
.photo {
  position: absolute;
  inset: 12% 8% 12% 14%;
  background: var(--lt2);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.photo span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  transform: none;
}

.photo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.name {
  position: absolute;
  bottom: -4%;
  right: 2%;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fold {
  position: absolute;
  width: 26%;
  aspect-ratio: 1.25;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--tx);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  animation: fl 4s ease-in-out infinite;
  transition: transform 0.15s;
}
.fold i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: var(--c);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  position: relative;
}
.fold i::before {
  content: "";
  position: absolute;
  top: -9%;
  left: 0;
  width: 45%;
  height: 16%;
  background: var(--c);
  border-radius: 6px 6px 0 0;
  filter: brightness(0.95);
}
.fold u {
  display: block;
  text-decoration: none;
  margin-top: 6px;
}
.fold:hover {
  transform: scale(1.15) rotate(-4deg);
}
@keyframes fl {
  50% {
    translate: 0 -10px;
  }
}
/* sections */
h2.A {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin-bottom: 10px;
}
.sub {
  color: var(--mut);
  margin-bottom: 26px;
  max-width: 560px;
}
.pill {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 99px;
  background: var(--lt);
  border: 1.5px solid var(--bd);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bk {
  display: inline-block;
  background: var(--ink);
  color: var(--onink);
  padding: 6px 22px;
  border-radius: 10px 10px 0 0;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.box {
  background: var(--card);
  border: 2px solid var(--bd);
  border-radius: 14px;
  padding: 20px;
  transition: 0.25s;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.work:hover,
.proj:hover {
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0 var(--bl);
}
.work h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 10px 0 4px;
}
.work p {
  font-size: 0.88rem;
  color: var(--mut);
}
.ic {
  height: 90px;
  border-radius: 8px;
  background: var(--lt);
  display: grid;
  place-items: center;
  font-size: 2.2rem;
}
.about {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 34px;
  align-items: center;
  margin-bottom: 50px;
}
.win {
  border: 2px solid var(--bd);
  border-radius: 12px;
  overflow: hidden;
  background: var(--lt2);
}

.win b {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  background: var(--ink);
}

.win b s {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f57;
}

.win b s:nth-child(2) {
  background: #febc2e;
}

.win b s:nth-child(3) {
  background: #28c840;
}

.win div {
  height: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.win img {
  max-width: 100%;
  max-height: 145%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.brands {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  background: var(--ink);
  color: var(--onink);
  padding: 14px 20px;
  margin-top: 18px;
  font-weight: 700;
  font-size: 1.05rem;
}
.bar {
  margin: 12px 0;
}
.bar div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
}
.tr {
  height: 14px;
  background: var(--lt);
  border-radius: 14px;
  margin-top: 4px;
  overflow: hidden;
}
.fl {
  height: 100%;
  width: 0;
  background: var(--ink);
  border-radius: 14px;
  transition: width 1.2s ease;
}
.tl {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.tab {
  padding: 9px 22px;
  border: 2px solid var(--bd);
  background: var(--card);
  color: var(--tx);
  font:
    700 0.85rem "DM Sans",
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 99px;
  cursor: pointer;
  transition: 0.2s;
}
.tab.on,
.tab:hover {
  background: var(--bl);
  border-color: var(--bl);
  color: #fff;
}
.proj {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proj.hide {
  display: none;
}
.th {
  height: 140px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.project-img {
  width: auto;
  height: 140px;
  max-width: 100%;
  object-fit: contain;
}
.proj p {
  font-size: 0.88rem;
  color: var(--mut);
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(2, 25, 30, 0.7);
  display: none;
  place-items: center;
  padding: 18px;
  overflow: auto;
}
.modal.on {
  display: grid;
}
.modal .box {
  max-width: 560px;
  width: 100%;
  animation: in 0.3s;
}
.x {
  float: right;
  border: 0;
  background: none;
  color: var(--tx);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}
.cs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.cs h4 {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.cs p {
  font-size: 0.85rem;
  color: var(--mut);
}
.res {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
form {
  display: grid;
  gap: 16px;
  max-width: 560px;
}
label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
input,
textarea {
  width: 100%;
  padding: 13px 16px;
  margin-top: 6px;
  border: 2px solid var(--bd);
  border-radius: 10px;
  background: var(--card);
  color: var(--tx);
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
input:focus,
textarea:focus {
  outline: 3px solid var(--lt2);
  border-color: var(--bl);
}
.err {
  color: #e11d48;
  font-size: 0.8rem;
  min-height: 1em;
  display: block;
}
.ok {
  color: #16a34a;
  font-weight: 700;
}
footer {
  text-align: center;
  color: var(--mut);
  padding: 18px;
  font-size: 0.85rem;
}

#form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 800px) {
  .hero,
  .about {
    grid-template-columns: 1fr;
  }
  .cs {
    grid-template-columns: 1fr;
  }
}
