:root {
  --red: #991d36;
  --red-bright: #c12748;
  --ink: #11151b;
  --ink-soft: #1b212a;
  --paper: #f4f5f7;
  --white: #ffffff;
  --muted: #65707d;
  --line: rgba(17, 21, 27, .14);
  --title: "IBM Plex Sans", Arial, sans-serif;
  --body: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 128px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 999; top: 12px; left: 12px; padding: 10px 16px; background: var(--white); color: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; height: 92px; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(17,21,27,.1); transition: height .25s ease, box-shadow .25s ease; }
.site-header.scrolled { height: 74px; box-shadow: 0 12px 30px rgba(9,12,18,.09); }
.admin-bar .site-header { top: 32px; }
.header-inner { width: min(1320px, calc(100% - 48px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { width: 230px; height: 56px; overflow: hidden; display: flex; align-items: center; }
.brand img { width: 100%; height: auto; }
.main-nav { display: flex; align-items: center; gap: 36px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.main-nav a { position: relative; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--red); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.nav-cta { padding: 12px 20px; color: var(--white); background: var(--red); }
.nav-cta:hover { background: var(--ink); }
.menu-toggle { display: none; }

.hero { position: relative; min-height: 850px; height: 100svh; max-height: 1040px; display: flex; align-items: center; color: var(--white); background: var(--ink); overflow: hidden; }
.hero-media, .hero-shade, .hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { object-fit: cover; object-position: center; transform: scale(1.04); animation: heroIn 1.4s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-shade { background: linear-gradient(90deg, rgba(10,14,20,.96) 0%, rgba(10,14,20,.76) 44%, rgba(10,14,20,.24) 100%), linear-gradient(0deg, rgba(10,14,20,.35), transparent 55%); }
.hero-grid { opacity: .12; background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, black, transparent 80%); }
.hero-content { position: relative; z-index: 2; padding-top: 92px; }
.eyebrow, .section-kicker { margin: 0 0 22px; color: var(--red-bright); font-family: var(--title); font-size: .76rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.hero h1 { max-width: 900px; margin: 0; font-family: var(--title); font-size: clamp(4.3rem, 8.2vw, 8.3rem); line-height: .83; letter-spacing: -.065em; text-transform: uppercase; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.72); }
.hero-copy { max-width: 660px; margin: 36px 0 0; color: rgba(255,255,255,.78); font-size: 1.12rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 42px; }
.button { min-height: 54px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; border: 1px solid rgba(255,255,255,.3); font-size: .84rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; transition: .2s ease; }
.button-primary { background: var(--red); border-color: var(--red); }
.button-primary:hover { background: var(--red-bright); border-color: var(--red-bright); }
.button-ghost:hover { background: var(--white); color: var(--ink); }
.hero-index { position: absolute; right: 0; bottom: 0; width: 420px; height: 78px; display: flex; align-items: center; gap: 26px; padding: 0 40px; background: var(--white); color: var(--ink); font-family: var(--title); font-size: .77rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hero-index span:first-child { color: var(--red); font-size: 1.8rem; }
@keyframes heroIn { from { transform: scale(1.12); opacity: .3; } to { transform: scale(1.04); opacity: 1; } }

.intro { background: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 100px; align-items: start; }
.intro h2, .section-heading h2, .projects h2, .contact h2 { margin: 0; font-family: var(--title); font-size: clamp(2.7rem, 5vw, 5rem); line-height: .98; letter-spacing: -.05em; }
.intro-copy > p:first-child { margin: 36px 0 32px; font-size: 1.22rem; line-height: 1.65; }
.intro-line { width: 100%; height: 1px; background: var(--line); }
.small-copy { color: var(--muted); font-size: .95rem; }

.services { color: var(--white); background: var(--ink); }
.section-kicker.light { color: #e85e79; }
.section-heading { margin-bottom: 72px; }
.service-list { border-top: 1px solid rgba(255,255,255,.16); }
.service-card { display: grid; grid-template-columns: 90px 360px 1fr; gap: 34px; align-items: center; padding: 36px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.service-number { align-self: start; padding-top: 8px; color: #e85e79; font-family: var(--title); font-size: 1.2rem; font-weight: 600; }
.service-image { height: 230px; overflow: hidden; }
.service-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.05); transition: transform .6s ease, filter .6s ease; }
.service-card:hover .service-image img { transform: scale(1.045); filter: saturate(1); }
.service-body { padding-left: 18px; }
.service-body h3 { margin: 0 0 12px; font-family: var(--title); font-size: clamp(1.65rem, 2.5vw, 2.35rem); line-height: 1.1; letter-spacing: -.03em; }
.service-body p { margin: 0 0 18px; color: rgba(255,255,255,.63); }
.service-body ul { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.service-body li { padding: 6px 10px; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.76); font-size: .77rem; }

.projects { background: var(--paper); }
.projects-head { display: grid; grid-template-columns: 1fr 370px; gap: 80px; align-items: end; margin-bottom: 60px; }
.projects-head > p { margin: 0 0 5px; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: 1.2fr .8fr; grid-auto-rows: 370px; gap: 18px; }
.project-item { position: relative; margin: 0; overflow: hidden; background: #dadddf; }
.project-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s ease; }
.project-item:hover img { transform: scale(1.035); filter: brightness(.82); }
.project-wide { grid-column: 1 / -1; }
.project-tall { grid-row: span 2; }
.project-item figcaption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; padding: 22px 24px; color: var(--white); background: linear-gradient(transparent, rgba(9,12,16,.75)); font-family: var(--title); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transform: translateY(12px); transition: .3s ease; }
.project-item:hover figcaption { opacity: 1; transform: none; }

.contact { padding-bottom: 0; color: var(--white); background: var(--red); }
.contact-panel { display: grid; grid-template-columns: 1.25fr .75fr; gap: 110px; padding-bottom: 92px; }
.contact h2 { max-width: 760px; font-size: clamp(3.1rem, 5.6vw, 6rem); }
.contact-mail { display: inline-flex; align-items: center; gap: 18px; margin-top: 44px; padding-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,.62); font-weight: 700; }
.contact-details { display: grid; gap: 26px; align-content: end; }
.contact-details > div { padding-top: 19px; border-top: 1px solid rgba(255,255,255,.35); }
.contact-details span { display: block; margin-bottom: 7px; color: rgba(255,255,255,.65); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.contact-details a, .contact-details address { font-size: 1rem; font-style: normal; }
.map-wrap { height: 420px; padding: 0; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

.site-footer { color: rgba(255,255,255,.7); background: #0c0f14; }
.footer-inner { min-height: 138px; display: grid; grid-template-columns: 230px 1fr auto; gap: 50px; align-items: center; font-size: .78rem; }
.footer-brand { display: block; width: 190px; height: 48px; overflow: hidden; }
.footer-brand img { width: 100%; height: auto; filter: grayscale(1) brightness(2.6); }
.footer-inner p:last-child { color: rgba(255,255,255,.45); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .section { padding: 96px 0; }
  .menu-toggle { position: relative; z-index: 3; width: 44px; height: 44px; padding: 10px; display: grid; align-content: center; gap: 5px; border: 0; background: transparent; }
  .menu-toggle > span:not(.sr-only) { width: 24px; height: 2px; background: var(--ink); transition: .25s ease; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 0; padding: 120px 36px 48px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; background: var(--white); font-family: var(--title); font-size: 1.7rem; transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
  .main-nav.open { transform: none; }
  .nav-cta { margin-top: 12px; font-family: var(--body); font-size: .85rem; }
  .hero { min-height: 760px; }
  .hero-index { display: none; }
  .intro-grid { grid-template-columns: 1fr; gap: 30px; }
  .intro-copy > p:first-child { margin-top: 0; }
  .service-card { grid-template-columns: 60px 300px 1fr; gap: 22px; }
  .service-image { height: 210px; }
  .projects-head { grid-template-columns: 1fr; gap: 24px; }
  .project-grid { grid-auto-rows: 300px; }
  .contact-panel { grid-template-columns: 1fr; gap: 68px; }
}

@media (max-width: 720px) {
  .wrap, .header-inner { width: min(100% - 32px, 1240px); }
  .site-header { height: 76px; }
  .brand { width: 185px; }
  .hero { min-height: 720px; height: 100svh; }
  .hero-content { padding-top: 76px; }
  .hero h1 { font-size: clamp(3.45rem, 17vw, 5.4rem); }
  .hero-copy { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; width: min(100%, 330px); }
  .button { justify-content: space-between; }
  .section { padding: 76px 0; }
  .intro h2, .section-heading h2, .projects h2 { font-size: 2.8rem; }
  .service-card { grid-template-columns: 42px 1fr; padding: 28px 0 42px; }
  .service-number { grid-row: 1; grid-column: 1; }
  .service-image { grid-row: 1; grid-column: 2; height: 210px; }
  .service-body { grid-row: 2; grid-column: 2; padding: 0; }
  .service-body li { font-size: .7rem; }
  .project-grid { display: block; }
  .project-item { height: 270px; margin-bottom: 14px; }
  .project-item.project-tall { height: 410px; }
  .project-item figcaption { opacity: 1; transform: none; }
  .contact h2 { font-size: 3.2rem; }
  .contact-mail { font-size: .86rem; }
  .map-wrap { width: 100%; height: 360px; }
  .footer-inner { padding: 42px 0; grid-template-columns: 1fr; gap: 18px; }
  .footer-inner p { margin: 0; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
