:root {
  --bg: #0c0c0c;
  --fg: #ffffff;
  --muted: #9da0a5;
  --silver: #c8ccd2;
  --line: rgba(255, 255, 255, 0.1);
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: #fff;
  color: #0c0c0c;
}

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

a {
  color: var(--silver);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 204, 210, 0.3);
  transition: color 0.2s, border-color 0.2s;
}

a:hover {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

/* --- single column --- */

.col {
  width: min(660px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 64px;
}

section,
footer {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

p {
  margin: 0 0 1.3em;
  color: var(--muted);
}

p:last-child {
  margin-bottom: 0;
}

/* --- hero --- */

.hero {
  padding-bottom: 48px;
  text-align: center;
}

.portrait {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 32px;
  border-radius: 44px;
  overflow: hidden;
  background: #000;
  animation: floaty 6s ease-in-out infinite;
}

.portrait img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: pfade 16s linear infinite;
}

.portrait img.p-logo {
  object-fit: contain;
  padding: 46px;
}

.portrait img.p-rno {
  padding: 58px 46px;
}

.portrait img:nth-child(1) { animation-delay: -1s; }
.portrait img:nth-child(2) { animation-delay: 3s; }
.portrait img:nth-child(3) { animation-delay: 7s; }
.portrait img:nth-child(4) { animation-delay: 11s; }

@keyframes pfade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  25% { opacity: 1; }
  31% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

h1 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.cy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.06em;
}

.roles {
  margin: 26px 0 0;
  color: var(--silver);
  font-size: 15px;
}

.tag {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

/* --- logo marquee --- */

.marquee {
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scrollx 26s linear infinite;
}

@keyframes scrollx {
  to { transform: translateX(-50%); }
}

.m-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: 88px;
  opacity: 0.85;
}

.m-fs-img {
  height: 52px;
  width: auto;
}

.m-rez {
  height: 24px;
  width: auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.m-rno {
  height: 26px;
  width: auto;
}

.m-fc img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.m-fc span {
  color: var(--fg);
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
}

/* --- brand blocks --- */

.brand-logo {
  display: inline-block;
  border-bottom: none;
  transition: transform 0.3s;
}

.brand-logo:hover {
  transform: scale(1.02);
}

.fs-logo {
  width: 190px;
  height: auto;
}

.fs-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 44px 0 10px;
  border-bottom: none;
  color: var(--fg);
  font-size: clamp(1.7rem, 5.5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  transition: transform 0.3s;
}

.fs-wordmark:hover {
  transform: scale(1.01);
}

.fs-wordmark .sun {
  flex-shrink: 0;
  animation: spin 26s linear infinite;
}

.rno-logo {
  width: 110px;
  height: auto;
}

.fc-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-bottom: none;
  color: var(--fg);
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: transform 0.3s;
}

.fc-wordmark:hover {
  transform: scale(1.02);
}

.fc-wordmark img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

.photo {
  margin: 36px 0 0;
}

.photo img {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.photo figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-role {
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --- sub projects --- */

.subs {
  margin-top: 36px;
  display: grid;
  gap: 24px;
}

.sub {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.sub-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--fg);
  font-weight: 500;
  margin-bottom: 10px;
}

.sub-logo {
  height: 30px;
  width: auto;
}

.sub-logo.bca {
  height: 40px;
}

.sub-logo.rez {
  height: 22px;
}

.sub-note {
  display: inline-block;
  margin-left: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sub p:last-child {
  font-size: 15px;
}

/* --- contact + footer --- */

.contact {
  text-align: center;
}

.contact-title {
  margin: 0 0 32px;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

#lead-form {
  display: grid;
  gap: 14px;
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}

#lead-form input,
#lead-form textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  resize: vertical;
  transition: border-color 0.2s;
}

#lead-form input::placeholder,
#lead-form textarea::placeholder {
  color: var(--muted);
}

#lead-form input:focus,
#lead-form textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
}

#lead-form .hp {
  position: absolute;
  left: -9999px;
  height: 0;
  padding: 0;
  border: 0;
}

#lead-form button {
  padding: 13px 16px;
  background: var(--fg);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}

#lead-form button:hover {
  opacity: 0.85;
}

#lead-form button:disabled {
  opacity: 0.5;
  cursor: default;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  font-size: 14px;
  text-align: center;
}

.socials {
  margin-top: 26px;
  font-size: 14px;
}

footer p {
  font-size: 13px;
  text-align: center;
}

/* --- reveal animation --- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .portrait { animation: none; }
  .portrait img { animation: none; }
  .portrait img:nth-child(1) { opacity: 1; }
  .marquee-track { animation: none; }
  .fs-wordmark .sun { animation: none; }
}

@media (max-width: 520px) {
  .col {
    width: calc(100% - 36px);
    padding-top: 64px;
  }

  section, footer {
    padding: 44px 0;
  }

  .m-item {
    margin-right: 56px;
  }
}
